/* Pageseam · direction C, "The Stitched Link". No frameworks, no trackers. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #161616;
  --paper: #F3EFE6;
  --surface: #FFFFFF;
  --stone: #5A5852;
  --link: #23408E;
  --blue-soft: #E3E8F5;
  --rule: #D8D2C6;
  --on-ink: #F3EFE6;
  --ph-bg: #FFF0B8;
  --ph-ink: #5C4300;
  --ph-line: #C99A00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3EFE6;
    --paper: #161616;
    --surface: #1F1E1C;
    --stone: #B8B2A6;
    --link: #9DB2F0;
    --blue-soft: #1C2236;
    --rule: #3A3833;
    --on-ink: #161616;
    --ph-bg: #3D3108;
    --ph-ink: #FFE58A;
    --ph-line: #B08A10;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: break-word;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 16px; }
h1 { font-size: clamp(2.25rem, 7vw, 4rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.005em; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding: 0; }
strong { font-weight: 700; }

a { color: var(--link); text-decoration: underline dashed; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { text-decoration-style: solid; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link); outline-offset: 3px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-head { border-bottom: 1.5px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { height: 24px; width: auto; }
@media (min-width: 768px) { .logo { height: 28px; } }
.brand { display: inline-block; text-decoration: none; }
.nav { display: none; gap: 24px; align-items: center; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline dashed var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (min-width: 900px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid var(--ink); border-radius: 2px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn-fill { background: var(--ink); color: var(--on-ink); }
.btn-fill:hover { background: var(--link); border-color: var(--link); color: #FFFFFF; text-decoration: none; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--link); color: var(--link); text-decoration: none; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }

/* Type helpers */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); margin: 0 0 16px; }
.lede { font-size: 1.125rem; max-width: 40em; }
.muted { color: var(--stone); }
.small { font-size: 14px; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* Placeholders that must stay visible until filled */
.ph {
  display: inline; padding: 1px 6px; border: 1px dashed var(--ph-line); border-radius: 2px;
  background: var(--ph-bg); color: var(--ph-ink);
  font-size: 0.85em; font-weight: 700; letter-spacing: 0; line-height: 1.5;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h1 .ph, h2 .ph { font-size: 0.45em; vertical-align: middle; }

/* Sections */
.section { padding: 64px 0; border-top: 1.5px solid var(--rule); }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-head { max-width: 760px; margin-bottom: 32px; }
.band { background: var(--blue-soft); }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 80px 0 96px; } .hero-grid { grid-template-columns: 1.08fr 1fr; gap: 56px; } }
.hero h1 { margin-bottom: 12px; }
.hero .tag-line { margin: 0 0 24px; }

/* The seam: ad -> page schematic */
.seam { margin: 0; }
.seam-row { display: grid; grid-template-columns: 1fr 28px 0.72fr; align-items: center; }
@media (min-width: 600px) { .seam-row { grid-template-columns: 1fr 56px 0.68fr; } }
.seam-ad { position: relative; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--surface); }
.seam-ad img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 1px; }
.seam-line { height: 0; border-top: 2px dashed var(--link); }
.seam-page { border: 1.5px solid var(--ink); border-radius: 12px; background: var(--surface); padding: 10px 8px 14px; }
.seam-page .bar-top { height: 6px; width: 34%; margin: 0 auto 8px; border-radius: 3px; background: var(--rule); }
.seam-page img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.seam-page .b { height: 8px; border-radius: 1px; background: var(--ink); margin-top: 10px; width: 78%; }
.seam-page .b.s { background: var(--stone); width: 34%; height: 6px; margin-top: 7px; }
.seam-page .b.btn-b { width: 100%; height: 18px; border-radius: 2px; margin-top: 12px; }
.seam-page .b.r { background: var(--rule); width: 100%; height: 5px; margin-top: 8px; }
.seam figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--stone); }

/* Badges on demo work */
.badge {
  display: inline-block; padding: 3px 8px; border-radius: 2px;
  background: var(--ink); color: var(--on-ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4;
}
.on-img { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); }

/* 10 / 2 / 1 strip */
.strip { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.strip ul { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.strip li { padding: 24px 8px; text-align: center; }
.strip li + li { border-left: 1.5px solid var(--rule); }
.strip .n { display: block; font-size: clamp(2.25rem, 8vw, 3.5rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.strip .l { display: block; margin-top: 8px; font-size: 14px; color: var(--stone); line-height: 1.3; }

/* Lists with dash markers */
.dash { list-style: none; }
.dash li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.dash li::before { content: "\2013"; position: absolute; left: 0; color: var(--stone); }

/* Pricing */
.cards { display: grid; gap: 16px; }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1.5px solid var(--rule); border-radius: 2px; padding: 24px; display: flex; flex-direction: column; }
@media (min-width: 768px) { .card { padding: 28px; } }
.card h3 { margin-bottom: 8px; }
.price { font-size: 2.5rem; font-weight: 700; line-height: 1; margin: 8px 0 4px; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
.price small { font-size: 0.95rem; font-weight: 400; color: var(--stone); letter-spacing: 0; }
.card .dash { margin: 20px 0 24px; font-size: 16px; }
.card .btn { margin-top: auto; }
.card-key { border-color: var(--ink); }
.sample-box { display: grid; gap: 24px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 2px; padding: 24px; }
@media (min-width: 900px) { .sample-box { grid-template-columns: 1.3fr 1fr; padding: 32px; align-items: start; } }
.sample-box .dash { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin-top: 32px; }
.prices-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prices-table th, .prices-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prices-table th { font-weight: 700; border-bottom: 1.5px solid var(--ink); }
.prices-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
/* Below 640px each row becomes a block: name, what's included and price, one under the other (#723, 24/10) */
@media (max-width: 639px) {
  .prices-table { min-width: 0; }
  .prices-table thead { position: absolute; left: -9999px; }
  .prices-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .prices-table tbody tr:first-child { border-top: 1.5px solid var(--ink); }
  .prices-table th, .prices-table td { display: block; padding: 0; border-bottom: 0; }
  .prices-table td { margin-top: 4px; }
}

/* Steps */
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.steps li { counter-increment: s; position: relative; padding: 16px 0 0 52px; border-top: 1.5px solid var(--rule); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 14px;
  font-weight: 700; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums; color: var(--link);
}

/* Two columns */
.cols { display: grid; gap: 40px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Facts */
.facts { list-style: none; display: grid; gap: 16px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts li { background: var(--surface); border: 1.5px solid var(--rule); border-radius: 2px; padding: 20px; }
.facts strong { display: block; margin-bottom: 6px; }

/* Work samples */
.work-note { border-left: 3px solid var(--link); padding: 4px 0 4px 16px; margin: 0 0 32px; max-width: 760px; }
.grid-demo { columns: 2; column-gap: 12px; }
@media (min-width: 900px) { .grid-demo { columns: 3; column-gap: 20px; } }
.grid-demo .tile { break-inside: avoid; margin-bottom: 20px; }
.tile { margin: 0; }
.tile .frame { position: relative; border: 1.5px solid var(--rule); border-radius: 2px; overflow: hidden; background: var(--surface); }
.tile figcaption { font-size: 13px; line-height: 1.45; color: var(--stone); margin-top: 8px; }
.grid-secoes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; margin-top: 24px; }
@media (min-width: 900px) { .grid-secoes { grid-template-columns: 1fr 1fr 2.2fr; gap: 20px; } }
.grid-secoes .wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .grid-secoes .wide { grid-column: auto; } }
.sub-h { margin-top: 56px; }
.crop-390 { aspect-ratio: 390 / 560; object-fit: cover; object-position: top; width: 100%; }

/* FAQ */
.faq details { border-top: 1.5px solid var(--rule); }
.faq details:last-child { border-bottom: 1.5px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 0 20px; margin: 0; max-width: 46em; }

/* Form */
.form-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
form .field { margin-bottom: 20px; }
form label { display: block; font-weight: 700; margin-bottom: 6px; }
form .hint { display: block; font-weight: 400; font-size: 14px; color: var(--stone); }
form input[type="text"], form input[type="email"], form input[type="url"] {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--ink); border-radius: 2px;
}
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; margin: 8px 0 24px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--link); }
.consent label { font-weight: 400; margin: 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-box { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 2px; padding: 24px; }
@media (min-width: 768px) { .form-box { padding: 32px; } }

/* Footer */
.site-foot { border-top: 1.5px solid var(--ink); padding: 40px 0 56px; font-size: 15px; }
.site-foot .wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .site-foot .wrap { grid-template-columns: 1fr 1fr 1fr; } }
.site-foot p { margin: 0 0 6px; }
.site-foot .logo { height: 22px; margin-bottom: 12px; }

/* Long-form pages (terms, privacy) */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); }
.doc h2 { font-size: 1.25rem; margin-top: 32px; }
.doc ol.clauses { list-style: none; counter-reset: c; }
.doc ol.clauses > li { counter-increment: c; margin-bottom: 18px; }
.doc .review { background: var(--ph-bg); color: var(--ph-ink); border: 1px dashed var(--ph-line); border-radius: 2px; padding: 12px 16px; margin: 0 0 32px; font-size: 15px; }

/* Private sample pages */
.declare { border: 1.5px solid var(--ink); border-left: 6px solid var(--link); border-radius: 2px; background: var(--surface); padding: 20px; margin: 24px 0 8px; font-size: 1.0625rem; }
.declare p { margin: 0; }
.pair { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); align-items: start; }
@media (min-width: 900px) { .pair { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pair.before { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .pair.before { grid-template-columns: repeat(4, 1fr); } }
.pair .tile .frame img { width: 100%; }
.video-box { max-width: 420px; }
.video-box video { width: 100%; border: 1.5px solid var(--rule); border-radius: 2px; background: #000; }
/* Sample pages on desktop: no empty band between the note and "Before" (#723, 24/10) */
@media (min-width: 900px) { .doc .section { padding: 64px 0; } .doc .section > h2:first-child { margin-top: 0; } }
