/* Little Looms & Loops — styles.css
   Order: font faces, tokens, reset/base, layout, components in page order, utilities.
   Media queries sit next to the component they change. */

/* ------------------------------------------------------------------ Fonts */
@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------ Tokens */
:root {
  /* color */
  --surface: #ECEAE6;        /* heather: page background */
  --surface-raised: #FFFFFF; /* cards, form panel, photo mats */
  --surface-sunk: #E0DCD5;
  --line: #C9C4BB;           /* decorative hairlines only */
  --line-strong: #6E7280;    /* input borders (4.8:1 on white) */
  --ink: #1D2333;            /* body text */
  --ink-muted: #4B4F5C;      /* secondary text */
  --green: #1B5E4F;  --green-soft: #DCE9E4;
  --red: #BF2C37;    --red-soft: #F7E0E1;
  --blue: #1F4FA3;   --blue-soft: #DFE6F4;
  --orange: #E0602A; --orange-soft: #F9E3D6; --orange-text: #A9461B; /* orange-text only on orange-soft */
  --on-color: #FFFFFF;
  --focus-ring: #1F4FA3;     /* switches to #FFFFFF on green/blue/red bands */
  --wood: #DDB07A; --wood-dark: #B4844F; --pin: #C49A55; /* hoop + clothespin illustrations */

  /* type */
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* scale (desktop → phone) */
  --fs-display-xl: clamp(2.875rem, 1.6rem + 4.6vw, 5.25rem); /* 46 → 84px, line-height .98, tracking -0.02em */
  --fs-display: clamp(2.375rem, 1.7rem + 2.2vw, 3.375rem);   /* 38 → 54px, line-height 1.04, tracking -0.015em */
  --fs-heading: clamp(1.75rem, 1.4rem + 1vw, 2.375rem);      /* 28 → 38px, line-height 1.1 */
  --fs-lead: 1.3125rem;  /* 21px, line-height 1.55 */
  --fs-body: 1.0625rem;  /* 17px, line-height 1.6 */
  --fs-label: 1rem;      /* 16px, weight 600 */
  --fs-caption: 0.875rem;/* 14px, weight 500 */

  /* space, radius, shadow */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-24: 96px;
  --radius-sm: 6px; --radius-md: 14px; --radius-lg: 28px; --radius-full: 9999px;
  --shadow-card: 0 1px 2px #1d23330f, 0 6px 18px #1d233314;
  --shadow-on-color: 0 2px 4px #0000001f, 0 12px 28px #00000026;

  /* running stitch */
  --stitch-width: 3px; --stitch-dash: 12 8;
}

/* ------------------------------------------------------------------ Reset / base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }

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

a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; }
a:visited { color: var(--blue); }
a:hover { color: var(--green); }

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

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

[hidden] { display: none !important; }

/* Color bands: heather headings, white text and links, white focus ring. */
.on-color { --focus-ring: #FFFFFF; color: var(--on-color); }
.on-color a:not(.btn),
.on-color a:not(.btn):visited { color: var(--on-color); }
.on-color a:not(.btn):hover { color: var(--surface); }
/* White cards on a color band go back to the normal ring, or it would vanish. */
.surface-card { --focus-ring: var(--blue); color: var(--ink); }
.surface-card a:not(.btn) { color: var(--blue); }

.period { color: var(--orange); }

/* ------------------------------------------------------------------ Layout */
.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-12);
}

@media (max-width: 599.98px) {
  .wrap { padding-inline: var(--space-4); }
}

.band--green { background: var(--green); }
.band--blue { background: var(--blue); }
.band--red { background: var(--red); }
.band--orange-soft { background: var(--orange-soft); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.on-color .section-title { color: var(--surface); }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.6em 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font: 600 var(--fs-label)/1.2 var(--font-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary,
.btn--primary:visited { background: var(--green); border-color: var(--green); color: var(--on-color); }
.btn--primary:hover { background: #154A3E; border-color: #154A3E; color: var(--on-color); }
.btn--primary:disabled { cursor: progress; opacity: 0.8; }
.btn--secondary,
.btn--secondary:visited { background: var(--surface-raised); border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--surface); }

/* ------------------------------------------------------------------ Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-color);
  font-weight: 600;
}
.skip-link:visited { color: var(--on-color); }
.skip-link:focus { top: var(--space-4); color: var(--on-color); }

/* ------------------------------------------------------------------ Header */
.site-header { padding-block: var(--space-6); }

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
}

.logo { display: block; line-height: 0; }
.logo__svg { height: 38px; width: auto; aspect-ratio: 1125 / 184; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) 28px;
  padding: 0;
  list-style: none;
}
.site-nav__link,
.site-nav__link:visited {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav__link:hover { color: var(--green); text-decoration: underline; }
.site-nav__social { display: flex; }

.icon-link,
.icon-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
}
.icon-link:hover { color: var(--green); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__open,
.menu-toggle[aria-expanded="false"] .menu-toggle__close { display: none; }

@media (max-width: 759.98px) {
  .site-header__bar { gap: var(--space-4) var(--space-2); }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }

  /* Without JS the links are always shown as this stacked list. */
  .site-nav { flex-basis: 100%; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-top: 1px solid var(--line); }
  .site-nav__link { display: flex; min-height: 48px; }
  .site-nav__social { gap: var(--space-2); padding-top: var(--space-1); }
  .site-nav__social .icon-link { width: 48px; height: 48px; }
}

/* Where the browser can tell JS is on, use the JS menu from the first paint, before script.js
   swaps no-js for js. Otherwise the stacked no-JS list flashes and the page shifts up. */
@media (max-width: 759.98px) and (scripting: enabled) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
}

/* ------------------------------------------------------------------ Running stitch */
.stitch { width: 100%; overflow: visible; }
.stitch__line {
  fill: none;
  stroke: var(--green);
  stroke-width: var(--stitch-width);
  stroke-dasharray: var(--stitch-dash);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
/* Solid copy of the path inside a <mask>: animating its dash offset "sews" the dashed line in. */
.stitch__reveal {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}

@keyframes stitch-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* ------------------------------------------------------------------ Hero */
.hero { padding-block: 40px 80px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}

.hero__text { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-xl);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.stitch--hero { max-width: 640px; height: 70px; }
.stitch--hero .stitch__line { stroke-width: 3.5px; }

@media (prefers-reduced-motion: no-preference) {
  .stitch--hero .stitch__reveal { animation: stitch-draw 1.4s ease-out 0.2s both; }
}

.hero__lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 34em; }

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

.hero__media { position: relative; min-width: 0; padding: 0 0 22px 22px; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: 22px 22px 0 0;
  border-radius: var(--radius-lg);
  background: var(--red);
}
.hero__media::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -6px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--orange);
  transform: rotate(45deg);
}
.hero__mat {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.hero__mat img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
}

@media (max-width: 959.98px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ Ribbon */
.ribbon {
  display: flex;
  align-items: center;
  /* stitched edges: 2px green-soft dashes (10 on, 7 off), 8px in from top and bottom */
  background:
    linear-gradient(90deg, var(--green-soft) 0 10px, transparent 10px) 0 8px / 17px 2px repeat-x,
    linear-gradient(90deg, var(--green-soft) 0 10px, transparent 10px) 0 calc(100% - 8px) / 17px 2px repeat-x,
    var(--green);
}

.ribbon__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; padding-block: 22px; }

.ribbon__track { display: flex; width: max-content; }

.ribbon__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1;
}
.ribbon__item::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--orange);
  transform: rotate(45deg);
}

.ribbon__toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 var(--space-4);
  padding: 0;
  border: 2px solid var(--green-soft);
  border-radius: 50%;
  background: var(--green);
  color: var(--on-color);
  cursor: pointer;
}
.ribbon__toggle:hover { background: #154A3E; }
.ribbon__toggle[aria-pressed="true"] .ribbon__icon-pause,
.ribbon__toggle[aria-pressed="false"] .ribbon__icon-play { display: none; }

@keyframes ribbon {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* The ribbon only moves when JS is on (so the pause button works) and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .ribbon__track { animation: ribbon 48s linear infinite; }
  .js .ribbon__toggle { display: inline-flex; }
  .ribbon.is-paused .ribbon__track,
  .ribbon:hover .ribbon__track,
  .ribbon:focus-within .ribbon__track { animation-play-state: paused; }
}

/* ------------------------------------------------------------------ Fresh off the hoop */
.designs { padding-block: 80px; }

.designs__inner { display: flex; flex-direction: column; gap: 28px; }

.designs__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3) var(--space-8);
}
.designs__hint { color: var(--blue-soft); max-width: 30em; }

.clothesline { position: relative; padding-top: 14px; }

.clothesline__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
}
.clothesline__line path {
  fill: none;
  stroke: var(--surface);
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-dasharray: var(--stitch-dash);
  vector-effect: non-scaling-stroke;
}

.clothesline__items {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.hang-item {
  position: relative;
  display: flex;
  flex: 1 1 150px;
  flex-direction: column;
  align-items: center;
  max-width: 180px;
}

.hang-item__pin {
  position: relative;
  z-index: 2;
  width: 12px;
  height: 30px;
  margin-top: var(--drop, 0px);
  margin-bottom: -12px;
  border-radius: 3px;
  background: var(--wood);
  box-shadow: inset 0 -10px 0 var(--pin);
}

.hang {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  padding: 8px 8px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: 0 2px 4px #0000001f, 0 10px 22px #00000030;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
  transform-origin: top center;
}
.hang:hover,
.hang:focus-visible { transform: rotate(0deg) translateY(6px); }
.hang[aria-pressed="true"] { box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 7px var(--ink), 0 10px 24px #00000040; }
/* Push the focus ring outside the white + ink selection rings so it stays visible. */
.hang[aria-pressed="true"]:focus-visible { outline-offset: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .hang { transition: transform 0.3s ease; }
}

.hang img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hang__title { font-size: var(--fs-caption); font-weight: 600; line-height: 1.3; }

/* Kind + description: read by script.js for the detail card; shown as captions without JS. */
.hang-item__kind,
.hang-item__desc { display: none; }

.no-js .clothesline__line,
.no-js .hang-item__pin,
.no-js .detail { display: none; }
.no-js .clothesline { padding-top: 0; }
.no-js .clothesline__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-8) var(--space-6);
}
.no-js .hang-item { max-width: none; align-items: stretch; gap: var(--space-2); }
.no-js .hang { transform: none; cursor: default; box-shadow: none; }
.no-js .hang-item__kind { display: block; margin-top: var(--space-1); color: var(--blue-soft); font-size: var(--fs-caption); font-weight: 600; }
.no-js .hang-item__desc { display: block; font-size: 0.9375rem; line-height: 1.5; }

/* Detail card */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 40px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-on-color);
}
.detail__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.detail__text { display: flex; flex-direction: column; gap: 14px; }
.detail__kind { color: var(--blue); font-size: var(--fs-caption); font-weight: 600; }
.detail__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.1;
}
.detail__desc { max-width: 32em; }

@media (max-width: 959.98px) {
  .clothesline { padding-top: 0; }
  .clothesline__line { display: none; }
  .clothesline__items {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8) var(--space-4);
  }
  .hang-item {
    --drop: 0px;
    flex: 0 1 calc((100% - 2 * var(--space-4)) / 3);
  }
  /* A straight stretch of line for each row once the sag is gone. */
  .js .hang-item::before {
    content: "";
    position: absolute;
    top: 9px;
    left: calc(var(--space-4) / -2);
    right: calc(var(--space-4) / -2);
    height: 2.5px;
    background: linear-gradient(90deg, var(--surface) 0 12px, transparent 12px) 0 0 / 20px 100% repeat-x;
  }
  .detail { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 599.98px) {
  .hang-item { flex-basis: calc((100% - var(--space-4)) / 2); }
  .detail { padding: var(--space-6); gap: var(--space-6); }
}

/* ------------------------------------------------------------------ What I make */
.make { padding-block: 88px; }

.make__inner { display: flex; flex-direction: column; gap: 20px; }
.make__inner > .section-title { margin-bottom: var(--space-3); }

.cat {
  --cat-bg: var(--green-soft);
  --cat-ink: var(--green);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--cat-bg);
}
.cat--red { --cat-bg: var(--red-soft); --cat-ink: var(--red); }
.cat--blue { --cat-bg: var(--blue-soft); --cat-ink: var(--blue); }
.cat--orange { --cat-bg: var(--orange-soft); --cat-ink: var(--orange-text); }

.cat__text { display: flex; flex-direction: column; gap: 10px; }
.cat__text p { max-width: 30em; }
.cat__title {
  color: var(--cat-ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-heading);
  line-height: 1.1;
}
.cat__link,
.cat__link:visited,
.cat__link:hover { color: var(--cat-ink); font-weight: 700; }
.cat__link:hover { text-decoration-thickness: 3px; }

.cat__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}
.cat__thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 6px solid var(--surface-raised);
  border-radius: var(--radius-md);
}

@media (max-width: 959.98px) {
  .cat { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}
@media (max-width: 599.98px) {
  .cat { padding: var(--space-6); }
  .cat__thumbs { gap: var(--space-2); }
}

/* ------------------------------------------------------------------ About */
.about { padding-block: var(--space-24); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}

.about__media { position: relative; min-width: 0; padding: 0 22px 22px 0; }
.about__media::before {
  content: "";
  position: absolute;
  inset: 22px 0 0 22px;
  border-radius: var(--radius-lg);
  background: var(--orange);
}
/* Landscape family photo: 3:2 (changed from the design's 4:5 so all four people fit). */
.about__photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.about .section-title { color: var(--on-color); }
.about__lead { font-size: 1.25rem; line-height: 1.55; max-width: 32em; }
.about__text > p:not(.about__lead) { max-width: 34em; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-2);
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 959.98px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ How custom orders work */
.how { padding-block: var(--space-24); }

.how__inner { display: flex; flex-direction: column; gap: 40px; }

.steps { position: relative; }

.stitch--steps {
  position: absolute;
  top: 58px;
  left: 0;
  height: 40px;
}

/* Set by script.js: hidden until the steps scroll into view, then drawn once. */
.stitch--steps.is-pending .stitch__reveal { stroke-dashoffset: 1; }
.stitch--steps.is-pending.is-drawn .stitch__reveal { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s ease-out; }

.steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.step p { max-width: 20em; }

.step__hoop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border: 12px solid var(--wood);
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 2px var(--wood-dark), 0 0 0 2px var(--wood-dark);
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1;
}
.step__hoop--green { color: var(--green); }
.step__hoop--red { color: var(--red); }
.step__hoop--blue { color: var(--blue); }

.step__title { font-size: 1.375rem; font-weight: 700; line-height: 1.3; }

@media (max-width: 959.98px) {
  .stitch--steps { display: none; }
  .steps__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
}

/* ------------------------------------------------------------------ Contact */
.contact { padding-block: var(--space-24); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--space-12);
  align-items: start;
}

.contact__intro { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.contact__lead { font-size: 1.1875rem; }

.diamond-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-2);
  padding: 0;
  list-style: none;
}
.diamond-list li { display: flex; align-items: center; gap: var(--space-3); }
.diamond-list li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--orange);
  transform: rotate(45deg);
}

.contact__email { margin-top: var(--space-2); }
.contact__email a { font-weight: 700; }

.stitch--contact { max-width: 300px; height: 60px; }
.stitch--contact .stitch__line { stroke: var(--surface); }

.form-card {
  min-width: 0;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-on-color);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-label); font-weight: 600; }
.field__note { font-weight: 400; color: var(--ink-muted); }
.field__help { color: var(--ink-muted); font-size: var(--fs-caption); }

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.4;
}
textarea.input { resize: vertical; }
/* iOS Safari gives date fields a native minimum width that ignores width: 100% and overflows
   the card on phones, and it centers the date. Drop the native styling so it sizes like the others. */
input[type="date"].input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
}
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
/* Chrome focuses the date picker button inside the field without :focus-visible on the input. */
input[type="date"].input:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
select.input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background: var(--surface-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D2333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 20px 20px;
}
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

.field__error,
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--red);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.field__error svg,
.form-status svg { flex: none; margin-top: 1px; }
.form-status a:not(.btn) { color: var(--red); }

.error-summary {
  padding: var(--space-4) 20px;
  border: 2px solid var(--red);
  border-radius: var(--radius-md);
}
.error-summary ul { padding-left: 20px; }
.error-summary a:not(.btn),
.error-summary a:not(.btn):visited { color: var(--red); font-weight: 600; }

.form-success {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  border-radius: var(--radius-md);
  background: var(--green-soft);
}
.form-success__title {
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
}

@media (max-width: 959.98px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599.98px) {
  .form-card { padding: var(--space-6); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .form-success { padding: var(--space-6); }
}

/* ------------------------------------------------------------------ Footer */
.site-footer { padding-block: 56px 40px; }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand img { width: 150px; }
.site-footer__tagline { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }

.site-footer__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  padding: 0;
  list-style: none;
}
.site-footer__links a,
.site-footer__links a:visited { color: var(--ink); font-weight: 600; }
.site-footer__links a:hover { color: var(--green); }
.site-footer__legal { color: var(--ink-muted); font-size: var(--fs-caption); }

/* ------------------------------------------------------------------ Thanks + 404 */
.page-message { padding-block: 64px 120px; }
.page-message__inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.page-message__text { font-size: var(--fs-lead); line-height: 1.55; max-width: 34em; }

/* ------------------------------------------------------------------ Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Reduced motion: stitches render fully drawn, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .stitch__reveal { stroke-dashoffset: 0 !important; }
}
