/* Fabrum Digital site styles
   Order: tokens, base, layout, shared components, then one block per page section.
   Colors and type come from HANDOFF.md section 5. Change a token here, not in the HTML. */

/* ---------- Tokens ---------- */

:root {
  /* Brand colors */
  --iron: #17191B;          /* dark backgrounds */
  --iron-2: #202326;        /* panels on dark */
  --stone: #F2F0EC;         /* main light background */
  --paper: #FFFFFF;         /* cards, white sections, form */
  --ink: #1A1B1D;           /* main text on light */
  --muted: #55585C;         /* secondary text on light */
  --on-iron: #F4F1EC;       /* main text on dark */
  --on-iron-muted: #B9B4AB; /* secondary text on dark */
  --on-iron-soft: #D3CEC5;  /* body text in About */
  --accent: #8DB070;        /* accent, the same green as the logo: button fills (always with --iron text), labels on dark */
  --accent-deep: #44673A;   /* accent text and icons on light */
  --accent-deep-hover: #324E2B;
  --laurel: #8DB070;        /* logo on dark */
  --laurel-deep: #4E6B3F;   /* logo on light */
  --line: #E2DED6;          /* borders and dividers on light */
  --field: #C9C3B8;         /* form input borders */

  /* Lines on dark backgrounds */
  --line-on-iron: rgba(244, 241, 236, 0.14);
  --line-on-iron-faint: rgba(244, 241, 236, 0.12);
  --line-on-iron-strong: rgba(244, 241, 236, 0.4);

  /* Placeholder blocks (remove once real content is in) */
  --placeholder-border: #D5CFC4;
  --placeholder-fill: #FAF8F5;

  /* Type */
  --font-serif: Fraunces, Georgia, serif;
  --font-sans: Inter, system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 32px;

  /* Keyboard focus ring: accent-deep on light; dark areas switch it to the accent */
  --focus: var(--accent-deep);
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--iron);
  overflow-x: clip;
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* :where() keeps these at zero specificity, so any component class sets its own link color */
:where(a) {
  color: var(--accent-deep);
}

:where(a:hover) {
  color: var(--accent-deep-hover);
}

input,
select,
textarea,
button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Hidden on screen, still read by screen readers and reachable by keyboard */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 104px var(--gutter);
}

.section--stone {
  background: var(--stone);
}

.section--paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section--dark {
  --focus: var(--accent);
  background: var(--iron);
  color: var(--on-iron);
}

/* ---------- Shared components ---------- */

/* Small uppercase label above a heading */
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section--dark .eyebrow {
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.12;
}

.lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.section-lede {
  margin-top: 18px;
  max-width: 640px;
}

/* Buttons. Accent fills always use --iron text (never white on the accent green). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
}

.btn--md {
  min-height: 50px;
  font-size: 15px;
}

.btn--lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

.btn--primary {
  background: var(--accent);
  color: var(--iron);
}

.btn--ghost {
  border: 1px solid var(--line-on-iron-strong);
  color: var(--on-iron);
}

.btn--outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn--dark {
  background: var(--iron);
  color: var(--on-iron);
}

/* Inline SVG icons draw in currentColor */
.icon {
  color: var(--accent-deep);
}

.section--dark .icon,
.price-card--featured .icon {
  color: var(--accent);
}

/* Lists with a checkmark before each item */
.checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.checklist li {
  display: flex;
  gap: 10px;
}

.checklist .icon {
  flex: none;
  margin-top: 2px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Header ---------- */

.site-header {
  --focus: var(--accent);
  background: var(--iron);
  color: var(--on-iron);
  border-bottom: 1px solid var(--line-on-iron);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--on-iron);
  text-decoration: none;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wordmark__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.16em;
}

.wordmark__name--sm {
  font-size: 18px;
}

.wordmark__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--on-iron-muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-iron);
  text-decoration: none;
}

/* Menu button for small screens. It is a checkbox with a label, so it needs no script. */
.nav-toggle,
.nav-button {
  display: none;
}

.nav-button {
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-on-iron-strong);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--on-iron);
  cursor: pointer;
}

.nav-button__icon--close,
.nav-toggle:checked ~ .nav-button .nav-button__icon--open {
  display: none;
}

.nav-toggle:checked ~ .nav-button .nav-button__icon--close {
  display: block;
}

.nav-toggle:focus-visible ~ .nav-button {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding: 96px var(--gutter) 88px;
}

.hero__copy {
  flex: 1 1 480px;
  min-width: 0;
}

.hero__eyebrow {
  margin-bottom: 22px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero__lede {
  margin: 26px 0 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-iron-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__visual {
  flex: 1 1 420px;
  min-width: 0;
}

/* Browser-window frame around the featured screenshot */
.browser {
  overflow: hidden;
  border: 1px solid var(--line-on-iron);
  border-radius: 14px;
  background: var(--iron-2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-on-iron);
}

.browser__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-on-iron-strong);
}

.browser__title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--on-iron-muted);
}

.browser__screens {
  position: relative;
}

.browser__screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top;
}

/* Rotation, with no script: the homepage shot stays underneath, and each of the three
   "next" shots fades in over it for 5 seconds in turn (a 20-second loop).
   To change how many shots rotate, change the loop length and the delays together. */
.browser__screen--next {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  animation: browser-rotate 20s infinite;
}

.browser__screen--next:nth-of-type(2) {
  animation-delay: 4s;
}

.browser__screen--next:nth-of-type(3) {
  animation-delay: 9s;
}

.browser__screen--next:nth-of-type(4) {
  animation-delay: 14s;
}

@keyframes browser-rotate {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}

/* Pause button: a checkbox (hidden but still reachable by keyboard) with its label in the bar.
   It pauses both the rotating screenshots and the scrolling phone. */
.browser__pause {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -14px -12px -14px auto;
  border-radius: 8px;
  color: var(--on-iron-muted);
  cursor: pointer;
}

.browser__pause:hover {
  color: var(--on-iron);
}

.browser__pause-icon--play,
.devices__toggle:checked ~ .browser .browser__pause-icon--pause {
  display: none;
}

.devices__toggle:checked ~ .browser .browser__pause-icon--play {
  display: block;
}

.devices__toggle:checked ~ .browser .browser__screen--next,
.devices__toggle:checked ~ .phone .phone__page {
  animation-play-state: paused;
}

.devices__toggle:focus-visible ~ .browser .browser__pause {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

/* Visitors who ask for less motion see one still screenshot in each frame */
@media (prefers-reduced-motion: reduce) {
  .browser__screen--next,
  .browser__pause,
  .devices__toggle {
    display: none;
  }

  .phone__page {
    animation: none;
  }
}

/* Desktop and phone together: the phone overlaps the lower right corner of the browser frame.
   Sizes are percentages of the arrangement, so it scales down cleanly on small screens. */
.devices {
  position: relative;
  padding: 0 9% 9% 0;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--line-on-iron-strong);
  border-radius: 20px;
  background: var(--iron-2);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

/* The screen of the phone is a window onto one tall screenshot of a whole page */
.phone__screen {
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 14px;
}

.phone__page {
  display: block;
  width: 100%;
  height: auto;
  animation: phone-scroll 29.6s ease-in-out infinite;
}

/* Swipes down the page one section at a time, resting on each, then returns to the top.
   The stops are positions on the 5043px-tall page; retake the screenshot and redo these if that page changes. */
@keyframes phone-scroll {
  0% { transform: translateY(0); }
  10.81% { transform: translateY(0); }
  14.19% { transform: translateY(-15.665%); }
  25% { transform: translateY(-15.665%); }
  28.38% { transform: translateY(-27.563%); }
  39.19% { transform: translateY(-27.563%); }
  42.57% { transform: translateY(-46.004%); }
  53.38% { transform: translateY(-46.004%); }
  56.76% { transform: translateY(-63.454%); }
  67.57% { transform: translateY(-63.454%); }
  70.95% { transform: translateY(-75.947%); }
  81.76% { transform: translateY(-75.947%); }
  85.14% { transform: translateY(-83.264%); }
  95.95% { transform: translateY(-83.264%); }
  100% { transform: translateY(0); }
}

.hero__strip {
  border-top: 1px solid var(--line-on-iron);
}

.proof-list {
  list-style: none;
  padding: 24px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: 15px;
  color: var(--on-iron-muted);
}

.proof-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Why it matters ---------- */

.why .section-title {
  max-width: 760px;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.card {
  flex: 1 1 300px;
  min-width: 0;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card__title {
  margin: 18px 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.card__text,
.step__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Featured work ---------- */

.work {
  border-bottom: 1px solid var(--line);
}

.work .section-title {
  max-width: 820px;
}

.work__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 40px;
  align-items: flex-start;
}

.work__summary {
  flex: 1 1 340px;
  min-width: 0;
}

.work__points {
  margin: 28px 0 0;
  gap: 14px;
  font-size: 16px;
  line-height: 1.5;
}

.work__points li {
  align-items: flex-start;
  gap: 12px;
}

.work__shots {
  flex: 1.4 1 480px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.shot {
  flex: 1 1 240px;
  min-width: 0;
}

.shot__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.shot__label--after {
  color: var(--accent-deep);
}

.shot__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
}

/* A closer look at one part of the project: a title, a short description, and a row of screenshots */
.showcase {
  margin-top: 64px;
}

.showcase__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
}

.showcase__lede {
  margin-top: 12px;
  max-width: 680px;
}

.showcase__shots {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.showcase__shot {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
}

/* Split version: the write-up on one side, a single screenshot on the other */
.showcase--split {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  align-items: center;
}

.showcase--split .showcase__text {
  flex: 1 1 340px;
  min-width: 0;
}

.showcase--split .showcase__shot {
  flex: 1.4 1 420px;
}

.showcase__shot figcaption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.quote {
  margin: 56px 0 0;
  padding: 36px 40px;
  border-radius: 14px;
}

/* Dashed "fill me in" look; drop this class once a real quote is in */
.quote--placeholder {
  border: 2px dashed var(--placeholder-border);
  background: var(--placeholder-fill);
}

.quote__text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.45;
  color: var(--muted);
}

.quote__cite {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

/* A second project under Featured work: a write-up beside one screenshot */
.project {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: center;
  margin-top: 88px;
  padding-top: 80px;
  border-top: 1px solid var(--line);
}

.project__text {
  flex: 1 1 340px;
  min-width: 0;
}

.project__text .lede {
  margin-top: 18px;
}

.project__shot {
  flex: 1.3 1 440px;
  min-width: 0;
  margin: 0;
}

/* A smaller project below the client work: a smaller title, and the screenshot
   on the left taking less room. The write-up stays first in the page, so it
   comes first for screen readers and when the two stack on a small screen. */
.project--small {
  flex-direction: row-reverse;
  margin-top: 72px;
  padding-top: 64px;
}

.project--small .project__text {
  flex: 1.25 1 340px;
}

.project--small .project__shot {
  flex: 1 1 340px;
}

.project__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}

.project__note {
  margin: 24px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Services and pricing ---------- */

.price-card {
  --card-muted: var(--muted);
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.price-card--featured {
  --card-muted: var(--on-iron-muted);
  --focus: var(--accent);
  background: var(--iron);
  color: var(--on-iron);
  border-color: var(--iron);
}

.price-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-card__title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.price-card__desc {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--card-muted);
}

.price {
  margin: 26px 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price__amount {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
}

.price__term {
  font-size: 15px;
  color: var(--card-muted);
}

/* Second price line, for a plan with a setup fee and a monthly fee */
.price__then {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 600;
}

/* Small print under a price, such as a minimum term */
.price__note {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--card-muted);
}

.price-card__features {
  flex: 1 1 auto;
  margin: 26px 0 32px;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--iron);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.step {
  flex: 1 1 230px;
  min-width: 0;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.step__num {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--accent-deep);
}

.step__title {
  margin: 12px 0 10px;
  font-size: 20px;
  font-weight: 600;
}

/* ---------- About ---------- */

.about__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}

.about__photo {
  flex: 0 1 360px;
  min-width: 0;
  width: 100%;
}

.about__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-on-iron);
  border-radius: 16px;
  object-fit: cover;
}

.about__text {
  flex: 1 1 460px;
  min-width: 0;
}

.about__para {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--on-iron-soft);
}

.about__para + .about__para {
  margin-top: 18px;
}

.about__bio {
  max-width: 620px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-on-iron);
}

.about__hello {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
}

.about__bio p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--on-iron-muted);
}

/* ---------- Contact ---------- */

.contact__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.contact__intro {
  flex: 1 1 400px;
  min-width: 0;
}

.contact .section-lede {
  max-width: 520px;
}

.contact-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

.mockup-form {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row .field {
  flex: 1 1 180px;
  min-width: 0;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--paper);
  font-size: 16px;
  color: var(--ink);
}

.field input,
.field select {
  min-height: 48px;
}

.field input {
  padding: 0 14px;
}

.field select {
  padding: 0 12px;
}

.field textarea {
  padding: 12px 14px;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Honeypot field: kept out of sight and out of the tab order */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Room for the spam check, so the button does not jump when it appears */
.form-check:not(:empty) {
  min-height: 65px;
}

/* Message under the button: errors, or a note for visitors without JavaScript */
.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--stone);
  font-size: 15px;
  line-height: 1.5;
}

.form-status--error {
  border: 1px solid #B42318;
  background: #FEF3F2;
  color: #7A271A;
}

.mockup-form button[disabled] {
  opacity: 0.7;
  cursor: default;
}

/* Shown in place of the form once it has been sent */
.form-done {
  padding: 24px 0;
  text-align: center;
}

.form-done__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
}

.form-done p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  --focus: var(--accent);
  padding: 56px var(--gutter);
  background: var(--iron);
  color: var(--on-iron-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-iron);
}

.footer-tagline {
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 14px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--on-iron-soft);
  text-decoration: none;
}

.footer-legal {
  width: 100%;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-iron-faint);
  font-size: 13px;
}

/* ---------- 404 page ---------- */

.not-found {
  min-height: 60vh; /* keeps the footer from riding up the middle of tall screens */
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* ---------- Tablets ---------- */

/* Closer menu links, so the header stays on one row on a tablet held upright */
@media (max-width: 860px) {
  .site-nav {
    gap: 4px 18px;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  /* Slimmer side margins and less space between sections, so the page is shorter */
  :root {
    --gutter: 20px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* Header: the logo and a Menu button; the links open underneath */
  .nav-toggle {
    display: block;
  }

  .nav-button {
    display: inline-flex;
    gap: 6px;
    padding: 0 12px;
  }

  /* A slightly smaller logo, so it and the Menu button share one row down to 360px wide */
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 36px;
    height: auto;
  }

  .site-header .wordmark {
    gap: 8px;
  }

  .site-header .wordmark__name {
    font-size: 19px;
  }

  .site-header .wordmark__sub {
    font-size: 10px;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    margin-top: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 16px;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav .nav-link {
    min-height: 48px;
    border-top: 1px solid var(--line-on-iron);
  }

  .site-nav .btn {
    min-height: 48px;
    margin-top: 12px;
  }

  .hero__inner {
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .card-grid,
  .steps {
    margin-top: 36px;
  }

  .card,
  .mockup-form,
  .quote {
    padding: 24px;
  }

  .price-card {
    padding: 28px 24px;
  }

  .quote {
    margin-top: 40px;
  }

  .showcase {
    margin-top: 48px;
  }

  .project {
    margin-top: 56px;
    padding-top: 56px;
  }

  .about__layout,
  .contact__layout {
    gap: 40px;
  }

  .site-footer {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* The three gallery screenshots sit in one row you swipe sideways.
     The edge of the next one shows, which is the hint that there is more. */
  .showcase__shots {
    flex-wrap: nowrap;
    gap: 14px;
    margin-right: calc(-1 * var(--gutter));
    margin-left: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
  }

  .showcase__shots .showcase__shot {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  /* The Services screenshot switches to a phone-width version, which is taller */
  .showcase--split .shot__img {
    aspect-ratio: 39 / 56;
  }
}
