:root {
  color-scheme: light;
  --paper: #f8f6ee;
  --card: #fcfaf3;
  --ink: #233c2f;
  --green: #224936;
  --deep: #183e30;
  --muted: #565e51;
  --rule: #d3d2c3;
  --gold: #e9d5a0;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(1rem, 5.6vw, 5rem);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a75124; outline-offset: 4px; }
.hero :focus-visible { outline-color: #ffdc93; }
::selection { color: #112d20; background: #e5ce93; }
.shell { width: min(calc(100% - var(--gutter) * 2), 75rem); margin-inline: auto; }
.skip {
  position: absolute; z-index: 8; top: .6rem; left: .75rem; padding: .7rem 1rem;
  background: white; transform: translateY(-160%);
}
.skip:focus { transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.icon {
  display: inline-block; width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner, .main-nav, .brand, .nav-tool, .hero-link, .section-top, .read-time,
.card-meta, .footer-inner, .mode, .field-box, .result-name { display: flex; align-items: center; }
.masthead-inner { min-height: 4.75rem; justify-content: space-between; gap: 1.4rem; }
.brand {
  gap: .64rem; text-decoration: none; font: 700 1.72rem/1 var(--serif); letter-spacing: -.05em;
  white-space: nowrap;
}
.brand-mark { width: 2.45rem; height: 2.45rem; flex: none; }
.main-nav { gap: clamp(1.15rem, 2.6vw, 2.45rem); font-size: .92rem; font-weight: 550; }
.main-nav a { text-decoration: none; }
.nav-text { position: relative; padding: .7rem 0; }
.nav-text:hover, .nav-text[aria-current] { color: #172e22; }
.nav-text::after {
  content: ""; position: absolute; bottom: .36rem; left: 0; right: 0; height: 1.5px;
  background: #927246; transform: scaleX(0); transform-origin: left;
}
.nav-text:hover::after, .nav-text[aria-current]::after { transform: scaleX(1); }
.nav-tool {
  gap: .52rem; padding: .55rem .9rem; border: 1px solid #a8ac96; border-radius: .45rem;
  font-size: .86rem; font-weight: 650;
}
.nav-tool:hover { background: #eeeddf; border-color: #6f7b62; }
.nav-tool .icon { width: 1.05rem; height: 1.05rem; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: 1.08fr .92fr; align-items: center;
  min-height: 24.25rem; margin-top: 1.75rem; padding: 2.45rem clamp(2rem, 4.4vw, 4.2rem);
  border: 1px solid #1e4333; border-radius: .85rem; background: var(--deep); color: #f7f1df;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse at 76% 45%, #35573e 0%, #254836 35%, #183c2e 78%);
}
.hero-grain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .097; z-index: -1; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .category, .aside-label {
  font: 600 .76rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .125em;
}
.hero-kicker { display: flex; align-items: center; gap: .72rem; color: #e8d9ae; }
.hero-kicker::before { content: ""; width: 1.9rem; height: 1px; background: #c3a871; }
.hero h1 {
  margin: 1rem 0 .85rem; font: 500 clamp(3.3rem, 5.65vw, 5.05rem)/.98 var(--serif);
  letter-spacing: -.054em;
}
.hero h1 em { display: block; color: var(--gold); font-weight: 400; }
.hero-copy > p:not(.hero-kicker) { max-width: 29rem; font-size: 1rem; line-height: 1.58; color: #e0e5d5; }
.hero-link {
  width: fit-content; gap: .64rem; margin-top: 1.45rem; padding: .77rem 1.12rem;
  color: #253c2d; background: #f5edda; border-radius: .4rem;
  font-size: .91rem; font-weight: 650; text-decoration: none;
}
.hero-link:hover { background: #fffbef; }
.hero-link .icon { width: 1.05rem; height: 1.05rem; }
.hero-figure { position: relative; min-width: 0; display: grid; justify-items: center; margin: -.8rem -1rem -.5rem -.8rem; }
.hero-etch { display: block; width: min(100%, 29.5rem); height: clamp(16.2rem, 22.9vw, 20.4rem); }
.hero-figure figcaption {
  display: flex; align-items: center; gap: .62rem; margin-top: .05rem;
  color: #d4ccad; font: italic .9rem/1.3 var(--serif);
}
.hero-figure figcaption::before, .hero-figure figcaption::after { content: ""; width: 1.2rem; height: 1px; background: #a7a17f; opacity: .7; }
.journal { margin-top: clamp(2.3rem, 3.7vw, 3.4rem); scroll-margin-top: 1.25rem; }
.section-top { justify-content: space-between; gap: 1.2rem; margin-bottom: 1.2rem; }
.section-top h2, .calculator h2 {
  font: 500 clamp(2.05rem, 3.05vw, 2.7rem)/1.08 var(--serif); letter-spacing: -.047em;
}
.filters { display: flex; align-items: center; gap: .35rem; }
.filters button {
  background: transparent; border: 1px solid transparent; color: #50584c; border-radius: 2rem;
  padding: .49rem .94rem; line-height: 1.2; font-size: .86rem; font-weight: 550;
}
.filters button:hover { border-color: #c3c7b5; }
.filters button[aria-pressed="true"] { color: #faf8eb; background: var(--green); border-color: var(--green); }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.95rem, 1.75vw, 1.55rem); }
.card {
  min-width: 0; text-decoration: none; display: flex; flex-direction: column;
  border: 1px solid #c9cbbb; border-radius: .64rem; overflow: hidden; background: var(--card);
}
.card:hover, .card:focus-visible { border-color: #839078; }
.card:hover h3, .card:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.plate {
  position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden;
}
.plate::before {
  content: ""; pointer-events: none; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 28% 8%, #fff9e84d, transparent 76%); z-index: -1;
}
.plate::after {
  content: ""; pointer-events: none; position: absolute; inset: 0; opacity: .17;
  background-image: radial-gradient(#64564180 .45px, transparent .8px), radial-gradient(#fff9e9b8 .55px, transparent .9px);
  background-position: 0 0, 1.4px 2.2px; background-size: 4px 4px, 5px 6px;
}
.plate-pour { background-color: #e9c7a5; }
.plate-espresso { background-color: #cbd6bd; }
.plate-origin { background-color: #e9d5a3; }
.card .plate { aspect-ratio: 2.24; border-bottom: 1px solid #aaa58a66; }
.plate-ink { display: block; width: 96%; height: 98%; }
.card-copy { padding: 1.12rem 1.22rem 1.36rem; }
.card-meta { justify-content: space-between; gap: .55rem; }
.category { font-size: .75rem; color: #785338; letter-spacing: .105em; }
.category.espresso { color: #496047; }
.category.origin { color: #72572f; }
.read-time { gap: .3rem; font-size: .76rem; white-space: nowrap; color: #616455; }
.read-time .icon { width: .88rem; height: .88rem; }
.card h3 { margin-top: .48rem; font: 550 clamp(1.32rem, 1.9vw, 1.83rem)/1.14 var(--serif); letter-spacing: -.037em; }
.card-copy > p { margin-top: .45rem; color: var(--muted); font-size: 1rem; line-height: 1.53; }
.calculator {
  display: grid; grid-template-columns: .86fr 1.14fr; align-items: start; gap: clamp(1.4rem, 5vw, 5rem);
  margin: 2.6rem 0 3rem; padding: clamp(1.4rem, 3.2vw, 2.7rem);
  background: #e9eddf; border: 1px solid #c4cbb8; border-radius: .68rem; scroll-margin-top: 1rem;
}
.tool-heading > .icon { width: 1.6rem; height: 1.6rem; margin-bottom: .6rem; }
.calculator h2 { max-width: 20rem; }
.tool-heading p { max-width: 24rem; margin-top: .7rem; line-height: 1.55; color: #4f5b4a; }
.tool-body { min-width: 0; }
.mode {
  background: #dce3d1; width: fit-content; padding: .19rem; gap: .16rem;
  border: 1px solid #c4cdb8; border-radius: .45rem; margin: 0 0 1rem;
}
.mode button {
  font-size: .85rem; font-weight: 600; line-height: 1.3; padding: .48rem .8rem; border: 0; border-radius: .29rem;
  background: transparent; color: #485743;
}
.mode button[aria-pressed="true"] { background: #fcfaf2; color: var(--ink); box-shadow: 0 1px 2px #223a1d26; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.fields label { font-weight: 650; font-size: .9rem; display: inline-block; margin-bottom: .38rem; }
.field-box { background: var(--card); border: 1px solid #aab69c; border-radius: .36rem; min-height: 2.8rem; }
.field-box:focus-within { outline: 2px solid #61794f; outline-offset: 1px; }
.field-box input {
  color: var(--ink); min-width: 0; width: 100%; padding: .62rem .75rem; border: none;
  background: transparent; font-variant-numeric: tabular-nums;
}
.field-box input:focus { outline: none; }
.field-box > span { color: #57634f; padding-right: .7rem; white-space: nowrap; }
.field-box .prefix { padding: 0 0 0 .72rem; }
.result {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem;
  color: #f3efdd; background: #294a37; border-radius: .4rem; margin: .95rem 0 0;
  padding: .65rem .9rem; min-height: 3.18rem;
}
.result-name { gap: .5rem; font-size: .9rem; }
.result-value { font: 500 1.55rem/1.1 var(--serif); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.field-error { margin: .55rem 0 0; color: #79371f; font-size: .9rem; }
.tool-fallback { line-height: 1.6; }
.footer { border-top: 1px solid var(--rule); }
.footer-inner { min-height: 4.5rem; gap: 1rem; justify-content: space-between; font-size: .88rem; color: #596050; }
.footer a, .article-tail a, .side-link { text-underline-offset: .2em; }
.breadcrumbs { display: flex; gap: .55rem; padding-block: 1.55rem 1.15rem; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { text-underline-offset: .16em; }
.reader { max-width: 69rem; }
.reader article { scroll-margin-top: 1rem; }
.reader article + article { margin-top: 3.8rem; }
.story-head {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: stretch;
  border-top: 1px solid #99a087; border-bottom: 1px solid var(--rule); padding: 1.1rem 0;
}
.story-titles { align-self: center; padding-block: .85rem; }
.story-head h1, .story-head h2 { font: 500 clamp(2.6rem, 4.8vw, 4.45rem)/1.04 var(--serif); letter-spacing: -.05em; margin: .55rem 0 .65rem; }
.story-titles > p:last-child { color: var(--muted); max-width: 37rem; line-height: 1.6; }
.story-head .plate { border-radius: .5rem; min-height: 8rem; }
.story-head .plate-ink { position: absolute; inset: 0; margin: auto; height: 91%; width: 94%; }
.story-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(13rem,19rem); gap: clamp(2rem, 6vw, 6rem); padding-top: 1.8rem; }
.prose { max-width: 43rem; color: #364136; font-size: 1.025rem; line-height: 1.73; }
.prose :is(h2, h3) { margin: 1.45rem 0 .4rem; color: var(--ink); font: 600 1.6rem/1.2 var(--serif); letter-spacing: -.025em; }
.prose :is(h2, h3):first-child { margin-top: 0; }
.prose p + p { margin-top: .7rem; }
.prose ol { padding-left: 1.45rem; margin: .4rem 0 0; }
.prose li { padding-left: .22rem; margin-block: .45rem; }
.prose li::marker { color: #805638; font-weight: 700; }
.side-note { align-self: start; border: 1px solid #cccfba; border-radius: .55rem; background: #eeefdf; padding: 1.25rem; }
.aside-label { color: #545d43; margin-bottom: .7rem; }
.side-note dl > div { display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; justify-content: space-between; padding-block: .55rem; border-bottom: 1px solid #cfd2be; }
.side-note dt { color: var(--muted); font-size: .9rem; }
.side-note dd { font-weight: 620; font-size: .94rem; }
.side-note p:not(.aside-label) { line-height: 1.55; }
.side-link { display: inline-block; margin-top: .9rem; font-size: .9rem; font-weight: 650; }
.article-tail { border-top: 1px solid var(--rule); margin: 1.8rem 0 0; padding-top: 1rem; font-size: .95rem; font-weight: 600; }
.reader > :last-child { margin-bottom: 3.3rem; }
@media (max-width: 55rem) {
  :root { --gutter: clamp(1.05rem, 4vw, 2.7rem); }
  .hero { padding: 2rem; grid-template-columns: 1.1fr .9fr; min-height: 21rem; }
  .hero h1 { font-size: clamp(3rem, 6.25vw, 3.9rem); }
  .hero-etch { height: auto; }
  .card-copy { padding: .9rem .9rem 1.05rem; }
  .read-time { font-size: .75rem; }
  .calculator { gap: 1.8rem; }
}
@media (min-width: 43.76rem) and (max-width: 55rem) {
  .read-word { display: none; }
  .card .category { white-space: nowrap; }
}
@media (max-width: 43.75rem) {
  .hero { grid-template-columns: 1.1fr .9fr; padding: 1.7rem 1.4rem; min-height: 0; }
  .hero h1 { font-size: clamp(2.6rem, 7vw, 3.45rem); }
  .hero-figure { margin-right: -.65rem; }
  .hero-kicker { font-size: .72rem; }
  .main-nav { gap: 1rem; }
  .card-copy > p { line-height: 1.42; }
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: minmax(8rem,.64fr) 1fr; }
  .card .plate { border-bottom: 0; border-right: 1px solid #aaa58a66; aspect-ratio: auto; min-height: 8.5rem; }
  .card h3 { font-size: 1.55rem; }
  .card .plate-ink { position: absolute; }
  .calculator { grid-template-columns: 1fr; gap: 1.1rem; }
  .calculator h2, .tool-heading p { max-width: none; }
  .tool-heading > .icon { display: none; }
  .story-head { gap: 1.1rem; grid-template-columns: 1.3fr .7fr; }
  .story-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .side-note { order: -1; }
  .side-note dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}
@media (max-width: 35rem) {
  .masthead-inner { min-height: 4.05rem; gap: .6rem; flex-wrap: wrap; padding-block: .55rem; row-gap: .15rem; }
  .brand { gap: .42rem; font-size: 1.42rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .main-nav { gap: .68rem; font-size: .86rem; }
  .nav-tool { padding: .5rem .58rem; gap: .27rem; font-size: .82rem; }
  .nav-tool .nav-prefix { display: none; }
  .nav-tool .nav-name { text-transform: capitalize; }
  .main-nav .nav-text:first-child { display: none; }
  .hero { grid-template-columns: 1fr; margin-top: 1rem; padding: 1.85rem 1.5rem 1.1rem; }
  .hero h1 { font-size: clamp(3rem, 11vw, 3.8rem); margin-top: .8rem; }
  .hero-copy > p:not(.hero-kicker) { max-width: 25rem; }
  .hero-link { margin-top: 1rem; }
  .hero-figure { margin: .4rem 0 0; }
  .hero-etch { width: 100%; max-width: 19rem; height: 11.75rem; }
  .hero-figure figcaption { font-size: .81rem; }
  .journal { margin-top: 1.9rem; }
  .section-top { align-items: flex-start; flex-direction: column; gap: .65rem; margin-bottom: .85rem; }
  .filters { gap: .12rem; }
  .filters button { padding: .43rem .83rem; }
  .cards { gap: 1rem; }
  .card { grid-template-columns: 1fr; }
  .card .plate { aspect-ratio: 2.42; min-height: 0; border-right: 0; border-bottom: 1px solid #aaa58a66; }
  .card-copy { padding: 1rem 1.12rem 1.13rem; }
  .card h3 { font-size: 1.55rem; }
  .calculator { margin: 1.55rem 0 2rem; }
  .fields { gap: .65rem; }
  .story-head { grid-template-columns: 1fr; gap: .65rem; }
  .story-head .plate { min-height: 7.8rem; }
  .story-titles { padding: .2rem 0; }
  .story-grid { padding-top: 1.2rem; }
  .side-note dl { grid-template-columns: 1fr; }
}
@media (max-width: 24.4rem) {
  .main-nav { gap: .45rem; }
  .brand { font-size: 1.28rem; gap: .25rem; }
  .brand-mark { width: 1.8rem; height: 1.8rem; }
  .main-nav, .nav-tool { font-size: .8rem; }
  .nav-tool { padding-inline: .4rem; }
  .hero h1 { font-size: clamp(2.45rem, 11.9vw, 2.95rem); }
  .hero-kicker { gap: .48rem; letter-spacing: .09em; }
  .hero-kicker::before { width: 1.15rem; }
}
@media print {
  .masthead, .footer, .breadcrumbs, .filters, .hero-link, .article-tail, .side-link { display: none; }
  :root { --gutter: 0rem; }
  .story-grid { display: block; }
  .side-note { margin-top: 1rem; }
  .reader article + article { break-before: page; }
}
