/* gwion.app -- the public pages (landing, privacy, terms). The app at /app has its own styles.
   Fonts are served from this site, not from Google, so loading these pages sends a
   visitor's address to nobody but us. */
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url("/fonts/literata-400.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 500; font-display: swap; src: url("/fonts/literata-500.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url("/fonts/literata-600.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("/fonts/instrument-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("/fonts/instrument-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("/fonts/instrument-sans-600.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url("/fonts/dm-mono-400.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url("/fonts/dm-mono-500.woff2") format("woff2"); }

:root {
  --ink: #17151f;          /* the icon's ground; text on light */
  --ink-soft: #2a2633;
  --paper: #f6f1e7;        /* page */
  --paper-2: #efe8da;      /* bands */
  --rule: #ddd3c0;
  --muted: #6b6475;
  --gold: #9c7a32;         /* gold that holds contrast on paper */
  --gold-bright: #d6b25e;  /* gold on ink */
  --serif: "Literata", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--serif); }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
/* The wordmark is mostly lowercase with the drops above, so its letters read much smaller
   than its box: at 34px the x-height was about 13px, smaller than the nav text beside it.
   58px gives the letters real presence beside the nav (its box carries ~10% margin
   around the ink); 44px on phones. */
.bar .mark { display: block; }
.bar .mark img, .bar .mark svg { height: 58px; width: auto; display: block; }
.bar nav { display: flex; align-items: center; gap: 22px; font: 500 14px var(--sans); }
.bar nav a { color: var(--ink); text-decoration: none; }
.bar nav a:hover { color: var(--gold); }
.btn { display: inline-block; font: 600 15px var(--sans); text-decoration: none; border-radius: 9px;
  padding: 11px 20px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-gold { background: var(--ink); color: var(--paper); }
.btn-gold:hover { background: var(--ink-soft); color: #fff; }
.bar .btn { padding: 8px 15px; font-size: 14px; }

/* legal pages */
.legal { padding: 30px 0 80px; }
.legal article { max-width: 720px; }
.legal h1 { font: 600 40px/1.15 var(--serif); margin: 10px 0 6px; letter-spacing: -0.01em; }
.legal .updated { font: 400 14px var(--sans); color: var(--muted); margin: 0 0 34px; }
.legal h2 { font: 600 23px/1.3 var(--serif); margin: 46px 0 10px; }
.legal h3 { font: 600 18px/1.4 var(--serif); margin: 26px 0 6px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal .lede { font-size: 19px; color: var(--ink-soft); }
.legal table { width: 100%; border-collapse: collapse; font: 400 14.5px/1.5 var(--sans); margin: 12px 0 8px; }
.legal th { text-align: left; font-weight: 600; border-bottom: 1.5px solid var(--ink); padding: 8px 10px 8px 0; vertical-align: bottom; }
.legal td { border-bottom: 1px solid var(--rule); padding: 9px 10px 9px 0; vertical-align: top; }
.legal .table-scroll { overflow-x: auto; }
.legal .note { font: 400 15px/1.6 var(--sans); background: var(--paper-2); border-left: 3px solid var(--gold);
  padding: 12px 16px; margin: 18px 0; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; font: 400 14px/1.6 var(--sans); color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar nav .hide-sm { display: none; }
  .bar .mark img, .bar .mark svg { height: 44px; }
  .legal h1 { font-size: 32px; }
}