/* Shared by privacy.html, terms.html and support.html; index.html carries its own. */
:root {
  --paper: #efe4d8;
  --paper-raised: #f7efe6;
  --ink: #2e211a;
  --ink-soft: #6b5548;
  --ink-faint: #8f7a6c;
  --clay: #c9622f;
  --hairline: oklch(0 0 0 / 0.1);
}
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark;
    --paper: #1d1714;
    --paper-raised: #28201b;
    --ink: #f3e9df;
    --ink-soft: #c7b6a8;
    --ink-faint: #9b8a7d;
    --clay: #e07a45;
    --hairline: oklch(1 0 0 / 0.1);
  }
/* No JavaScript: follow the system setting. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark;
    --paper: #1d1714;
    --paper-raised: #28201b;
    --ink: #f3e9df;
    --ink-soft: #c7b6a8;
    --ink-faint: #9b8a7d;
    --clay: #e07a45;
    --hairline: oklch(1 0 0 / 0.1);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
h1, h2, h3, .brand { font-family: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--clay); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--paper-raised); padding: 0.1em 0.35em; border-radius: 6px; box-shadow: 0 0 0 1px var(--hairline); }

header { padding: 20px 0; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1040px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: none; font-weight: 500; transition-property: color; transition-duration: 150ms; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

main { padding: 24px 0 64px; }
h1 { font-size: clamp(34px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.updated { color: var(--ink-faint); font-size: 15px; margin: 0 0 28px; }
.lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 28px; }
h2 { font-size: 23px; line-height: 1.25; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
ul { padding-left: 1.2em; }
li + li { margin-top: 6px; }

.summary {
  background: var(--paper-raised); border-radius: 18px; padding: 18px 22px;
  box-shadow: 0 0 0 1px var(--hairline);
}
.summary strong { display: block; margin-bottom: 6px; }
.summary ul { margin: 0; }

.contact {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--paper-raised); border-radius: 18px; padding: 18px 22px; margin-bottom: 8px;
  box-shadow: 0 0 0 1px var(--hairline);
}
.contact p { margin: 0; flex: 1 1 260px; color: var(--ink-soft); }
.contact a.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px;
  background: var(--clay); color: #fff8f2; font-weight: 600; text-decoration: none;
  transition-property: scale; transition-duration: 150ms; transition-timing-function: ease-out;
}
.contact a.button:active { scale: 0.96; }

footer { padding: 32px 0 48px; border-top: 1px solid var(--hairline); color: var(--ink-faint); font-size: 14px; }
footer p { margin: 0; }
footer p + p { margin-top: 8px; }
footer a { color: var(--ink-soft); }

@media (max-width: 480px) { .wrap { padding: 0 16px; } .lead { font-size: 18px; } }

/* Theme switch: Auto (by the clock), Light, Dark. One icon shows at a time;
   they cross-fade with scale and blur. Hidden without JavaScript. */
.theme-toggle {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink-soft); cursor: pointer;
  transition-property: color, background-color, scale; transition-duration: 150ms; transition-timing-function: ease-out;
}
.theme-toggle:hover { color: var(--ink); background: var(--hairline); }
.theme-toggle:active { scale: 0.96; }
.theme-toggle:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.theme-toggle .ti {
  position: absolute; width: 20px; height: 20px; opacity: 0; scale: 0.25; filter: blur(4px);
  transition-property: opacity, scale, filter; transition-duration: 250ms; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
:root[data-theme-choice="auto"] .ti-auto,
:root[data-theme-choice="light"] .ti-light,
:root[data-theme-choice="dark"] .ti-dark { opacity: 1; scale: 1; filter: blur(0); }
:root:not([data-theme-choice]) .theme-toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .theme-toggle .ti { transition-duration: 0ms; } }
