/* acre public pages: how-it-works, terms, privacy.
   Static, self-contained, no third-party requests. Mirrors the app tokens (sand, ink, one teal accent). */
:root {
  --ink: #15170f;
  --sand: #f3ead8;
  --paper: #fbf7ee;
  --muted: #5a5948;
  --line: rgba(21, 23, 15, 0.2);
  --accent: #0b6b63;
  --f-sans: 'Geist Variable', 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

/* The same dark tokens as the app (styles.scss). /theme.js sets data-theme from the choice saved on this device; without it
   the device's own preference decides. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #ece7d8;
    --sand: #1f2119;
    --paper: #2a2c22;
    --muted: #a9a794;
    --line: rgba(236, 231, 216, 0.2);
    --accent: #46c4b4;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --ink: #ece7d8;
  --sand: #1f2119;
  --paper: #2a2c22;
  --muted: #a9a794;
  --line: rgba(236, 231, 216, 0.2);
  --accent: #46c4b4;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--sand);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Header and footer */
.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  font-size: 30px;
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav ul,
.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.foot-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
}

.site-nav a:hover,
.foot-nav a:hover {
  text-decoration-color: currentColor;
}

.site-nav a[aria-current='page'] {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.site-nav a.cta {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--sand);
  text-decoration: none;
}

.site-footer {
  margin-top: 72px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: grid;
  gap: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
}

/* Page layout */
main {
  display: block;
  padding-top: 40px;
}

.page {
  max-width: 72ch;
}

.page.wide {
  max-width: 880px;
}

h1,
h2,
h3 {
  font-weight: 640;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.035em;
}

h2 {
  margin: 56px 0 12px;
  font-size: clamp(24px, 3.4vw, 30px);
  scroll-margin-top: 16px;
}

h3 {
  margin: 32px 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
  scroll-margin-top: 16px;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.35em;
}

li > ul,
li > ol {
  margin-top: 0.35em;
}

.meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.lede {
  margin: 0 0 24px;
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.crumbs {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li {
  margin: 0;
}

.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
}

.crumbs a {
  color: var(--muted);
}

/* Boxes: flat, bordered, no side stripe */
.box {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.box > :last-child {
  margin-bottom: 0;
}

.box h2,
.box h3 {
  margin-top: 0;
}

.toc ol {
  columns: 2 260px;
  column-gap: 32px;
  margin: 0;
  padding-left: 1.4em;
}

.toc li {
  break-inside: avoid;
}

/* Tables */
.table-scroll {
  margin: 16px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

caption {
  padding: 12px 14px 4px;
  text-align: left;
  font-weight: 640;
  color: var(--ink);
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

thead th {
  border-top: 0;
  font-size: 13px;
  font-weight: 640;
  color: var(--muted);
}

tbody th {
  font-weight: 640;
}

.key-facts {
  margin: 0;
  padding-left: 1.2em;
}

dt {
  font-weight: 640;
}

dd {
  margin: 0 0 1em;
}

code,
.mono {
  font-family: var(--f-mono);
  font-size: 0.92em;
}

address {
  font-style: normal;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  main {
    padding-top: 28px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.box.toc > h2 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
