/* Base, layout and components. Values come from tokens.css. */

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--space-6);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-3);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: var(--leading-snug); }
[data-site="chapter"] h1, [data-site="chapter"] h2 { font-weight: 600; letter-spacing: -0.015em; }
[data-site="showcase"] h1, [data-site="showcase"] h2 { letter-spacing: -0.03em; font-weight: 720; }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-2);
}
.skip-link:focus { top: var(--space-2); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 46rem; }

@media (min-width: 48em) {
  :root { --gutter: 1.5rem; }
}

.section { padding-block: var(--space-7); }
.section--tint { background: var(--bg-tint); }
.section--tight { padding-block: var(--space-6); }
@media (min-width: 48em) {
  .section { padding-block: var(--space-8); }
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--space-2);
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 40rem;
  line-height: 1.5;
}

.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-6); }
.prose h3 { margin-top: var(--space-5); }
.prose ul { padding-left: 1.25rem; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: var(--space-2); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
}
.section-head h2 { margin: 0; }
.section-head h2 + p { margin: var(--space-2) 0 0; }
.section-head .lede { margin-top: var(--space-3); }

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 48em) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--aside { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-7); }
}

/* Buttons */

.btn {
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn--quiet { background: var(--accent-soft); color: var(--accent-text); }
.btn--quiet:hover { background: color-mix(in oklab, var(--accent) 20%, var(--surface)); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.arrow::after { content: "\2192"; display: inline-block; margin-left: 0.35em; transition: transform var(--dur) var(--ease); }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(3px); }

/* Header */

.ribbon {
  background: var(--ink);
  color: var(--bg);
  font-size: var(--step--1);
  text-align: center;
  padding: 0.45rem var(--gutter);
}
.ribbon a { color: inherit; font-weight: 600; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--step-1);
  line-height: 1.15;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.brand__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}
.nav-toggle__bars { width: 16px; height: 10px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 550;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }

/* Nine items plus the chapter name need about 1200px; below that the menu
   collapses instead of wrapping onto a second row. */
@media (max-width: 74.99em) {
  .js .nav-toggle { display: inline-flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; padding-bottom: var(--space-4); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { width: 100%; min-height: 48px; border-radius: var(--radius-s); font-size: var(--step-0); }
}
/* Set by site.js when the full menu would not fit on one line. */
.nav-collapsed .nav-toggle { display: inline-flex; }
.nav-collapsed .site-header .wrap { flex-wrap: wrap; }
.nav-collapsed .site-nav { flex-basis: 100%; display: none; }
.nav-collapsed .site-nav.is-open { display: block; padding-bottom: var(--space-4); }
.nav-collapsed .site-nav ul { flex-direction: column; gap: 0; }
.nav-collapsed .site-nav a { width: 100%; min-height: 48px; border-radius: var(--radius-s); font-size: var(--step-0); }

/* Chapter hero */

.art-sun { fill: color-mix(in oklab, var(--accent) 18%, #ffd89a); }
.art-hill-far { fill: color-mix(in oklab, var(--accent) 22%, var(--ground)); }
.art-hill-mid { fill: color-mix(in oklab, var(--accent) 40%, var(--ground)); }
.art-hill-near { fill: color-mix(in oklab, var(--accent) 62%, var(--ground)); }
.art-field { fill: var(--bg); }
.art-runway { fill: color-mix(in oklab, var(--ink) 16%, var(--bg)); }
.art-mark { stroke: var(--bg); }
.art-plane { fill: var(--ink); }
.art-trail { stroke: color-mix(in oklab, var(--ink) 35%, transparent); }
.art-cloud { fill: color-mix(in oklab, var(--surface) 85%, transparent); }
@media (prefers-color-scheme: dark) {
  .art-sun { fill: color-mix(in oklab, var(--accent) 25%, #d9b56a); opacity: 0.7; }
  .art-cloud { fill: color-mix(in oklab, var(--ink) 10%, transparent); }
}


.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 78%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: var(--space-7);
  padding-bottom: clamp(9rem, 24vw, 15rem);
}
.hero h1 { max-width: 16ch; margin-bottom: var(--space-4); }
.hero .lede { margin-bottom: var(--space-5); }
.hero__art {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: clamp(8rem, 22vw, 14rem);
  pointer-events: none;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-2);
}
.chip svg { width: 14px; height: 14px; flex: none; color: var(--accent-text); }
@media (min-width: 64em) {
  .hero .wrap { padding-top: var(--space-8); }
}

.page-head {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-7) var(--space-6);
}
.page-head h1 { font-size: var(--step-4); max-width: 22ch; }
.page-head .lede { margin: 0; }

/* Cards and lists */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
}
.card h3 { margin-bottom: var(--space-2); }
.card--accent { background: var(--accent-soft); border-color: var(--accent-line); box-shadow: none; }
.card--link { position: relative; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card--link:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card--link a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.cta-card { display: flex; flex-direction: column; gap: var(--space-3); }
.cta-card p { color: var(--ink-2); flex: 1; }
.cta-card .icon-badge { margin-bottom: var(--space-1); }

.icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.icon-badge svg { width: 22px; height: 22px; }

.event-list, .news-list, .plain-list { list-style: none; margin: 0; padding: 0; }
.event-list { display: grid; gap: var(--space-3); }

.event {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.event__date {
  display: grid;
  place-items: center;
  align-content: center;
  height: 3.75rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  line-height: 1;
  text-align: center;
}
.event__month { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.event__day { font-family: var(--font-display); font-size: 1.6rem; font-weight: 650; margin-top: 2px; }
.event__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; line-height: var(--leading-snug); margin: 0 0 var(--space-1); }
.event__title a { color: var(--ink); text-decoration: none; }
.event__title a:hover { color: var(--accent-text); text-decoration: underline; }
.event__meta { color: var(--ink-3); font-size: var(--step--1); margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-3); }
.event__desc { margin: var(--space-2) 0 0; color: var(--ink-2); font-size: var(--step--1); }
.event__actions { margin-top: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: var(--step--1); }
.tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }

.news-list { display: grid; gap: var(--space-4); }
@media (min-width: 48em) { .news-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* In two columns an odd last story would sit alone; let it take the row. */
@media (min-width: 48em) and (max-width: 63.99em) {
  .news-list--grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 64em) { .news-list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: border-color var(--dur) var(--ease);
}
.news-card:hover { border-color: var(--accent-line); }
.news-card h3 { margin: 0; font-size: var(--step-1); }
.news-card .tag { align-self: flex-start; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-card h3 a:hover { color: var(--accent-text); }
.news-card p { color: var(--ink-2); font-size: var(--step--1); margin: 0; }
.news-card .meta { color: var(--ink-3); font-size: var(--step--2); margin-top: auto; padding-top: var(--space-2); }

.article { max-width: var(--measure); }
.article h1 { font-size: var(--step-4); }
.article .meta { color: var(--ink-3); margin-bottom: var(--space-5); }
.article-body p { font-size: var(--step-0); }

/* Data loading states */

.data-region { min-height: 12rem; display: grid; gap: var(--space-3); align-content: start; }
.data-region--short { min-height: 6rem; }
.no-js .skeleton { display: none; }
.data-status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  color: var(--ink-2);
  font-size: var(--step--1);
}
.data-status[hidden] { display: none; }
.data-status__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
  animation: pulse 1.8s var(--ease) infinite;
}
.data-status--error .data-status__dot { background: var(--ink-3); animation: none; }
.stale-note { font-size: var(--step--2); color: var(--ink-3); margin-top: var(--space-3); }
.stale-note[hidden] { display: none; }

.skeleton { display: grid; gap: var(--space-3); }
.skeleton__row {
  height: 5.75rem;
  border-radius: var(--radius-m);
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  border: 1px solid var(--line);
  animation: shimmer 1.6s linear infinite;
}
.empty {
  padding: var(--space-5);
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 45%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Info panels */

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.info-list li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--space-3); }
.info-list svg { width: 20px; height: 20px; color: var(--accent-text); margin-top: 3px; }
.info-list strong { display: block; font-weight: 650; }
.info-list span { color: var(--ink-2); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--space-3); }
.steps li::before {
  content: counter(step);
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
  font-size: var(--step--1);
}
.steps strong { display: block; }
.steps span { color: var(--ink-2); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-2);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 48px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > div { padding: 0 0 var(--space-4); color: var(--ink-2); max-width: var(--measure); }

.notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-m);
  border: 1px solid transparent;
  margin-bottom: var(--space-5);
  font-size: var(--step--1);
}
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.notice--error { background: var(--danger-soft); border-color: color-mix(in oklab, var(--danger) 30%, transparent); color: var(--ink); }
.notice--error svg { color: var(--danger); }
.notice--retry { background: var(--warn-soft); border-color: color-mix(in oklab, var(--warn) 30%, transparent); color: var(--ink); }
.notice--retry svg { color: var(--warn); }
.notice--template { background: var(--warn-soft); border-color: color-mix(in oklab, var(--warn) 30%, transparent); }

/* Forms */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
}
@media (min-width: 48em) { .form-card { padding: var(--space-6); } }
.form-card h2 { font-size: var(--step-2); }
.form-card > p { color: var(--ink-2); }

.form { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.field { display: grid; gap: var(--space-1); }
.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 40em) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-weight: 600; font-size: var(--step--1); color: var(--ink); padding: 0; }
.field .hint { font-size: var(--step--2); color: var(--ink-3); margin: 0; }
.field .req { color: var(--ink-3); font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: max(16px, var(--step-0));
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.field--invalid .input, .field--invalid .select, .field--invalid .textarea { border-color: var(--danger); }
.field-error {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--danger);
  font-size: var(--step--1);
  font-weight: 550;
  margin: 0;
}
.field-error::before { content: "!"; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--danger); color: var(--surface); display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: grid; gap: var(--space-2); margin-top: var(--space-1); }
@media (min-width: 40em) { .checks--2 { grid-template-columns: 1fr 1fr; } }
.check {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  font-size: var(--step--1);
  font-weight: 500;
}
.check input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.check--consent { background: var(--surface-2); line-height: 1.55; color: var(--ink-2); }
.check--consent strong { color: var(--ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-2); }
.form-actions .small { margin: 0; }
.sending-note { display: none; font-size: var(--step--1); color: var(--ink-3); }
.form.is-sending .sending-note { display: block; }

.thanks {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-l);
  background: var(--success-soft);
  border: 1px solid color-mix(in oklab, var(--success) 30%, transparent);
  text-align: left;
}
.thanks svg { width: 40px; height: 40px; color: var(--success); }
.thanks h2 { margin: 0; font-size: var(--step-2); }
.thanks p { margin: 0; color: var(--ink-2); }

/* Calendar */

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.cal-title { font-family: var(--font-display); font-size: var(--step-2); margin: 0; min-width: 10.5ch; text-align: center; }
.cal-nav { display: flex; gap: var(--space-2); align-items: center; }
.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.segmented button {
  min-height: 38px;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}
.cal-dow {
  background: var(--surface-2);
  padding: var(--space-2);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}
.cal-day {
  background: var(--surface);
  min-height: 3.25rem;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: var(--step--2);
  border: 0;
  font: inherit;
  text-align: left;
  color: var(--ink);
}
.cal-day--out { background: var(--bg-tint); color: var(--ink-3); }
.cal-day--today .cal-num { background: var(--accent); color: var(--accent-ink); }
.cal-day--has { cursor: pointer; }
.cal-day--has:hover { background: var(--accent-soft); }
.cal-day[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-num {
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: var(--step--1);
  font-weight: 600;
}
.cal-chip {
  display: block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
}
.cal-dots { display: flex; gap: 3px; padding-left: 4px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cal-chips { display: none; }
@media (min-width: 48em) {
  .cal-day { min-height: 6.5rem; }
  .cal-chips { display: grid; gap: 3px; }
  .cal-dots { display: none; }
}
.cal-day-list { margin-top: var(--space-5); }

/* Footer */

.site-footer {
  margin-top: auto;
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  padding-block: var(--space-7) var(--space-5);
  font-size: var(--step--1);
  color: var(--ink-2);
}
.site-footer h2 { font-size: var(--step-0); font-family: var(--font-sans); letter-spacing: 0; margin-bottom: var(--space-3); color: var(--ink); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--step--2);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.mini-form { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.mini-form .btn { white-space: nowrap; flex: none; }
.mini-form .input { min-height: 44px; background: var(--surface); }
.social { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink-2);
}
.social a:hover { color: var(--accent-text); border-color: var(--accent-line); }
.social svg { width: 18px; height: 18px; }

/* Not found */
.not-found { padding-block: var(--space-9); text-align: center; }
.not-found h1 { font-size: var(--step-4); margin-inline: auto; }
.not-found p { color: var(--ink-2); margin-inline: auto; max-width: 36rem; }
.not-found .btn-row { justify-content: center; margin-top: var(--space-5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .skeleton__row { animation: none; }
}

.stack { display: grid; gap: var(--space-6); align-content: start; }
.mt { margin-top: var(--space-5); }
.plain-list { list-style: none; margin: 0; padding: 0; }

/* ALTCHA widget (self-hosted form check), in the site's colours. */
altcha-widget {
  --altcha-color-primary: var(--accent);
  --altcha-color-primary-content: var(--accent-ink);
  --altcha-color-base: var(--surface);
  --altcha-color-base-content: var(--ink);
  --altcha-border-color: var(--line-strong);
  --altcha-border-radius: var(--radius-s);
  --altcha-max-width: 100%;
}
