/* TheoMaps, the plain pages: Support, Privacy Policy, Terms of Use and Not Found. The same parchment,
   olive and Newsreader as the landing page, set for reading: the title and contents sit on the left,
   the text on the right, the way the Questions section does. The footer tiles are the landing page's. */
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; } /* taste-skill-ignore: stands in for SF, the app face, only where SF is missing */
:root {
  color-scheme: light;
  --bg: #F3EFE5;
  --paper: #FCFAF5;
  --tone: #ECE6D8;
  --tone-2: #E2DACA;
  --line: #D8CFBC;
  --ink: #23281C;
  --muted: #5A5C4C;
  --olive: #3C462D;
  --olive-2: #2C3421;
  --olive-3: #37412A;
  --on-olive: #FCFAF5;
  --on-olive-soft: #C9CDB9;
  --brass: #9B7B3F;
  --brass-ink: #74592A;
  --road: #F8D36B;
  --focus: #2B6B7D;
  --topo: url(/assets/media/topo.svg) 0 0 / 1200px 1200px repeat;
  --serif: "Newsreader", "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --t-display: clamp(42px, 4.6vw, 72px);
  --t-head: clamp(30px, 2.7vw, 44px);
  --t-lead: clamp(19px, 1.4vw, 22px);
  --t-body: 18px;
  --t-small: 15px;
  --margin: clamp(20px, 4.4vw, 64px);
  --gutter: clamp(14px, 1.7vw, 24px);
  --r-lg: 24px;
  --r-sm: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--topo), var(--bg); color: var(--ink); font-family: var(--serif); font-size: var(--t-body); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--road); color: var(--ink); }
h1, h2 { font-weight: 400; text-wrap: balance; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }
.small { font: var(--t-small)/1.45 var(--sans); }
.muted { color: var(--muted); }
.wrap { padding-left: max(var(--margin), env(safe-area-inset-left, 0px)); padding-right: max(var(--margin), env(safe-area-inset-right, 0px)); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: var(--r-sm); background: var(--olive); color: var(--on-olive); font: 600 var(--t-small)/1 var(--sans); text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease-out), background-color 180ms ease; }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--ivory { background: var(--paper); color: var(--olive-2); }

/* the bar: the name goes home, the three plain pages sit beside it */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: max(20px, env(safe-area-inset-top, 0px)); }
.top__home { display: flex; align-items: center; gap: 12px; padding-block: 6px; text-decoration: none; }
.top__home img:first-child { width: 44px; height: 44px; }
.top__home img:last-child { width: 148px; height: auto; }
.top nav { display: flex; align-items: center; gap: 26px; font: 500 var(--t-small)/1 var(--sans); white-space: nowrap; }
.top nav a:not(.btn) { padding: 14px 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.top nav a[aria-current="page"] { text-decoration-color: var(--brass); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--olive-2); }
  .btn--ivory:hover { background: #FFFFFF; }
  .top nav a:not(.btn):hover { text-decoration-color: currentColor; }
}

/* the page: title and contents on the left, the text on the right */
.doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-block: clamp(64px, 7vw, 112px) clamp(88px, 9vw, 144px); }
.doc__side { grid-column: 1 / span 4; position: sticky; top: 40px; display: grid; gap: 20px; }
.doc__side h1 { font-size: var(--t-display); line-height: 1; letter-spacing: -0.03em; }
.doc__date { font: var(--t-small)/1.45 var(--sans); color: var(--muted); }
.toc { display: grid; gap: 2px; margin-top: 12px; font: var(--t-small)/1.4 var(--sans); }
.toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--ink); } }
.doc__main { grid-column: 6 / span 7; display: grid; gap: 56px; min-width: 0; }
.doc__main > * { max-width: 640px; }

/* the short version first, on a tile */
.short { display: grid; gap: 14px; padding: 30px 32px; border-radius: var(--r-lg); background: var(--olive); color: var(--on-olive); }
.short h2 { font-size: 26px; line-height: 1.15; }
.short ul { display: grid; gap: 10px; padding-left: 1.1em; color: var(--on-olive-soft); }
.short li::marker { color: #D2B06C; }
.short b { color: var(--on-olive); font-weight: 600; }

.prose { display: grid; gap: 18px; max-width: 64ch; }
.prose h2 { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.15; scroll-margin-top: 32px; }
.prose h3 { margin-top: 10px; font: 600 var(--t-body)/1.35 var(--sans); letter-spacing: -0.01em; }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 1.2em; }
.prose li::marker { color: var(--brass); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose b { font-weight: 600; }
.path { font: 500 0.92em/1.5 var(--sans); }
section.prose + section.prose { padding-top: 56px; border-top: 1px solid var(--line); }

/* support: the address, big enough to tap */
.mail { display: grid; gap: 18px; padding: 30px 32px; border-radius: var(--r-lg); background: var(--olive); color: var(--on-olive); }
.mail p { color: var(--on-olive-soft); max-width: 46ch; }
.mail__addr { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; color: var(--on-olive); overflow-wrap: anywhere; }
.mail .btn { justify-self: start; }

.mail p:first-child { font: 600 var(--t-small)/1.4 var(--sans); color: #D2B06C; }
.soon { padding: 18px 22px; border-radius: 16px; background: var(--tone); font: var(--t-small)/1.5 var(--sans); }
.soon a { color: var(--olive); font-weight: 600; text-underline-offset: .2em; }

/* privacy at a glance: a table on wide screens, stacked cards on a phone */
.glance { overflow-x: auto; }
.glance table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font: var(--t-small)/1.45 var(--sans); }
.glance thead th { padding: 0 16px 4px; text-align: left; font-weight: 600; color: var(--muted); }
.glance tbody th, .glance td { padding: 16px; vertical-align: top; text-align: left; background: var(--tone); }
.glance tbody th { width: 40%; font-weight: 600; border-radius: 14px 0 0 14px; }
.glance td:last-child { border-radius: 0 14px 14px 0; }

/* not found */
.lost { display: grid; justify-items: start; gap: 22px; padding-block: clamp(96px, 12vw, 180px); max-width: 40ch; }
.lost h1 { font-size: var(--t-display); line-height: 1; letter-spacing: -0.03em; }

/* footer: the landing page's tiles */
.foot { padding-top: 10px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.ft { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 220px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--tone); font: var(--t-small)/1.45 var(--sans); }
.ft--a { grid-column: span 4; }
.ft--a .lead { font: var(--t-lead)/1.45 var(--serif); }
.ft--b { grid-column: span 3; }
.ft--c { grid-column: span 2; }
.ft--d { grid-column: span 3; }
.ft ul { display: grid; gap: 6px; padding: 0; list-style: none; }
.ft a { text-decoration: none; }
.ft .ft__mail { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.ft a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .25em; }
@media (hover: hover) and (pointer: fine) { .ft a:hover { text-decoration: underline; text-underline-offset: .25em; } }
.ft--name { grid-column: span 8; min-height: 300px; flex-direction: row; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 28px); background: var(--olive-2); }
.ft--name img:first-child { width: clamp(64px, 7vw, 108px); height: auto; }
.ft--name img:last-child { width: min(62%, 560px); height: auto; }
.ft--go { grid-column: span 4; min-height: 300px; background: var(--olive); color: var(--on-olive); text-decoration: none; transition: background-color 180ms ease; }
.ft--go b { font-family: var(--serif); font-weight: 400; font-size: var(--t-head); line-height: 1.04; letter-spacing: -0.02em; }
.ft--go svg { align-self: flex-end; width: 56px; height: 56px; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ft--go:hover { background: var(--olive-3); } .ft--go:hover svg { transform: translate(4px, -4px); } }
.foot__fine { display: flex; flex-wrap: wrap; gap: 6px 40px; padding: 22px 4px 10px; }
.foot__fine p { max-width: 68ch; }

@media (max-height: 760px) { .doc__side { position: static; } }
@media (max-width: 959.98px) {
  .doc { display: block; }
  .doc__side { position: static; margin-bottom: 48px; }
  .toc { display: none; }
  .ft--a, .ft--b, .ft--c, .ft--d { grid-column: span 6; }
  .ft--name, .ft--go { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .top nav { gap: 18px; }
  .top nav .btn { display: none; }
  .top__home img:last-child { display: none; }
  .short, .mail { padding: 24px 22px; }
  .glance thead { display: none; }
  .glance table, .glance tbody, .glance tr, .glance tbody th, .glance td { display: block; width: auto; }
  .glance tr { margin-bottom: 8px; padding: 6px 0; border-radius: 16px; background: var(--tone); }
  .glance tbody th, .glance td { padding: 8px 18px; background: none; border-radius: 0; }
  .glance td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
  .ft { min-height: 160px; padding: 20px; }
  .ft--a, .ft--b, .ft--c, .ft--d { grid-column: 1 / -1; }
  .ft--name { min-height: 160px; }
  .ft--go { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .ft--go, .ft--go svg, .top nav a { transition: none; }
}
