/* Feed Your Organs — shared styles (landing, thanks, legal pages).
   Palette and display fonts follow the book itself. */

@font-face { font-family: "Coiny"; src: url("fonts/Coiny-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/InterTight-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --cream: #FFF8F2;
  --soft: #FBF1E6;
  --card: #FFFFFF;
  --ink: #2A1F1A;
  --mid: #6B4E3F;
  --rose: #D97070;
  --rose-deep: #B9474A;   /* buttons: white text stays readable */
  --pink: #F3D3CE;
  --green: #4F8A52;
  --gold: #C7A450;
  --rule: #E8D9C4;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42, 31, 26, .06), 0 10px 30px rgba(42, 31, 26, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); }
h1, h2, h3 { margin: 0; font-weight: normal; }
p { margin: 0 0 12px; }

.in { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.display { font-family: "Coiny", "Lilita One", system-ui, sans-serif; color: var(--rose); line-height: 1.02; }
.label { font-family: "Lilita One", system-ui, sans-serif; letter-spacing: .4px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 242, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.top .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: "Lilita One", sans-serif; font-size: 18px; letter-spacing: .3px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.top nav { display: flex; gap: 16px; font-size: 15px; }
.top nav a { color: var(--mid); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); text-decoration: underline; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--rose-deep); color: #fff; text-decoration: none; cursor: pointer;
  font: 20px/1 "Lilita One", sans-serif; letter-spacing: .4px;
  box-shadow: 0 6px 18px rgba(185, 71, 74, .28);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: #A63E41; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(185, 71, 74, .32); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 16px; box-shadow: none; }

/* footer */
footer { border-top: 1px solid var(--rule); margin-top: 56px; padding: 28px 0 40px; color: var(--mid); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
footer a { color: var(--mid); }
footer .fine { font-size: 13px; max-width: 760px; }

/* legal pages */
.legal main { max-width: 760px; margin: 0 auto; padding: 36px 16px 0; }
.legal h1 { font-family: "Lilita One", sans-serif; font-size: 34px; color: var(--ink); margin-bottom: 4px; }
.legal h2 { font-family: "Lilita One", sans-serif; font-size: 21px; color: var(--rose-deep); margin: 28px 0 8px; }
.legal .updated { color: var(--mid); font-size: 14px; margin-bottom: 22px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .lead { font-size: 19px; }
