/* Red Shell Sushi site styles.
   Colors from the Red Shell Brand Guide (10-2024): coral #E45D50,
   maroon #580C1F, navy #1B365D, ink #1A1A1A, gray #666666.
   Headings: Newsreader (serif). Body: Nunito Sans, Avenir where installed. */

:root {
  --coral: #e45d50;
  --coral-dark: #c94a3e;
  --navy: #1b365d;
  --navy-deep: #13294a;
  --ink: #1a1a1a;
  --gray: #5c5c5c;
  --line: #dcd8d1;
  --tint: #f5f2ec;
  --studio: #e7e8ec; /* backdrop of the studio photos */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

p { margin: 0 0 18px; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.015em;
}

h2 { font-size: 40px; line-height: 1.12; margin-bottom: 24px; }

h3 { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 0 0 8px; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

section { scroll-margin-top: 24px; }

/* Buttons */

.btn {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 3px;
}

.btn:hover { background: var(--coral-dark); }

.btn-lg { font-size: 17px; padding: 15px 28px; }

/* Header */

.top { border-bottom: 1px solid var(--line); background: #fff; }

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.logo { width: 140px; }

.nav { display: flex; align-items: center; gap: 34px; }

.nav a:not(.btn) {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.nav a:not(.btn):hover { color: var(--coral-dark); }

/* Hero: text on the studio backdrop color, photo bleeding to the right edge */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: stretch;
  background: var(--studio);
  min-height: 600px;
}

.hero-text {
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 590px;
  padding: 72px 24px 72px 32px;
}

.since {
  font-size: 15px;
  font-weight: 700;
  color: var(--coral-dark);
  margin: 0 0 18px;
}

h1 { font-size: 62px; line-height: 1.04; margin-bottom: 24px; }

.lede { font-size: 20px; line-height: 1.55; color: #3d3d3d; margin-bottom: 32px; max-width: 30em; }

.hero-photo { position: relative; }

.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 220px;
  background: linear-gradient(to right, var(--studio) 0%, rgba(231, 232, 236, 0.85) 30%, rgba(231, 232, 236, 0) 100%);
}

/* Navy statement band */

.band { background: var(--navy); color: #fff; }

.band-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.band p {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.3;
  margin: 0;
  padding-left: 22px;
  border-left: 2px solid var(--coral);
}

/* Thesis statement */

.thesis { padding-top: 104px; padding-bottom: 104px; }

.thesis h2 { font-size: 56px; line-height: 1.06; margin-bottom: 40px; }

.thesis-text { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 980px; }

.thesis-text p { color: #333; font-size: 19px; margin: 0; }

/* Text beside a photo */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-top: 104px;
  padding-bottom: 104px;
}

.split-text p { color: #333; max-width: 30em; }
.split-text p:last-child { margin-bottom: 0; }

figure { margin: 0; }

figcaption { font-size: 14px; color: var(--gray); margin-top: 10px; }

.split-photo img { width: 100%; }

/* Operator section on a warm tint */

.tint { background: var(--tint); padding: 104px 0; }

.operator {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}

.operator h2 { margin-bottom: 0; }
.operator p { color: #333; font-size: 19px; max-width: 34em; }
.operator p:last-child { margin-bottom: 0; }

.spec { margin-top: 64px; }
.spec > * { border-top: 1px solid #cfc9be; padding-top: 56px; }

.split.flip { padding-bottom: 0; }
.split.flip .split-photo { order: -1; }
.block.first { padding-top: 104px; }

.range { display: flex; gap: 20px; align-items: flex-start; margin-top: 80px; }

.range figure { min-width: 0; }

.range img { width: 100%; height: auto; }

.range.cut { gap: 48px; }
.range.cut img { filter: drop-shadow(0 14px 16px rgba(40, 30, 20, 0.22)); }
.range.cut figcaption { margin-top: 20px; }

.range figcaption { font-size: 15px; font-weight: 700; color: var(--ink); }

/* Column blocks */

.block { padding-top: 104px; }

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.cols > * { border-top: 2px solid var(--navy); padding-top: 20px; }

.cols p { color: var(--gray); font-size: 17px; margin: 0; }

.steps {
  counter-reset: step;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 2px solid var(--navy);
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr 1.4fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--coral);
}

.steps h3 { margin: 0; font-size: 21px; }
.steps p { margin: 0; color: var(--gray); font-size: 17px; }

.qa { margin: 16px 0 0; border-top: 2px solid var(--navy); }

.qa > div {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.qa dt { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--navy); }
.qa dd { margin: 0; color: #333; max-width: 36em; }

.note { margin: 32px 0 0; color: var(--gray); font-size: 17px; }

/* Contact */

.contact {
  background: var(--navy);
  color: #fff;
  margin-top: 104px;
  padding: 96px 0;
}

.contact h2 { color: #fff; font-size: 48px; margin-bottom: 14px; }

.contact p { font-size: 20px; color: rgba(255, 255, 255, 0.82); margin-bottom: 32px; }

.contact .phone { font-size: 18px; margin: 22px 0 0; }
.contact .phone a { color: #fff; }

/* Footer */

.foot { background: var(--navy-deep); color: rgba(255, 255, 255, 0.65); font-size: 15px; }

.foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.foot img { height: 40px; width: auto; }

/* Smaller screens */

@media (max-width: 960px) {
  h1 { font-size: 46px; }
  h2 { font-size: 33px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { justify-self: start; max-width: none; padding: 48px 32px 32px; }
  .hero-photo::before { display: none; }
  .hero-photo img { aspect-ratio: 16 / 10; }
  .band-in { grid-template-columns: 1fr; gap: 24px; }
  .split, .operator { grid-template-columns: 1fr; gap: 40px; }
  .split, .tint { padding-top: 72px; padding-bottom: 72px; }
  .range { flex-direction: column; margin-top: 56px; }
  .range figure { flex: none !important; width: 100%; }
  .thesis { padding-top: 72px; padding-bottom: 72px; }
  .thesis h2 { font-size: 40px; margin-bottom: 28px; }
  .thesis-text { grid-template-columns: 1fr; gap: 18px; }
  .cols { grid-template-columns: 1fr; gap: 28px; }
  .block, .block.first { padding-top: 72px; }
  .spec { margin-top: 48px; border-top: 1px solid #cfc9be; padding-top: 48px; }
  .spec > * { border-top: 0; padding-top: 0; }
  .split.flip .split-photo { order: 0; }
  .steps li { grid-template-columns: 48px 1fr; gap: 6px 16px; }
  .steps p { grid-column: 2; }
  .qa > div { grid-template-columns: 1fr; gap: 8px; }
  .contact { margin-top: 72px; padding: 72px 0; }
  .contact h2 { font-size: 36px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero-text { padding: 36px 20px 28px; }
  h1 { font-size: 38px; }
  .lede { font-size: 18px; }
  .logo { width: 112px; }
  .top-in { height: 68px; }
  .nav { gap: 0; }
  .nav a:not(.btn) { display: none; }
  .band p { font-size: 21px; }
  .btn-lg { font-size: 16px; padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
