/*
  Spoonbill's public pages. One stylesheet, no build step, no scripts.
  The look is the app's "Bold fresh" theme (apps/prototype/src/styles/tokens.css):
  cream paper, Fredoka for headings, Nunito for text, ink outlines with an offset shadow.
  Both fonts are self-hosted from ./fonts (SIL Open Font Licence, files beside them).
  Colours are tokens on :root; the night variant follows the reader's system setting.
*/
@font-face {
  font-family: "Fredoka Variable";
  src: url("fonts/fredoka-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Variable";
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --display: "Fredoka Variable", "Nunito Variable", system-ui, sans-serif;
  --text: "Nunito Variable", system-ui, sans-serif;

  --green: #1e6b47;
  --green-deep: #154f34;
  --lemon: #ffd84a;
  --on-block: #1d1a16;
  --on-green: #fff;

  --bg: #fff5e8;
  --surface: #fff;
  --tint: #fcefdc;
  --ink: #1d1a16;
  --muted: #5a534a;
  --line: #eadfcc;
  --edge: #1d1a16;
  --link: #1e6b47;
  --focus: #1b4f86;
  --info-bg: #cde7ff;
  --info-fg: #1b4f86;

  --radius: 22px;
  --measure: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #17130e;
    --surface: #231e17;
    --tint: #332b21;
    --ink: #fff5e8;
    --muted: #cdbfa8;
    --line: #3d3528;
    --edge: #fff5e8;
    --link: #7fdca8;
    --focus: #cde7ff;
    --info-bg: #1c3350;
    --info-fg: #cde7ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 500 1.0625rem/1.6 var(--text);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
a {
  color: var(--link);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  background: var(--lemon);
  color: var(--on-block);
  border: 2px solid var(--edge);
  border-radius: 999px;
  font: 600 1rem var(--display);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* Header and footer */
.bar,
.foot {
  width: 100%;
  max-width: calc(var(--measure) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 18px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font: 600 1.5rem/1 var(--display);
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font: 700 1rem var(--text);
}
nav a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--green);
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 32px);
  margin: 0 auto;
  padding: 16px 16px 48px;
}
.foot {
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.foot p {
  margin: 0;
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
h1 {
  margin: 16px 0 12px;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  font-weight: 600;
}
h2 {
  margin: 40px 0 10px;
  font-size: clamp(1.4rem, 5vw, 1.7rem);
  font-weight: 600;
}
h3 {
  margin: 24px 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
}
p,
ul,
ol,
dl {
  margin: 0 0 14px;
}
li {
  margin-bottom: 6px;
}
.lede {
  font-size: 1.2rem;
  line-height: 1.55;
}
.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Cards, ticket and buttons: ink outline with an offset shadow */
.card {
  margin: 20px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--edge);
}
.card > :last-child {
  margin-bottom: 0;
}
.card h2,
.card h3 {
  margin-top: 0;
}
.ticket {
  display: inline-block;
  padding: 2px 12px;
  background: var(--lemon);
  color: var(--on-block);
  border: 2px solid var(--edge);
  border-radius: 8px;
  font: 600 1rem var(--display);
  transform: rotate(-1.5deg);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  background: var(--green);
  color: var(--on-green);
  border: 2px solid var(--edge);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--edge);
  font: 600 1.0625rem var(--display);
  text-decoration: none;
}
.btn.secondary {
  background: var(--surface);
  color: var(--ink);
}
.btn:hover {
  text-decoration: underline;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.links li {
  margin: 0;
}

/* The numbered steps */
ol.steps {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}
ol.steps li {
  position: relative;
  min-height: 36px;
  padding-left: 48px;
  counter-increment: step;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--lemon);
  color: var(--on-block);
  border: 2px solid var(--edge);
  border-radius: 50%;
  font: 600 1rem var(--display);
}

/* The draft banner (tools/site/pages.mjs): a page whose text is not approved yet. The release build refuses it. */
.draft-banner {
  flex-basis: 100%;
  margin: 4px 0 0;
  padding: 8px 14px;
  background: var(--lemon);
  color: var(--on-block);
  border: 2px solid var(--edge);
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* An item the owner still has to settle: visible, and never only a colour. */
.owner {
  padding: 1px 6px;
  background: var(--lemon);
  color: var(--on-block);
  border: 1.5px dashed var(--on-block);
  border-radius: 6px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.notice {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--info-bg);
  color: var(--info-fg);
  border: 2px solid var(--edge);
  border-radius: 14px;
}
.notice > :last-child {
  margin-bottom: 0;
}
.notice a {
  color: inherit;
}
.coming {
  border-left: 6px solid var(--green);
  padding-left: 16px;
}

/* Table of contents and the owner checklist */
.toc ul {
  margin: 0;
  padding-left: 1.2em;
}
.toc a {
  display: inline-block;
  padding: 4px 0;
}
.checklist {
  padding-left: 0;
  list-style: none;
}
.checklist li {
  overflow-wrap: anywhere;
  padding: 10px 12px 10px 14px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: 14px;
}
.checklist input {
  width: 22px;
  height: 22px;
  margin: 0 10px 0 0;
  vertical-align: -4px;
  accent-color: var(--green);
}

/* Tables (the privacy page's "what we hold" and processors). On a phone each row stacks, each cell under its label. */
table.data {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
  background: var(--surface);
  border: 2px solid var(--edge);
  font-size: 0.9375rem;
  line-height: 1.45;
}
table.data th,
table.data td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
}
table.data thead th {
  font-family: var(--display);
  font-weight: 600;
  background: var(--tint);
  border-bottom: 2px solid var(--edge);
}
table.data tbody th {
  font-weight: 800;
}
@media (max-width: 600px) {
  table.data,
  table.data thead,
  table.data tbody {
    display: block;
  }
  table.data thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  table.data tr {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }
  table.data tbody th,
  table.data td {
    display: block;
    padding: 2px 0;
    border: 0;
  }
  table.data td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 800;
  }
}

/* FAQ */
details {
  margin: 0 0 12px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-radius: 14px;
}
summary {
  min-height: 48px;
  padding: 12px 16px;
  cursor: pointer;
  font: 600 1.1rem/1.3 var(--display);
}
details > :not(summary) {
  margin-left: 16px;
  margin-right: 16px;
}
details > :last-child {
  margin-bottom: 16px;
}

dt {
  font-weight: 800;
}
dd {
  margin: 0 0 12px;
}

@media (max-width: 380px) {
  body {
    font-size: 1rem;
  }
  .card {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .skip,
  nav {
    display: none;
  }
}
