/* The Privacy, Terms and Support pages for Good Dog Days. Orange hill, recipe 2 (a plain
   page): paper, ink words, the darker orange for links, no hill. Colours are
   the app's roles (Documentation/BRAND.md in the app's repository). System
   fonts only, so the pages ask no other server for anything. */
:root {
  --paper: #FEFAF9;
  --surface: #FFFFFF;
  --ink: #1E1409;
  --ink-soft: #6F6253;
  --brand: #C2470D;
  --orange: #F47B41;
  --stand: #EFE6DF;
  --rounded: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;
  --plain: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17110A;
    --surface: #241A12;
    --ink: #FBF3EC;
    --ink-soft: #C9B9AB;
    --brand: #F79460;
    --stand: #33271D;
  }
}
@media (prefers-contrast: more) {
  :root { --ink: #000000; --ink-soft: #54483B; --brand: #8F3206; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --ink: #FFFFFF; --ink-soft: #DDD0C4; --brand: #FFB58C; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--plain);
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 12px; }

.top, main, .foot { max-width: 44rem; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 20px; padding-bottom: 12px;
}
.mark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none; font: 800 1.375rem/1 var(--rounded);
}
.mark img { border-radius: 8px; }
nav { display: flex; gap: 4px; }
nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 999px; color: var(--ink); text-decoration: none; font: 700 1rem/1 var(--rounded);
}
nav a:hover { background: var(--stand); }
nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

main { padding-top: 24px; padding-bottom: 48px; }
h1 { font: 800 clamp(2rem, 6vw, 2.75rem)/1.1 var(--rounded); margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font: 800 1.375rem/1.25 var(--rounded); margin: 40px 0 8px; }
h3 { font: 700 1.0625rem/1.35 var(--rounded); margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 6px; }
.date { color: var(--ink-soft); margin-bottom: 24px; }
.path { white-space: nowrap; font-weight: 600; }

a { color: var(--brand); text-underline-offset: 0.15em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* The one thing to take away, on a flat card (Surface, 24 pt corners, a 2 pt ledge). */
.short {
  background: var(--surface); border-radius: 24px; padding: 16px 20px;
  box-shadow: 0 2px 0 var(--stand); margin: 0 0 8px;
}
.short p:last-child { margin-bottom: 0; }
.short strong { font-family: var(--rounded); font-weight: 800; }

/* The main button: ink, a capsule, one per page. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 800 1.0625rem/1 var(--rounded);
}

.foot {
  padding-top: 24px; padding-bottom: 40px; border-top: 2px solid var(--stand);
  color: var(--ink-soft); font-size: 0.9375rem;
}
.foot img { display: block; margin: 0 0 8px -8px; }
.foot p { margin: 0 0 4px; }
.foot a { color: var(--ink-soft); }

/* Draft builds only (python3 Site/build.py --draft). */
.draft { background: #FFE9A8; color: #1E1409; padding: 10px 14px; border-radius: 12px; font-weight: 600; }
mark.gap { background: #FFE9A8; color: #1E1409; padding: 0 4px; border-radius: 4px; }

@media print {
  .top nav, .foot img, .skip { display: none; }
  body { background: #fff; color: #000; }
}

/* "On this page": a plain list of links, not the pill nav at the top. */
nav.contents { margin: 24px 0 0; padding: 12px 0; border-top: 2px solid var(--stand); border-bottom: 2px solid var(--stand); }
nav.contents ol { columns: 2 16rem; column-gap: 24px; margin: 0; }
nav.contents li { break-inside: avoid; }
nav.contents a { display: inline; min-height: 0; padding: 0; border-radius: 0; background: none; color: var(--brand); font: inherit; text-decoration: underline; }
nav.contents a:hover { background: none; }
h2[id] { scroll-margin-top: 16px; }
