/* Syds Legit Prints — storefront styles.
   PLACEHOLDER brand colors: no brand palette exists yet. Swap the values in :root once one is chosen;
   everything else reads from these tokens. */
:root {
  --paper: #f5ede1;        /* page background, warm cream */
  --paper-2: #ede2d2;      /* second band */
  --card: #fbf6ee;
  --ink: #2a211c;          /* text and line art */
  --ink-2: #5a4c42;        /* secondary text, AA on paper */
  --line: rgba(42, 33, 28, .14);
  --accent: #d4572a;       /* terracotta: primary actions only */
  --accent-ink: #b8461c;
  --night: #241c18;        /* footer band */

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-card: 18px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* type */
.eyebrow {
  margin: 0 0 14px;
  font: 600 12px/1 var(--f-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.display {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 600;
  font-size: clamp(52px, 8.4vw, 116px);
  line-height: .95;
  letter-spacing: -.035em;
  margin: 0;
}
.h2 {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-weight: 560;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.soft { color: var(--ink-2); font-style: normal; font-weight: 420; }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ink); max-width: 52ch; }
p { max-width: 62ch; }

/* layer-line texture: the brand motif, like the visible layers of an FDM print */
.layer-lines {
  background-image: repeating-linear-gradient(0deg, rgba(42, 33, 28, .055) 0 1px, transparent 1px 5px);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font: 600 15px/1 var(--f-sans);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-accent { background: var(--accent); color: #fff8ef; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: rgba(42, 33, 28, .06); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.link-arrow {
  font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px;
  text-decoration-color: var(--line);
  transition: text-decoration-color .18s var(--ease);
}
.link-arrow:hover { text-decoration-color: var(--ink); }
.link-arrow span { display: inline-block; transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 237, 225, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--f-display); letter-spacing: -.01em; font-variation-settings: "SOFT" 100; }
.mark { width: 28px; height: 28px; }
.mark rect, .mark path { fill: var(--ink); }
.mark .mark-bead { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .15s; }
.nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.tagline { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; margin: 22px 0 32px; max-width: 30ch; color: var(--ink); }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-facts { list-style: none; display: flex; gap: 28px; padding: 26px 0 0; margin: 40px 0 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-facts li { font-size: 14px; color: var(--ink-2); }
.hero-facts strong { display: block; font: 600 26px/1.1 var(--f-display); color: var(--ink); letter-spacing: -.02em; }
.hero-art { margin: 0; }
.plate {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  background-color: #f0c9a8;
  overflow: hidden;
}
.plate::after { /* build-plate grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(42,33,28,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(42,33,28,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 60%, #000 40%, transparent 85%);
}
.plate svg, .plate img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ribbon marquee */
.ribbon { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper-2); }
.ribbon-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ribbon-item { display: flex; align-items: center; gap: 10px; padding: 14px 26px; font: 500 15px/1 var(--f-display); font-variation-settings: "SOFT" 100; white-space: nowrap; }
.ribbon-item i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(42,33,28,.25); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.price-note { color: var(--ink-2); font-size: 15px; margin: 0 0 36px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 500; font-size: 14px; color: var(--ink-2);
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(42,33,28,.35); }
.chip.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }

/* product grid: one featured piece, then the rest */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card {
  grid-column: span 4;
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  animation: cardIn .6s var(--ease) both;
  animation-delay: calc(var(--n, 0) * 40ms);
}
.card.is-feature { grid-column: span 8; grid-row: span 2; }
.card.is-small { grid-column: span 3; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.card-art { position: relative; aspect-ratio: 4 / 3; background-color: var(--tint); }
.card.is-feature .card-art { aspect-ratio: auto; flex: 1; min-height: 340px; }
.card-art svg, .card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-idx { position: absolute; top: 14px; left: 16px; z-index: 2; font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: rgba(42,33,28,.6); letter-spacing: .04em; }
.card-tag { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font: 560 21px/1.15 var(--f-display); letter-spacing: -.015em; font-variation-settings: "SOFT" 100; }
.card.is-feature h3 { font-size: clamp(26px, 2.6vw, 34px); }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.price { font: 600 20px/1 var(--f-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price small { font: 500 12px/1 var(--f-sans); color: var(--ink-2); margin-left: 4px; letter-spacing: 0; }
.colors { display: flex; gap: 4px; margin-top: 4px; }
.colors i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(42,33,28,.22); }
.card .btn { min-height: 44px; padding: 0 20px; }
.card[hidden] { display: none; }

/* steps */
.steps-band { background: var(--paper-2); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 26px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.step-n { font: 500 13px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent-ink); }
.steps h3 { font: 560 22px/1.2 var(--f-display); margin: 18px 0 8px; letter-spacing: -.015em; font-variation-settings: "SOFT" 100; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* custom */
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.custom-grid .lede { margin: 22px 0 30px; }
.custom-list { list-style: none; margin: 0; padding: 0; }
.custom-list li { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.custom-list li:last-child { border-bottom: 1px solid var(--line); }
.cl-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 600 16px/1 var(--f-display); color: var(--accent-ink); }
.custom-list h3 { margin: 2px 0 6px; font: 560 20px/1.2 var(--f-display); letter-spacing: -.01em; font-variation-settings: "SOFT" 100; }
.custom-list p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* about */
.about-band { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-grid .h2 { margin-bottom: 24px; max-width: 16ch; }
.about-grid p:not(.eyebrow):not(.lede) { color: var(--ink-2); }
.about-art { aspect-ratio: 1; border-radius: 28px; background-color: #bfd8cf; overflow: hidden; }
.about-art svg, .about-art img { width: 100%; height: 100%; object-fit: cover; }

/* footer */
.site-footer { background: var(--night); color: #efe5d8; padding: clamp(64px, 9vw, 112px) 0 32px; }
.footer-big { font: 500 clamp(30px, 4.6vw, 60px)/1.05 var(--f-display); letter-spacing: -.03em; margin: 0 0 64px; max-width: 20ch; font-variation-settings: "SOFT" 100; }
.footer-cta { background: none; border: 0; padding: 0; cursor: pointer; color: #f29a6e; font: inherit; letter-spacing: inherit; text-decoration: underline; text-underline-offset: 10px; text-decoration-thickness: 2px; }
.footer-cta:hover { color: #ffb48c; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 32px; border-top: 1px solid rgba(239,229,216,.14); }
.f-label { font: 600 12px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(239,229,216,.6); margin: 0 0 14px; }
.f-link, .f-list a, .socials a { color: #efe5d8; text-decoration: none; font-size: 16px; }
.f-link:hover, .f-list a:hover, .socials a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-list, .socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.socials li { display: flex; align-items: center; gap: 10px; }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.pending { font-size: 12px; color: rgba(239,229,216,.55); border: 1px solid rgba(239,229,216,.2); border-radius: 999px; padding: 2px 8px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; font-size: 13px; color: rgba(239,229,216,.55); }

/* order dialog */
.order {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 22px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 30px 80px rgba(36, 28, 24, .35), 0 0 0 1px var(--line);
}
.order[open] { animation: dlgIn .28s var(--ease); }
.order::backdrop { background: rgba(36, 28, 24, .45); backdrop-filter: blur(3px); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.order-form, .order-done { padding: 26px 26px 24px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.order-head .eyebrow { margin-bottom: 8px; }
.order-title { margin: 0; font: 560 28px/1.1 var(--f-display); letter-spacing: -.02em; font-variation-settings: "SOFT" 100; }
.order-sub { color: var(--ink-2); font-size: 15px; margin: 10px 0 22px; }
.x { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: rgba(42,33,28,.07); font-size: 22px; line-height: 1; cursor: pointer; }
.x:hover { background: rgba(42,33,28,.13); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 12px; }
.field-qty { flex: 0 0 110px; }
.field label { font-size: 14px; font-weight: 500; }
.opt { color: var(--ink-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 0; border-radius: 12px;
  background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: 400 16px/1.4 var(--f-sans);
  transition: box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.field .bad { box-shadow: inset 0 0 0 2px #b3261e; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(42,33,28,.25); transition: transform .15s var(--ease); }
.sw:hover { transform: scale(1.1); }
.sw.is-on { box-shadow: inset 0 0 0 1.5px rgba(42,33,28,.25), 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.form-error { color: #b3261e; font-size: 14px; min-height: 0; margin: 0; }
.form-error:not(:empty) { margin: 0 0 12px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.est { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.summary { white-space: pre-wrap; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 16px; font: 400 14px/1.55 ui-monospace, "SF Mono", Menlo, monospace; margin: 0 0 18px; max-height: 40vh; overflow: auto; }
.copied { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; min-height: 1em; text-align: right; }

/* responsive */
@media (max-width: 1000px) {
  .card, .card.is-small { grid-column: span 6; }
  .card.is-feature { grid-column: span 12; grid-row: auto; }
  .card.is-feature .card-art { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n+3) { margin-top: 24px; }
}
@media (max-width: 820px) {
  .hero-grid, .custom-grid, .about-grid { grid-template-columns: 1fr; }
  .plate { aspect-ratio: 16 / 10; }
  .nav { display: none; }
  .header-row { justify-content: space-between; }
  .about-art { max-width: 420px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .header-row { height: 60px; gap: 12px; }
  .wordmark { font-size: 17px; }
  .header-row .btn-small { padding: 0 14px; font-size: 13.5px; }
  .grid { gap: 14px; }
  .card, .card.is-small, .card.is-feature { grid-column: span 12; }
  .card.is-feature .card-art { aspect-ratio: 4 / 3; }
  .hero-facts { gap: 22px; }
  .hero-facts strong { font-size: 22px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-left: 0; padding-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); margin-top: 22px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .field-row { flex-direction: column; gap: 0; }
  .field-qty { flex: 1; }
  .order-form, .order-done { padding: 22px 18px 18px; }
  .order-foot .btn { flex: 1; }
}
@media (max-width: 380px) {
  .wordmark span { font-size: 15px; }
}

/* reduced motion: a still version, nothing wiggles or scrolls by itself */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; }
  .card, .order[open] { animation: none; }
  .btn, .chip, .link-arrow span { transition: none; }
}
