:root {
  --parchment: #f5efe2;
  --paper: #faf6ec;
  --ink: #2b2118;
  --amber: #a8652a;
  --amber-deep: #8a4f1c;
  --green: #3f5a4a;
  --green-deep: #2f4638;
  --sage: #5d7a64;
  --line: #e0d4bb;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--parchment); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 0; }
a { color: var(--amber-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6rem; }
h2 { font-size: clamp(2rem, 5vw, 2.9rem); color: var(--green); }
h3 { font-size: 1.5rem; color: var(--green); }
p { margin: 0 0 1rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: .7rem 1.25rem; background: color-mix(in srgb, var(--parchment) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.wordmark { font: 600 1.6rem var(--serif); text-decoration: none; color: var(--ink); }
.wordmark span { color: var(--amber); }
.site-header nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.site-header nav a { text-decoration: none; color: var(--ink); font-size: .95rem; padding: .2rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-color: var(--amber); }

/* layout */
section { padding: 4.5rem 1.25rem; }
.narrow, .wide { margin-inline: auto; }
.narrow { max-width: 44rem; }
.wide { max-width: 68rem; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.band > .narrow, .band > .wide { padding: 0; }
.band.green { background: var(--green); color: #f1ecdf; border: 0; }
.band.green h2, .band.green h3 { color: #fff; }
.center { text-align: center; }
.lede { font-family: var(--serif); font-size: 1.45rem; color: var(--amber-deep); line-height: 1.3; }
.green .lede { color: #e8c89b; }
.pull { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--amber-deep); }
.pull.light { color: #e8c89b; }
.narrow-p { max-width: 44rem; }
.coda { font-family: var(--serif); font-size: 1.4rem; text-align: center; margin-top: 2rem; }
.small, .footnote { font-size: .9rem; opacity: .85; }
.footnote { border-left: 3px solid var(--amber); padding-left: 1rem; margin: 1.5rem 0 2.5rem; }
.big { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.3; }
.stack { font-family: var(--serif); font-size: 1.35rem; line-height: 1.8; }

/* hero */
.hero { text-align: center; padding-top: 4rem; }
.hero h1 { font-size: clamp(3rem, 11vw, 6rem); letter-spacing: .01em; margin-bottom: .2rem; }
.hero h1 span { color: var(--amber); }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--amber-deep); }
.rule { width: min(32rem, 80%); border: 0; border-top: 2px solid var(--amber); margin: 1.5rem auto; }
.blessing { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.6rem); max-width: 40rem; margin-inline: auto; }
.glass { width: 110px; margin: 0 auto 1rem; }
.glass svg { width: 100%; height: auto; overflow: visible; }
.glass .beer { fill: #d98e2b; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.glass .foam { fill: #fffaf0; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.glass .shine { stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: .45; fill: none; }
.glass .bubble { fill: #fff; opacity: .7; animation: rise 4s ease-in infinite; }
.glass .b2 { animation-delay: 1.3s; } .glass .b3 { animation-delay: 2.4s; }
@keyframes rise { 0% { transform: translateY(20px); opacity: 0; } 30% { opacity: .8; } 100% { transform: translateY(-50px); opacity: 0; } }

/* truths */
.truths { list-style: none; counter-reset: t; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.truths li { counter-increment: t; font-family: var(--serif); font-size: 1.6rem; padding-left: 3.2rem; position: relative; }
.truths li::before { content: counter(t); position: absolute; left: 0; top: .1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--amber); color: #fff; font: 600 1.1rem/2.3rem var(--sans); text-align: center; }

/* eightfold */
.group { margin: 2.5rem 0 1rem; color: var(--amber-deep); text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; font-family: var(--sans); font-weight: 600; }
.folds { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.fold { position: relative; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: 6px; padding: 1.4rem 1.3rem 1.1rem; }
.fold .num { position: absolute; top: -1.1rem; right: 1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--green); color: #fff; font: 600 1.1rem/2.2rem var(--sans); text-align: center; }
.fold h4 { font-size: 1.35rem; color: var(--ink); margin-bottom: .1rem; }
.fold h4 em { display: block; font-size: .95rem; font-weight: 500; color: var(--sage); }
.fold .title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--green); margin: .5rem 0; }
.quip { color: var(--amber-deep); font-style: italic; }
.fold .quip { border-top: 1px dashed var(--line); padding-top: .7rem; margin: .8rem 0 0; }

/* tables */
.glance { width: 100%; border-collapse: collapse; margin: 2.5rem 0; background: var(--paper); border: 1px solid var(--line); }
.glance caption { text-align: left; font: 600 1.3rem var(--serif); color: var(--amber-deep); padding-bottom: .6rem; text-transform: uppercase; letter-spacing: .05em; }
.glance th, .glance td { padding: .7rem 1rem; text-align: left; vertical-align: top; }
.glance thead th { background: var(--amber-deep); color: #fff; }
.glance tbody tr:nth-child(even) { background: #f1e9d6; }
.glance tbody th { font-weight: 600; width: 34%; }
.precepts thead th { background: var(--green-deep); }

.verse { text-align: center; margin-top: 3rem; }
.verse p { font-family: var(--serif); font-size: 1.4rem; color: var(--amber-deep); font-style: italic; }
.verse .coda { color: var(--ink); font-style: normal; }

/* ingredients */
.ingredients { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 2rem 0; }
.ing { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 1.2rem; }
.ing.hl { background: #f1ecdf; color: var(--ink); }
.ing.hl h3 { color: var(--green); }
.ing h3 { margin-bottom: .1rem; }
.q { font-weight: 600; color: #e8c89b; margin-bottom: .6rem; }
.ing.hl .q, .jewel .q { color: var(--amber-deep); }
.green .small { color: #d9d2bf; }
.green .coda { color: #fff; }

/* jewels */
.jewels { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; margin: 2rem 0 0; }
.jewel { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem; text-align: center; }
.jewel h3 { color: var(--ink); }
.jewel .q { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin-bottom: .3rem; }

/* sins */
.sins { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; }
.sins li { counter-increment: s; border-left: 3px solid var(--amber); padding-left: 1.1rem; }
.sins h3::before { content: counter(s, upper-roman) ". "; color: var(--amber); }
.sins h3 { margin-bottom: .2rem; }
.sins p { margin: 0; }

/* happy button */
.happy { margin: 2.5rem 0 3rem; }
.happy-btn { font: 600 1.25rem var(--sans); color: #fff; background: var(--amber); border: 0; border-radius: 999px; padding: .9rem 2rem; cursor: pointer; box-shadow: 0 3px 0 var(--amber-deep); transition: transform .12s; }
.happy-btn:hover { background: var(--amber-deep); }
.happy-btn:active { transform: translateY(3px); box-shadow: none; }
.happy-msg { margin-top: 1rem; font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--green); min-height: 2.2em; }
.happy-msg.pop { animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.94); opacity: 0; } 100% { transform: none; opacity: 1; } }

.site-footer { background: var(--green-deep); color: #f1ecdf; text-align: center; padding: 3rem 1.25rem; }
.site-footer .small { color: #cfc8b4; margin: 0; }

@media (max-width: 640px) {
  section { padding: 3rem 1.25rem; }
  .glance th, .glance td { padding: .6rem .7rem; font-size: .95rem; }
  .glance tbody th { width: 40%; }
}
