/* Steady Kits storefront */
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --paper: #faf7f2;
  --paper-2: #f3eee6;
  --card: #ffffff;
  --ink: #16181d;
  --body: #343a44;
  --muted: #646c78;
  --line: #e3dcd0;
  --p: #16181d;          /* product primary, overridden per page/card */
  --p-on: #ffffff;
  --p-tint: #efeae2;
  --p-accent: #e4572e;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(22, 24, 29, .06), 0 10px 30px -12px rgba(22, 24, 29, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 560; line-height: 1.08; letter-spacing: -.018em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.28rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.eyebrow { font: 650 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.55; color: var(--body); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
section { padding: clamp(52px, 8vw, 96px) 0; }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.22rem/1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.logo svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: .95rem; font-weight: 520; }
.nav a { text-decoration: none; color: var(--body); padding: 6px 0; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav a.btn { padding: 9px 16px; font-size: .92rem; color: #fff; text-decoration: none; }
.logo, .nav a { white-space: nowrap; }
@media (max-width: 620px) { .nav a.hide-s { display: none; } }
@media (max-width: 480px) { .nav a.hide-xs { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 620 1rem/1.1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(22, 24, 29, .5); }
.btn-product { background: var(--p); color: var(--p-on); }
.btn-product:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--p); }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 28%, transparent); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(22, 24, 29, .04); }
.btn-lg { padding: 17px 30px; font-size: 1.08rem; }
.btn[aria-disabled="true"] { opacity: .78; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* hero (home) */
.hero { padding: clamp(44px, 7vw, 88px) 0 clamp(36px, 5vw, 64px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: italic; font-weight: 480; }
.hero .lead { margin: 22px 0 30px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p-accent); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* the shelf */
.shelf { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 1.1vw, 12px); padding: 0 8px 0; min-height: clamp(260px, 36vw, 420px); }
.shelf::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -14px; height: 14px; background: linear-gradient(#d9cfbf, #c9bda9); border-radius: 3px; box-shadow: 0 14px 24px -10px rgba(60, 45, 20, .35); }
.spine { --h: 100%; position: relative; flex: 1 1 0; max-width: 108px; height: var(--h); min-height: 200px; background: var(--p); color: var(--p-on); border-radius: 7px 7px 2px 2px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 16px 6px 14px; box-shadow: inset -7px 0 12px -8px rgba(0, 0, 0, .35), inset 6px 0 10px -8px rgba(255, 255, 255, .35); transition: transform .22s cubic-bezier(.2, .7, .2, 1); transform-origin: bottom center; }
.spine:hover, .spine:focus-visible { transform: translateY(-14px); }
.spine .cat { font: 700 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .85; writing-mode: vertical-rl; }
.spine .name { font: 600 clamp(.95rem, 1.7vw, 1.22rem)/1.05 var(--display); writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; flex: 1; display: flex; align-items: center; letter-spacing: -.005em; padding: 10px 0; }
.spine .band { width: 62%; height: 5px; border-radius: 3px; background: var(--p-accent); }
.spine:nth-child(1) { --h: 88%; } .spine:nth-child(2) { --h: 100%; } .spine:nth-child(3) { --h: 80%; } .spine:nth-child(4) { --h: 94%; transform: rotate(-3.5deg) translateX(-3px); } .spine:nth-child(4):hover { transform: rotate(-3.5deg) translate(-3px, -14px); } .spine:nth-child(5) { --h: 84%; }
.shelf-wrap { height: clamp(260px, 36vw, 420px); display: flex; align-items: flex-end; padding-bottom: 14px; }
.shelf-wrap .shelf { width: 100%; height: 100%; }
@media (max-width: 560px) { .shelf-wrap { height: 320px; } .spine { padding: 14px 4px 12px; } .spine .cat { display: none; } .spine .name { font-size: .92rem; } }

/* product cards */
.kits { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.kit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.kit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kit-art { background: var(--p-tint); aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: grid; place-items: center; }
.kit-art img { width: 100%; height: 100%; object-fit: cover; }
.kit-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kit-cat { font: 700 .7rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--p); }
.kit-body p { color: var(--muted); font-size: .98rem; margin: 0; }
.kit-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font: 600 1.35rem/1 var(--display); color: var(--ink); }
.kit-link { font-weight: 620; font-size: .95rem; color: var(--p); display: inline-flex; gap: 6px; align-items: center; }
.kit:hover .kit-link span { transform: translateX(3px); }
.kit-link span { transition: transform .15s ease; }

/* bundle band */
.bundle { background: var(--ink); color: #e9e6df; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; }
.bundle h2 { color: #fff; }
.bundle p { color: #c5c1b8; margin: 12px 0 0; max-width: 34em; }
.bundle .price-big { font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); color: #fff; }
.bundle .was { text-decoration: line-through; color: #9b978f; font-size: 1.05rem; margin-left: 10px; }
.bundle .btn { background: #fff; color: var(--ink); margin-top: 16px; }
.bundle-side { text-align: right; }
@media (max-width: 760px) { .bundle { grid-template-columns: 1fr; } .bundle-side { text-align: left; } }

/* steps, principles */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--p); color: var(--p-on); font: 650 .95rem/1 var(--sans); margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 36px; }
.principles h3 { margin-bottom: 6px; }
.principles p { color: var(--muted); margin: 0; font-size: .98rem; }
.alt { background: var(--paper-2); }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 1.08rem/1.35 var(--sans); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--sans); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--body); max-width: 62ch; }

/* product page */
.p-hero { background: var(--p-tint); padding: clamp(36px, 6vw, 76px) 0; }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: inherit; }
.p-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
.p-hero .lead { margin: 18px 0 26px; }
.buy-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.buy-box .price { font-size: 2.1rem; }
.buy-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.p-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.p-cover img { width: 100%; }
@media (max-width: 860px) { .p-hero-grid { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; margin-top: calc(-1 * clamp(26px, 4vw, 40px)); position: relative; }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 600 2rem/1 var(--display); color: var(--p); letter-spacing: -.02em; }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--body); }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

.includes { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.includes li { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.fmt { font: 700 .7rem/1 var(--sans); letter-spacing: .08em; background: var(--p-tint); color: var(--p); border-radius: 7px; padding: 9px 0; text-align: center; }
.includes h3 { font: 620 1.02rem/1.3 var(--sans); letter-spacing: 0; }
.includes p { margin: 3px 0 0; font-size: .93rem; color: var(--muted); }
.includes .pages { font-size: .86rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .includes li { grid-template-columns: 54px 1fr; } .includes .pages { grid-column: 2; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gallery button { all: unset; cursor: zoom-in; display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: transform .18s ease, box-shadow .18s ease; }
.gallery button:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery button:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 3px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center top; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(14, 15, 19, .82); }
dialog.lightbox img { max-height: 90vh; width: auto; max-width: 100%; border-radius: 8px; margin: auto; background: #fff; }
dialog.lightbox form { position: fixed; top: 14px; right: 16px; }
dialog.lightbox button { all: unset; cursor: pointer; color: #fff; font: 500 2rem/1 var(--sans); padding: 6px 12px; }

.sample { background: var(--card); border: 1px dashed color-mix(in srgb, var(--p) 55%, var(--line)); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.sample p { margin: 6px 0 0; color: var(--muted); }
.cta-final { text-align: center; }
.cta-final .buy-box { justify-content: center; margin-top: 26px; }
.cta-final p { margin-inline: auto; }

/* legal + simple pages */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin-bottom: 22px; }
.prose h2 { font-size: 1.5rem; margin: 38px 0 12px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; color: var(--ink); }
.fine { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; max-width: 80ch; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
