/* Shared look of the HeyIana website: colours, type, header, footer, buttons and the legal pages. */
@font-face {
  font-family: Caveat; font-weight: 400 700; font-display: swap;
  src: url("fonts/caveat-latin.woff2") format("woff2");
}
:root {
  color-scheme: light dark;
  --paper: #f6f3ea;
  --surface: #fffdf6;
  --sunken: #ece8dc;
  --ink: #1f2b28;
  --muted: #55625c;
  --rule: #dcd8c9;
  --board: #213c34;
  --board-deep: #1a3029;
  --wood: #b09368;
  --wood-deep: #7a5e41;
  --chalk: #f5f0dc;
  --chalk-soft: #dce5d6;
  --gold: #efcb86;
  --rose: #f0b3a6;
  --primary: #213c34;
  --primary-hover: #305348;
  --on-primary: #f5f0dc;
  --link-hover: #8b431e;
  --focus: #a35a27;
  --danger: #8a3324;
  --danger-text: #823d30;
  --later: #f3e2bd;
  --later-ink: #5d4514;
  --shadow: 0 1px 2px #2a33281a, 0 12px 32px -12px #2a332833;
  --hand: Caveat, "Segoe Print", "Bradley Hand", cursive;
  --sans: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  font: 16px/1.6 var(--sans);
  background: var(--paper);
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111a17;
    --surface: #18241f;
    --sunken: #1f2d27;
    --ink: #ece8d8;
    --muted: #a7b3a9;
    --rule: #2e3d36;
    --board: #1f3a32;
    --board-deep: #172b25;
    --wood: #8d7450;
    --wood-deep: #5a4530;
    --primary: #efcb86;
    --primary-hover: #f8dc9f;
    --on-primary: #1f2b28;
    --link-hover: #efcb86;
    --focus: #efcb86;
    --danger: #b0503e;
    --danger-text: #f0a797;
    --later: #3d3520;
    --later-ink: #efd9a4;
    --shadow: 0 1px 2px #0006, 0 12px 32px -12px #0009;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button:enabled { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  /* Solid on purpose: a blurred backdrop is repainted on every scroll frame. */
  background: var(--paper);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { font: 700 2rem/1 var(--hand); text-decoration: none; }
.brand i { font-style: normal; color: #c98a3b; }
.site-nav { display: flex; align-items: center; gap: clamp(4px, 1.5vw, 12px); font-size: .9375rem; }
.site-nav a { padding: 10px 12px; border-radius: 999px; text-decoration: none; transition: background-color 160ms ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--sunken); }
.language {
  min-width: 44px; min-height: 44px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px;
  background: transparent; color: inherit; font-weight: 600; font-size: .875rem;
}
.language:hover { background: var(--sunken); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 10px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 650; text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.button:enabled:active, a.button:active { transform: scale(.98); }
.primary { background: var(--primary); color: var(--on-primary); }
.primary:hover { background: var(--primary-hover); }
.secondary { background: transparent; border-color: var(--rule); color: var(--ink); }
.secondary:enabled:hover, a.secondary:hover { background: var(--sunken); }
.danger { background: var(--danger); color: #fff6ef; }
.danger:enabled:hover { filter: brightness(1.12); }
.button:disabled { background: var(--sunken); color: var(--muted); border-color: var(--rule); }
.button .arrow { transition: transform 200ms ease; }
.button:hover .arrow { transform: translateX(3px); }

/* Marks a part of the page that has no working function behind it yet. */
.later {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--later); color: var(--later-ink); font: 600 .8125rem/1.6 var(--sans); letter-spacing: 0; white-space: nowrap;
}

.site-footer { margin-top: clamp(48px, 8vw, 96px); border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { display: inline-block; padding-block: 6px; }
.site-footer a:hover { color: var(--link-hover); }

/* Contact, legal notice and privacy. */
.legal { max-width: 46rem; padding-block: clamp(32px, 6vw, 72px) 0; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.legal .lede { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }
.legal h2 { margin-top: 44px; font-size: 1.375rem; }
.legal h3 { margin-top: 24px; font-size: 1.0625rem; letter-spacing: 0; }
.legal p, .legal ul, .legal address { margin-top: 12px; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 6px; }
.legal address { font-style: normal; }
.legal a:hover { color: var(--link-hover); }
.legal .card { margin-top: 20px; padding: 20px 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.legal .card > :first-child { margin-top: 0; }
.legal .stand { margin-top: 44px; color: var(--muted); font-size: .875rem; }
/* A detail only the site owner can supply. The build warns while any of these remain. */
.todo { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 1px 6px; border-radius: 6px; background: #ffe08a; color: #3d2c00; font-weight: 600; }
.draft-note {
  margin-top: 20px; padding: 12px 16px; border: 1px dashed #b98a1c; border-radius: 12px;
  background: var(--later); color: var(--later-ink); font-size: .9375rem;
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .site-nav { font-size: .875rem; }
  .site-nav a { padding: 10px 8px; }
  .site-nav .optional { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
