/* Satinsmith website: shared by index.html and details.html. Dark, warm and quiet, so the embroidery carries the page.
   The background is the dark felt of the hero render (#1b1e24), so the patch sits on the page itself. Headings use
   Apple's New York (ui-serif), built into every Mac: no web fonts are downloaded. */
:root {
  --bg: #1b1e24;
  --bg-band: #1f232a;
  --bg-card: #262a32;
  --line: rgba(236, 231, 223, .09);
  --line-strong: rgba(236, 231, 223, .18);
  --text: #ece7df;
  --muted: #a8a299;
  --faint: #857f76;
  --gold: #f2b35b;
  --gold-ink: #2a1d08;
  --coral: #e0735c;
  --teal: #48c1a4;
  --blue: #8fb8dc;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--text); }
code { font: 13px var(--mono); overflow-wrap: anywhere; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 22px; letter-spacing: -.005em; line-height: 1.2; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.lede { font-size: 20px; color: var(--muted); max-width: 34em; margin: 16px 0 0; }
.fine { font-size: 13.5px; color: var(--faint); }
.fine a { color: var(--muted); }
section { padding: 92px 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
       background: rgba(27, 30, 36, .78); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 19px/1 var(--serif); text-decoration: none; color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav .links { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; }
.nav .links a { text-decoration: none; color: var(--muted); }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--text); }

/* Buttons. The release script writes <a class="btn"> download links, so a bare .btn is the primary style. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 22px;
       font: 600 16px/1.1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer;
       background: var(--gold); color: var(--gold-ink); transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); background: #f6c16f; color: var(--gold-ink); }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn.ghost:hover { background: rgba(236, 231, 223, .06); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* Status ribbon */
.status { border-bottom: 1px solid var(--line); background: var(--bg-band); font-size: 13.5px; color: var(--muted); }
.status .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 9px 0; text-align: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(72, 193, 164, .15); flex: none; }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 12px; }
.hero .copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { margin: 26px 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.facts li::before { content: "✓"; color: var(--teal); margin-right: 7px; font-weight: 700; }
.hero figure { margin: -30px -90px -30px 20px; position: relative; }
.hero figure img { width: 100%; transform: scale(1.22);
                   -webkit-mask-image: radial-gradient(ellipse 72% 74% at 50% 50%, #000 62%, transparent 100%);
                   mask-image: radial-gradient(ellipse 72% 74% at 50% 50%, #000 62%, transparent 100%); }
.hero figcaption { position: absolute; bottom: -2%; left: 50%; transform: translateX(-50%); white-space: nowrap; }

/* Formats strip */
.formats { border-block: 1px solid var(--line); background: var(--bg-band); padding: 26px 0; }
.formats .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; }
.formats strong { font: 600 18px/1.3 var(--serif); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font: 600 13px/1 var(--mono); letter-spacing: .04em; padding: 8px 11px; border-radius: 8px;
            background: rgba(236, 231, 223, .06); border: 1px solid var(--line); }
.formats .fine { width: 100%; margin: 0; }

/* Watch it sew */
.sew .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.sew video { width: 100%; border-radius: var(--radius); background: var(--bg); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
                    border: 1px solid rgba(242, 179, 91, .45); color: var(--gold); font: 600 17px/1 var(--serif); }
.steps b { display: block; font-size: 17.5px; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 15.5px; }

/* Feature cards */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; }
.section-head .lede { font-size: 17px; max-width: 24em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .shot { aspect-ratio: 16 / 10; overflow: hidden; background: #14161a; border-bottom: 1px solid var(--line); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 40%); transform: scale(var(--zoom, 1.35));
                  transform-origin: var(--focus, 50% 40%); transition: transform .5s ease; }
.card:hover .shot img { transform: scale(calc(var(--zoom, 1.35) + .05)); }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card p { color: var(--muted); font-size: 15.5px; margin: 8px 0 0; }
.card .meta { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tag { font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.tag.paid { color: var(--gold); }
.card .meta a { font-size: 14px; text-decoration: none; }
.mac { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding: 22px; border-radius: var(--radius);
       border: 1px dashed var(--line-strong); color: var(--muted); font-size: 15px; }
.mac b { color: var(--text); font-weight: 600; }

/* Download */
.download .panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.download .actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 26px; }
.download .actions a:not(.btn) { font-size: 15px; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 12px 22px; margin: 0; font-size: 15px; }
.spec dt { color: var(--faint); font-weight: 600; }
.spec dd { margin: 0; color: var(--muted); }

/* Gallery */
.gallery { background: linear-gradient(var(--bg), #20242b 30%, #20242b 70%, var(--bg)); }
.gallery .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.gallery figcaption b { color: var(--text); font-family: var(--serif); font-size: 18px; font-weight: 600; display: block; }

/* Tour */
.tour figure { margin: 44px 0 0; }
.tour video { width: 100%; border-radius: var(--radius); background: #11151d; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); }
.tour figcaption { margin-top: 14px; }
.chapters { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.chapters button { font: 13.5px var(--sans); color: var(--muted); padding: 7px 11px; border-radius: 999px; border: 0; background: rgba(236, 231, 223, .06); cursor: pointer; }
.chapters button:hover { color: var(--text); background: rgba(236, 231, 223, .1); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 48px; }
.tier { position: relative; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.tier .buy { margin: auto 0 0; padding-top: 20px; }
.tier .buy .btn { width: 100%; justify-content: center; white-space: nowrap; padding-left: 10px; padding-right: 10px; font-size: 14px; }
.tier.pick { border-color: rgba(242, 179, 91, .55); background: linear-gradient(180deg, rgba(242, 179, 91, .08), rgba(242, 179, 91, 0) 40%), var(--bg-card); }
.tier .price { font: 600 40px/1 var(--serif); margin: 14px 0 4px; }
.tier .price small { font: 500 14px var(--sans); color: var(--faint); margin-left: 4px; }
.tier p { color: var(--muted); font-size: 14.5px; margin: 6px 0 14px; }
.tier ul, .ticks { list-style: none; padding: 0; margin: 0; font-size: 14.5px; display: grid; gap: 8px; }
.tier li::before, .ticks li::before { content: "✓"; color: var(--teal); margin-right: 8px; font-weight: 700; }
.ribbon { position: absolute; top: -12px; right: 18px; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
          background: var(--gold); color: var(--gold-ink); padding: 6px 9px; border-radius: 999px; }
.note { margin-top: 20px; padding: 16px 20px; border-radius: 12px; background: rgba(224, 115, 92, .08); border: 1px solid rgba(224, 115, 92, .25); color: var(--muted); font-size: 14.5px; }
.note b { color: var(--text); }

/* FAQ */
.faq .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font: 600 19px/1.35 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font: 400 24px/1 var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }

/* Panels (download, waitlist) */
.panel { position: relative; overflow: hidden; border-radius: 28px; padding: 56px; background: #20242b; border: 1px solid var(--line); }
.join .panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }

/* Forms */
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 16px var(--sans); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.radios { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.radios legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.radios label { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 15px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.radios label:has(input:checked) { border-color: var(--gold); background: rgba(242, 179, 91, .06); }
.radios input { width: auto; margin-top: 4px; accent-color: var(--gold); }
.radios span { color: var(--muted); }
.radios strong { color: var(--text); font-weight: 600; }
.ok-msg { display: none; padding: 18px; border: 1px solid var(--teal); border-radius: 12px; color: var(--teal); }

/* Details page */
.page-head { padding: 72px 0 36px; }
.page-head h1 { font-size: clamp(40px, 5.4vw, 66px); max-width: 16em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; padding: 8px 13px; border-radius: 999px; background: rgba(236, 231, 223, .06); }
.toc a:hover { color: var(--text); }
.detail { padding: 56px 0; border-top: 1px solid var(--line); }
.detail .wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 56px; }
.detail .wrap + .wrap, .detail .wrap.solo { display: block; }   /* tables and solo headings span the full width */
.detail .wrap + .wrap { margin-top: 30px; }
.detail .solo .recap { max-width: 46em; }
.detail h2 { font-size: clamp(28px, 3.2vw, 38px); }
.detail .recap { color: var(--muted); font-size: 16.5px; margin: 14px 0 0; }
.detail .tag { display: inline-block; margin-top: 16px; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.points li { font-size: 16px; color: var(--muted); padding-left: 18px; border-left: 2px solid var(--line-strong); }
.points li b { color: var(--text); display: block; margin-bottom: 2px; }
.example { margin-top: 22px; padding: 16px 20px; border-radius: 12px; background: rgba(143, 184, 220, .07); border: 1px solid rgba(143, 184, 220, .2); font-size: 15px; color: var(--text); }
.example b { color: var(--blue); }
.tablewrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: #22262d; }
td:first-child, th:first-child { position: sticky; left: 0; background: var(--bg-card); z-index: 1; }
th:first-child { background: #22262d; }
td.y { color: var(--teal); } td.n { color: var(--faint); } td.p { color: var(--gold); }
.scrollhint { font-size: 12.5px; color: var(--faint); margin: 14px 0 0; }
@media (min-width: 900px) { .scrollhint { display: none; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 60px; color: var(--faint); font-size: 14px; }
footer .wrap { display: grid; gap: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

@media (max-width: 960px) {
  section { padding: 70px 0; }
  .hero .wrap, .sew .wrap, .faq .wrap, .join .panel, .download .panel, .detail .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero figure { margin: 6px -20px 0; }
  .hero figure img { transform: none; }
  .grid, .gallery .row, .tiers { grid-template-columns: 1fr 1fr; }
  .nav .links { display: none; }
  .panel { padding: 34px 24px; }
  .section-head { display: block; }
}
@media (max-width: 620px) {
  .grid, .gallery .row, .tiers, .pair { grid-template-columns: 1fr; }
  .hero figcaption { position: static; transform: none; white-space: normal; text-align: center; margin-top: 8px; }
  .spec { grid-template-columns: 1fr; gap: 4px; }
  .spec dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card .shot img { transition: none; }
}
