/*
 * Shared by every page: colours, type, the nav, buttons, store badges, the
 * footer, and the text pages (privacy, terms, support, the lantern). The home
 * page adds home.css on top.
 */
@import url("assets/fonts.css");

:root {
  --green: #0c2b21;
  --green-soft: #143b2e;
  --green-deep: #071a14;
  --green-ink: #0a231b;
  --green-bright: #2ea66b;
  --cream: #f6f1e6;
  --cream-dim: #e9e1cf;
  --paper: #fffdf8;
  --gold: #c9a24b;
  --gold-bright: #e3c983;
  --ink: #17221c;
  --muted: #56655c;
  --line: #e3dbc9;
  --line-dark: rgba(227, 201, 131, .18);
  --radius: 20px;
  --maxw: 760px;
  --maxw-wide: 1160px;
  --serif: "Amiri", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 24px; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 230, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(12, 43, 33, .08);
}
.site-nav .wrap-wide {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand span { font-family: var(--serif); font-size: 23px; letter-spacing: .2px; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-links .nav-cta {
  color: var(--green); background: var(--gold); border-radius: 999px;
  padding: 8px 18px; font-weight: 700;
  transition: background .2s, transform .2s var(--ease);
}
.nav-links .nav-cta:hover { background: var(--gold-bright); color: var(--green); transform: translateY(-1px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; font: 700 15px/1.2 var(--sans);
  border: 0; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 10px 30px rgba(201, 162, 75, .35); }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--green-soft); box-shadow: 0 12px 30px rgba(12, 43, 33, .3); }

/* Store badges. The two images are both trimmed to the badge's own edge, so
   one height makes them the same size. */
.store-badges {
  display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap;
  margin: 28px 0 0;
}
.store-badges a { display: block; line-height: 0; transition: transform .2s var(--ease); }
.store-badges a:hover { transform: translateY(-2px); text-decoration: none; }
.store-badges img { height: 52px; width: auto; display: block; }
.store-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Text pages */
.doc { padding: 56px 0 84px; }
.doc h1 { font-family: var(--serif); font-size: clamp(34px, 6vw, 48px); line-height: 1.15; color: var(--green); margin: 0 0 6px; font-weight: 700; }
.doc .eff { color: var(--muted); font-size: 15px; margin: 0 0 36px; }
.doc h2 { font-size: 21px; color: var(--green); margin: 40px 0 10px; }
.doc h3 { font-size: 17px; color: var(--ink); margin: 26px 0 6px; }
.doc p, .doc li { color: #33403a; }
.doc ul { padding-left: 22px; }
.doc li { margin: 7px 0; }
.callout {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 18px 22px; margin: 24px 0;
}
.callout strong { color: var(--green); }
.tldr {
  background: var(--green); color: var(--cream); border-radius: var(--radius);
  padding: 24px 26px; margin: 8px 0 36px;
}
.tldr h2 { color: var(--gold-bright); margin: 0 0 8px; font-size: 18px; }
.tldr p { color: var(--cream-dim); margin: 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; background: var(--cream); }
.site-foot .wrap-wide { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.site-foot .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--green); }
.site-foot .store-badges { margin: 0; }
.site-foot .store-badges img { height: 38px; }

@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
}

@media (max-width: 940px) {
  .nav-only-wide { display: none; }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 520px) {
  .wrap, .wrap-wide { padding: 0 16px; }
  .brand span { font-size: 21px; }
  .store-badges img { height: 46px; }
  .site-foot .wrap-wide { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
