:root {
  --ink: #18202a;
  --muted: #61707b;
  --paper: #f5f1e8;
  --paper-2: #ebe6db;
  --white: #fffdf8;
  --navy: #17364a;
  --clay: #c96645;
  --lime: #dbe86c;
  --line: rgba(24, 32, 42, 0.16);
  --shadow: 0 24px 70px rgba(23, 54, 74, 0.12);
  --radius: 24px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
.shell { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.eyebrow { margin: 0 0 .8rem; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.clay { color: var(--clay); }
.display { font: 500 clamp(3.3rem, 8vw, 7.7rem)/.88 var(--serif); letter-spacing: -.055em; margin: 0; }
.display em { color: var(--clay); font-weight: 500; }
.section-title { font: 500 clamp(2.2rem, 5vw, 4.4rem)/.98 var(--serif); letter-spacing: -.035em; margin: 0; }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 42rem; }
.fine { color: var(--muted); font-size: .88rem; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 241, 232, .88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 900; letter-spacing: .03em; }
.brand-mark { width: 34px; height: 34px; border-radius: 50% 50% 48% 52% / 58% 45% 55% 42%; background: var(--navy); position: relative; rotate: -8deg; }
.brand-mark::after { content: ""; position: absolute; width: 11px; height: 11px; right: 2px; top: 3px; border-radius: 50%; background: var(--lime); }
.nav-links { display: flex; align-items: center; gap: 1.65rem; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--clay); }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .55rem .85rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .72rem 1.15rem; border-radius: 999px; border: 1px solid var(--ink); text-decoration: none; font-weight: 800; cursor: pointer; background: transparent; }
.button.primary { color: var(--white); background: var(--navy); border-color: var(--navy); }
.button.primary:hover { background: #214c66; }
.button.light { background: var(--white); border-color: transparent; }
.button.small { min-height: 40px; padding: .5rem .9rem; font-size: .86rem; }

.hero { min-height: 750px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 2rem; padding: 6rem 0 5rem; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .lede { margin: 2rem 0; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-art { min-height: 520px; position: relative; }
.shape { position: absolute; box-shadow: var(--shadow); }
.shape.one { inset: 7% 0 0 12%; background: var(--navy); border-radius: 45% 55% 52% 48% / 39% 34% 66% 61%; rotate: 6deg; }
.shape.two { width: 54%; height: 43%; top: 8%; right: 0; background: var(--clay); border-radius: 50%; rotate: -12deg; }
.shape.three { width: 54%; height: 46%; left: 0; bottom: 0; background: var(--lime); border-radius: 38% 62% 48% 52% / 58% 35% 65% 42%; rotate: -7deg; }
.art-card { position: absolute; width: 70%; left: 18%; top: 24%; z-index: 2; padding: 1.4rem; background: var(--white); border-radius: 20px; rotate: -4deg; box-shadow: 0 16px 40px rgba(0,0,0,.15); }
.art-card .score { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: .7rem; }
.art-card strong { font: 500 2rem var(--serif); }

.statement { padding: 1.4rem 0; border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.statement p { margin: 0; font: 500 clamp(1.4rem, 3vw, 2.6rem) var(--serif); letter-spacing: -.02em; }
.statement span { color: var(--clay); padding-inline: .5rem; }

.section { padding: 7rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.3rem; }
.section-head > div { max-width: 720px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.guide-card { position: relative; display: flex; flex-direction: column; min-height: 390px; padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.guide-card .visual { height: 150px; margin: -1.4rem -1.4rem 1.3rem; position: relative; overflow: hidden; background: var(--navy); }
.visual::before, .visual::after { content: ""; position: absolute; border-radius: 50%; }
.visual::before { width: 150px; height: 150px; background: var(--clay); right: -25px; top: -35px; }
.visual::after { width: 90px; height: 90px; background: var(--lime); left: 26px; bottom: -35px; }
.visual.coffee { background: #5a392d; }
.visual.carry { background: #465d4b; }
.tag { font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.guide-card h3 { margin: .6rem 0; font: 500 1.75rem/1.08 var(--serif); letter-spacing: -.025em; }
.guide-card p { color: var(--muted); margin: 0 0 1.2rem; }
.card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-link { font-weight: 850; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.save { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.save[aria-pressed="true"] { color: var(--white); border-color: var(--clay); background: var(--clay); }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.2rem; }
.panel { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); }
.panel.dark { color: var(--white); background: var(--navy); }
.panel.lime { background: var(--lime); }
.panel.paper { background: var(--paper-2); border: 1px solid var(--line); }
.checklist { list-style: none; margin: 2rem 0 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.2); }
.checklist span { color: var(--lime); font-weight: 900; }
.compare-demo { margin-top: 2rem; display: grid; gap: .8rem; }
.demo-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; background: rgba(255,255,255,.62); border-radius: 14px; }
.demo-row.best { background: var(--white); box-shadow: 0 10px 20px rgba(23,54,74,.08); }

.page-hero { padding: 6rem 0 3.5rem; }
.page-hero .display { max-width: 980px; }
.page-hero .lede { margin-top: 1.7rem; }
.filter-bar { display: grid; grid-template-columns: 1fr 220px auto; gap: .8rem; margin-bottom: 2rem; }
.field { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: .7rem .9rem; }
.empty-state { display: none; padding: 3rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state.visible { display: block; }

.article { width: min(780px, calc(100% - 2rem)); margin: 0 auto; padding: 5rem 0 7rem; }
.article h1 { font: 500 clamp(2.8rem, 7vw, 5.3rem)/.95 var(--serif); letter-spacing: -.045em; }
.article h2 { margin-top: 3rem; font: 500 2rem/1.1 var(--serif); }
.article h3 { margin-top: 2rem; }
.article p, .article li { font-size: 1.05rem; }
.article .intro { color: var(--muted); font-size: 1.28rem; }
.note { margin: 2rem 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--clay); background: var(--white); }
.steps { counter-reset: steps; list-style: none; padding: 0; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 40px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(steps, decimal-leading-zero); color: var(--clay); font-weight: 900; }

.calculator { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.calc-card { padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.calc-card label { display: block; font-weight: 800; margin: .8rem 0 .35rem; }
.calc-card input, .calc-card select { width: 100%; min-height: 48px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: .6rem .7rem; }
.result { margin-top: 1rem; padding: 1.2rem; border-radius: 16px; background: var(--navy); color: var(--white); }
.result strong { font: 500 2rem var(--serif); }
.winner { margin-top: 1rem; font-weight: 800; color: var(--navy); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.principle { padding: 1.4rem; border-top: 3px solid var(--clay); background: var(--white); }
.principle h3 { font: 500 1.5rem var(--serif); }

.site-footer { padding: 3.5rem 0 2rem; color: var(--white); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font: 500 2.2rem var(--serif); margin: 0 0 .8rem; }
.footer-grid h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.footer-grid ul { padding: 0; margin: 0; list-style: none; }
.footer-grid li { margin: .5rem 0; }
.footer-grid a { color: rgba(255,255,255,.78); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.58); font-size: .82rem; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 1rem; right: 1rem; top: 64px; padding: 1rem; flex-direction: column; align-items: stretch; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-art { min-height: 420px; }
  .guide-grid, .principles { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 1.25rem, 1160px); }
  .hero { min-height: auto; }
  .hero-art { min-height: 330px; }
  .art-card { width: 78%; left: 11%; }
  .section { padding: 4.5rem 0; }
  .section-head { align-items: start; flex-direction: column; }
  .guide-grid, .principles, .calculator, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .filter-bar { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding-top: 4rem; }
}

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