/* The dictionary and the guides: almanac paper, readable first. No JavaScript needed except the
   dictionary's little search. Fonts and colours match app.css. */
@font-face { font-family: Almanac; src: url(/fonts/almanac.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Almanac; font-style: italic; src: url(/fonts/almanac-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Almanac; font-weight: 700; src: url(/fonts/almanac-bold.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Gothic; font-weight: 600; src: url(/fonts/gothic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Text; font-weight: 400; src: url(/fonts/text-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Text; font-weight: 600; src: url(/fonts/text-600.woff2) format("woff2"); font-display: swap; }
:root {
  --paper: #efe6d2; --paper-2: #e6dbc2; --ink: #2a2018; --muted: #6a5b4a; --line: #d3c6aa;
  --seal: #9e1f1a; --rim: #2f4f8f; --candle: #f2a541; --wall: #14161c;
  --almanac: Almanac, "Old Standard TT", Georgia, serif; --text: Text, "Fira Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { background-image: radial-gradient(rgba(120, 90, 50, .05) 1px, transparent 1.3px), radial-gradient(rgba(120, 90, 50, .04) 1px, transparent 1.3px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; }
a { color: var(--rim); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 4px; }
.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 920px; margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-left)) 4px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 400 22px/1 var(--almanac); color: var(--ink); text-decoration: none; }
.brand i { width: 12px; height: 16px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 70%, #ffd58a, var(--candle) 60%, #c06a10); box-shadow: 0 0 10px rgba(242, 165, 65, .7); }
.top nav { display: flex; gap: 16px; flex-wrap: wrap; order: 3; width: 100%; margin-top: -6px; }
.top nav a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
.top .cta.small { margin-left: auto; order: 2; min-height: 44px; padding: 10px 18px; font-size: 15px; }
@media (min-width: 760px) { .top nav { order: 0; width: auto; margin: 0 0 0 12px; } }
.center-cta { margin-top: 18px; }
main { max-width: 760px; margin: 0 auto; padding: 12px max(18px, env(safe-area-inset-left)) 40px; }
h1, h2, h3 { font-family: var(--almanac); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 4vw + 22px, 54px); margin: 8px 0 14px; }
h2 { font-size: clamp(24px, 1.5vw + 19px, 32px); margin: 36px 0 12px; }
p, ul, ol { margin: 0 0 14px; }
p, li { text-wrap: pretty; }
.lede { font-size: clamp(18px, .5vw + 16px, 21px); color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.crumbs a { color: var(--muted); }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; border-radius: 999px; background: var(--wall); color: #ffd58a;
  font-weight: 600; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(20, 22, 28, .8); }
.cta:active { transform: scale(.98); }
.answer { font-size: 19px; margin: 0 0 4px; }
.meaning { font: italic 400 clamp(22px, 1vw + 19px, 28px)/1.35 var(--almanac); color: var(--seal); margin: 0 0 18px; }
.also { color: var(--muted); font-size: 15px; }
.shadow-box { float: right; width: min(42%, 240px); aspect-ratio: 1; margin: 4px 0 12px 20px; border-radius: 18px; color: rgba(20, 16, 12, .86);
  background: radial-gradient(circle at 22% 78%, rgba(255, 213, 138, .9), rgba(242, 165, 65, .35) 32%, rgba(80, 60, 40, .25) 70%), #c9b898; display: grid; place-items: center;
  box-shadow: inset 0 0 40px rgba(60, 40, 20, .35); }
.shadow-box svg { width: 78%; height: 78%; filter: blur(.6px); transform: skewX(-4deg); }
@media (max-width: 520px) { .shadow-box { float: none; width: 62%; margin: 6px auto 16px; } }
.pour-cta { clear: both; margin: 34px 0; padding: 22px 22px 24px; border-radius: 18px; background: var(--wall); color: #efe6d2; }
.pour-cta h2 { margin: 0 0 6px; color: #ffd58a; }
.pour-cta p { color: #c9c1b0; }
.pour-cta .cta { background: var(--candle); color: #2a1b0b; }
.figs { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.figs a { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 64px; padding: 10px; border-radius: 14px;
  background: rgba(255, 252, 244, .55); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.figs svg { grid-row: 1 / 3; width: 44px; height: 44px; color: #3b2f24; }
.figs b { font: 700 17px/1.15 var(--almanac); }
.figs span { font-size: 13px; line-height: 1.3; color: var(--muted); }
.figs.small a { min-height: 56px; }
.figs.small b { grid-row: 1 / 3; }
.finder { margin: 26px 0 8px; }
.finder label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.finder input { width: 100%; font: inherit; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line); background: #fbf7ee; color: var(--ink); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cats button { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fbf7ee; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.cats button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.letters { display: flex; flex-wrap: wrap; gap: 2px 10px; font: 400 20px var(--almanac); }
.letters a { min-width: 28px; min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; }
h2.letter { font-family: Gothic, var(--almanac); font-weight: 600; color: var(--seal); margin-top: 26px; }
.prevnext { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.prevnext a { min-height: 44px; display: inline-flex; align-items: center; }
.foot { max-width: 760px; margin: 0 auto; padding: 24px max(18px, env(safe-area-inset-left)) max(30px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot h2 { font: 600 13px var(--text); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; color: var(--muted); }
.foot ul { padding: 0; list-style: none; margin: 0 0 16px; }
.foot li { padding: 3px 0; }
.foot .legal a { display: inline-block; padding: 8px 0; }
.prose ul li + li, ol li + li { margin-top: 6px; }
table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
