/* yuzh.app — the house look, on the web.
 *
 * The palette IS the app's Q · Yuzh theme, lifted from
 * YuzhKit/Sources/YuzhKit/Theme/Themes/YuzhHouse.swift. Two rules travel with
 * it and must not be quietly broken:
 *
 *   1. --tongue (#e05e3d) is a GRAPHIC colour, never a type colour. It is
 *      3.2:1 on cream. It fills buttons, arcs and marks; it never carries a
 *      word. Terracotta lettering uses --crease (#b23e28), which clears 5.2:1
 *      both ways.
 *   2. --sage is the logo's sage deepened one step, because the logo's own
 *      #71816e carries cream at only 3.7:1 — fine for a wordmark, a fail for
 *      an 11px line. The exact logo sage lives on as --sage-light.
 *
 * Fonts are SELF-HOSTED on purpose. The privacy policy on this same site
 * enumerates our sub-processors; loading a font from a CDN would add one that
 * the document does not name, and hand every visitor's IP to it.
 */

@font-face {
  font-family: "Faustina";
  src: url("/fonts/Faustina-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --sage: #5b6b58;
  --sage-light: #71816e;
  --sage-deep: #414e3f;
  --cream: #f9f0e3;
  --ink: #232c24;
  --ink-muted: #232c24b3;
  --tongue: #e05e3d;   /* fills only — see the header */
  --crease: #b23e28;   /* terracotta that may carry words */

  /* Cream on this sage is 5.04:1 — the ONLY combination on the room that
     passes anything, which means fading it is what breaks it. 0.92 is the
     measured floor (4.55:1); 0.90 is already 4.45:1 and fails. Hierarchy on
     the room therefore comes from SIZE, WEIGHT and TRACKING, never from
     opacity. Anything quieter than this token is decoration, not words. */
  --cream-quiet: rgba(249, 240, 227, 0.92);

  --serif: "Faustina", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --page: min(1080px, 100% - 40px);
  --prose: min(660px, 100% - 40px);
  --radius: 22px;
  --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--sage);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-quiet);
}

a { color: inherit; }

/* ---------- layout ---------- */

.wrap { width: var(--page); margin-inline: auto; }
.prose { width: var(--prose); margin-inline: auto; }

/* ---------- the plate: a cream card on the sage room ---------- */

.plate {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

/* The tongue fills the button; the WORD on it is cream, not terracotta. */
.btn--primary { background: var(--crease); color: var(--cream); }
.btn--quiet {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(249, 240, 227, 0.66);
}
.btn--quiet:hover { border-color: var(--cream); }

/* ---------- footer, shared by all three pages ---------- */

.site-foot {
  border-top: 1px solid rgba(249, 240, 227, 0.18);
  margin-top: 72px;
  padding: 34px 0 56px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--cream-quiet);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: baseline;
  justify-content: space-between;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-foot a { text-decoration: none; border-bottom: 1px solid rgba(249, 240, 227, 0.35); padding-bottom: 1px; }
.site-foot a:hover { color: var(--cream); border-bottom-color: var(--cream); }

/* ---------- document pages (privacy, terms) ---------- */

.doc { padding: 56px 0 0; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.01em; }
.doc .updated { margin-top: 8px; }
.doc .lede {
  margin-top: 22px;
  font-size: 18px;
  color: var(--cream-quiet);
}
.doc h2 {
  font-size: 21px;
  margin: 44px 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(249, 240, 227, 0.22);
}
.doc h3 { font-size: 17px; margin: 26px 0 6px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }
.doc p, .doc li { font-size: 15.5px; color: var(--cream-quiet); }
.doc p { margin-bottom: 13px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 13px; }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--cream); font-weight: 600; }
.doc a { text-decoration: underline; text-underline-offset: 2px; }

/* A cream plate holding a callout inside a document. */
.doc .note {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 22px 0;
}
/* The note is a CREAM PLATE inside a sage document, so every ink that the
   document set for the room has to be re-set for the plate. `.doc strong` is
   cream — on this card that is cream on cream, invisible rather than merely
   quiet. Same trap the app records against `.themedCard`. */
.doc .note p, .doc .note li, .doc .note strong { color: var(--ink); }
.doc .note p:last-child { margin-bottom: 0; }
.doc .note a { color: var(--crease); }

.doc-nav {
  padding-top: 30px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.doc-nav a { text-decoration: none; opacity: 0.75; }
.doc-nav a:hover { opacity: 1; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .doc { padding-top: 36px; }
}


/* Standalone navigation links are 19-23px of text. On a touch screen that is
   under the 44px target; on a mouse it is correct and padding it would just
   loosen the footer. Gate on the pointer, not the width. */
@media (pointer: coarse) {
  .site-foot nav a,
  .doc-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .site-foot .wrap { row-gap: 0; }
}
