/* Offcut site. One shared stylesheet, no external fonts, no scripts required.
   Colours are the brand tokens from docs/brand/BRAND.md. Dark by default, light via prefers-color-scheme. */
:root {
  color-scheme: dark light;
  --bg: #16141D;
  --surface: #201D29;
  --sunken: #2B2836;
  --ink: #F6F0E8;
  --ink2: #B3A9A0;
  --hair: #35313F;
  --accent: #FF6A3D;
  --link: #FF8A63;
  --btn: #FF6A3D;
  --on-btn: #2A0D03;
  --soft: #4D2C2D;
  --on-soft: #FF8A63;
  --ok: #4FD98A;
  --grad-top: #FFDF8F;
  --grad-bot: #FF9F5C;
  --tile-photo-a: #3C5A99;
  --tile-photo-b: #1F7F78;
  --tile-photo-c: #8A5A2B;
  --radius: 16px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FFF8EC; --surface: #FFFFFF; --sunken: #F7F1E6; --ink: #2A1F18; --ink2: #6B5F55; --hair: #ECE2D2;
    --accent: #E84B17; --link: #C93A0A; --btn: #C93A0A; --on-btn: #FFFFFF; --soft: #FCE9E3; --on-soft: #A82F08; --ok: #1B7A45;
    --tile-photo-a: #6F8FD6; --tile-photo-b: #5BBDB3; --tile-photo-c: #D9A066;
  }
}
:root[data-theme="light"] {
  --bg: #FFF8EC; --surface: #FFFFFF; --sunken: #F7F1E6; --ink: #2A1F18; --ink2: #6B5F55; --hair: #ECE2D2;
  --accent: #E84B17; --link: #C93A0A; --btn: #C93A0A; --on-btn: #FFFFFF; --soft: #FCE9E3; --on-soft: #A82F08; --ok: #1B7A45;
  --tile-photo-a: #6F8FD6; --tile-photo-b: #5BBDB3; --tile-photo-c: #D9A066;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--btn); color: var(--on-btn); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }

/* header */
.site-header { border-bottom: 1px solid var(--hair); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: .25rem 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--ink2); text-decoration: none; padding: .45rem .1rem; font-size: .975rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.theme-btn { background: none; border: 1px solid var(--hair); color: var(--ink2); border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .875rem; cursor: pointer; min-height: 44px; }
.theme-btn:hover { color: var(--ink); }
.theme-btn[hidden] { display: none; }

/* type */
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--ink2); max-width: 36em; }
.eyebrow { color: var(--link); font-weight: 700; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; }
.fine { color: var(--ink2); font-size: .9rem; }
em.hl { font-style: normal; color: var(--accent); white-space: nowrap; }

/* hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); background: radial-gradient(ellipse 80% 60% at 70% 0%, color-mix(in srgb, var(--grad-bot) 16%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .75rem 1.5rem; border-radius: 14px; background: var(--btn); color: var(--on-btn); font-weight: 700; text-decoration: none; border: 0; font-size: 1.05rem; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair); }

/* sections */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--hair); }
.steps { display: grid; gap: 1.2rem; counter-reset: s; padding: 0; margin: 2rem 0 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 1.4rem; }
section.alt .steps li { background: var(--bg); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--soft); color: var(--on-soft); font-weight: 800; margin-bottom: .8rem; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink2); }

.cards { display: grid; gap: 1rem; margin-top: 1.6rem; }
@media (min-width: 720px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 1.4rem; }
section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: .3em; }
.card p { margin: 0; color: var(--ink2); }
.card .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.card .price small { font-size: 1rem; color: var(--ink2); font-weight: 500; }
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.badge { display: inline-block; background: var(--soft); color: var(--on-soft); font-weight: 700; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .6rem; letter-spacing: .03em; }
.note { background: var(--sunken); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1.4rem; }
.note p:last-child { margin-bottom: 0; }
.counsel { border: 2px dashed var(--accent); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 2rem; background: var(--soft); color: var(--ink); }
.counsel strong { color: var(--on-soft); }
.counsel p { margin: 0; }

/* demo illustration */
.demo { width: 100%; background: var(--surface); border: 1px solid var(--hair); border-radius: 24px; padding: .5rem; }
.demo svg { display: block; width: 100%; height: auto; }
.d-text { font-family: var(--font); fill: var(--ink); }
.d-sub { font-family: var(--font); fill: var(--ink2); }
.d-chip-bg { fill: var(--sunken); stroke: var(--hair); }
.d-chip-on { fill: var(--btn); }
.d-chip-label { font-family: var(--font); font-weight: 700; fill: var(--ink2); }
.d-chip-label-on { font-family: var(--font); font-weight: 700; fill: var(--on-btn); }
.t-photo-a { fill: var(--tile-photo-a); } .t-photo-b { fill: var(--tile-photo-b); } .t-photo-c { fill: var(--tile-photo-c); }
.t-shot { fill: var(--sunken); stroke: var(--hair); }
.t-line { fill: var(--ink2); opacity: .55; }
.t-sun { fill: #FFDF8F; opacity: .9; }
.t-hill { fill: #000; opacity: .22; }
.t-ring { fill: none; stroke: var(--accent); stroke-width: 3; }
.t-age { font-family: var(--font); font-size: 11px; font-weight: 700; fill: var(--accent); }
.d-count { font-family: var(--font); font-weight: 800; fill: var(--ink); }
.d-tick { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* Static end state (also what reduced-motion users see). */
.demo .dim1 { opacity: .16; }
.demo .dim2 { opacity: .16; }
.demo .chip1, .demo .chip2 { }
.demo .chip-on { opacity: 1; }
.demo .chip-off { opacity: 0; }
.demo .cnt0, .demo .cnt1 { opacity: 0; }
.demo .cnt2 { opacity: 1; }
.demo .keep .t-ring { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .demo .dim1 { animation: dim1 11s infinite both; }
  .demo .dim2 { animation: dim2 11s infinite both; }
  .demo .chip1.chip-on { animation: on1 11s infinite both; }
  .demo .chip2.chip-on { animation: on2 11s infinite both; }
  .demo .chip1.chip-off { animation: off1 11s infinite both; }
  .demo .chip2.chip-off { animation: off2 11s infinite both; }
  .demo .cnt0 { animation: c0 11s infinite both; }
  .demo .cnt1 { animation: c1 11s infinite both; }
  .demo .cnt2 { animation: c2 11s infinite both; }
  .demo .keep .t-ring { animation: ring 11s infinite both; }
}
@keyframes dim1 { 0%,22% { opacity: 1; } 30%,93% { opacity: .16; } 100% { opacity: 1; } }
@keyframes dim2 { 0%,52% { opacity: 1; } 60%,93% { opacity: .16; } 100% { opacity: 1; } }
@keyframes on1  { 0%,20% { opacity: 0; } 24%,93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes off1 { 0%,20% { opacity: 1; } 24%,93% { opacity: 0; } 100% { opacity: 1; } }
@keyframes on2  { 0%,50% { opacity: 0; } 54%,93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes off2 { 0%,50% { opacity: 1; } 54%,93% { opacity: 0; } 100% { opacity: 1; } }
@keyframes c0 { 0%,24% { opacity: 1; } 28%,93% { opacity: 0; } 100% { opacity: 1; } }
@keyframes c1 { 0%,24% { opacity: 0; } 28%,54% { opacity: 1; } 58%,100% { opacity: 0; } }
@keyframes c2 { 0%,54% { opacity: 0; } 58%,93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ring { 0%,62% { opacity: 0; } 68%,93% { opacity: 1; } 100% { opacity: 0; } }

/* faq */
details { background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; margin-bottom: .7rem; }
section.alt details { background: var(--bg); }
summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 1.2rem 1rem; color: var(--ink2); }
details > div p:last-child { margin-bottom: 0; }

/* prose pages */
.prose { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.updated { color: var(--ink2); font-size: .95rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.2rem 0; }
th, td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--hair); }
th { color: var(--ink2); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }
caption { text-align: left; color: var(--ink2); padding-bottom: .5rem; font-size: .9rem; }
.ph { background: var(--sunken); border: 2px dashed var(--hair); border-radius: var(--radius); padding: 2rem 1rem; text-align: center; color: var(--ink2); }
.src { font-size: .85rem; color: var(--ink2); }
sup a { text-decoration: none; font-weight: 700; }

/* footer */
.site-footer { border-top: 1px solid var(--hair); padding: 2.2rem 0 3rem; color: var(--ink2); font-size: .95rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }
.site-footer a { color: var(--ink2); padding: .3rem 0; display: inline-block; }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: .8rem 0 0; max-width: 42em; }

@media (max-width: 520px) { .btn { width: 100%; } .cta-row { flex-direction: column; align-items: stretch; } }
@media print { .site-header .nav, .theme-btn, .cta-row { display: none; } body { background: #fff; color: #000; } }

/* utilities (no inline styles, so the CSP can stay strict) */
.mt { margin-top: 1.2rem; }
.center { text-align: center; }
.mx { margin-inline: auto; }
.jc { justify-content: center; }

/* guides and model pages (generated by marketing/seo/seo_pages.py) */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0 0 1.2rem; font-size: .9rem; color: var(--ink2); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--ink2); }
.crumbs a { color: var(--ink2); }
.meta { color: var(--ink2); font-size: .9rem; margin-top: -.4rem; }
.toc { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.4rem 0; }
.toc-h { font-weight: 700; margin: 0 0 .4rem; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .2rem; }
.cta-box { background: var(--soft); border-radius: var(--radius); padding: 1.4rem; margin: 2.4rem 0 1rem; }
.cta-box h2 { margin-top: 0; font-size: 1.3rem; }
.cta-box .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1rem 0 .6rem; }
.related { list-style: none; padding: 0 !important; }
.related li { margin-bottom: .7rem; }
.related span { color: var(--ink2); display: block; font-size: .95rem; }
.guide-card { display: block; text-decoration: none; color: inherit; }
.guide-card:hover { border-color: var(--accent); }
.guide-card h3 { color: var(--ink); }
.cta-box a:not(.btn) { color: var(--on-soft); }
