/* Vakna static pages. Calm and square: paper background, white cards, strong blue actions. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 0.15em; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-halo); }
main:focus { outline: none; }
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 16px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 800; overflow-wrap: break-word; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); margin: 0 0 20px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; line-height: 1.25; font-weight: 700; }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem); line-height: 1.5; }

.skip-link { position: absolute; left: 8px; top: -100px; z-index: 10; background: var(--surface); color: var(--primary); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 8px; }

/* Header: white, logo left, one solid block for the main action. */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: stretch; justify-content: space-between; gap: 8px 24px; padding-inline-end: 0; min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px; }
.brand__logo { display: block; height: 39px; width: auto; }
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="contrast"]) .brand__logo--dark { display: block; }
  :root:not([data-theme="light"]):not([data-theme="contrast"]) .brand__logo--light { display: none; }
}
.site-header__action { display: inline-flex; align-items: center; padding-inline: 28px; background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none; }
.site-header__action:hover { background: var(--primary-hover); color: var(--on-primary); text-decoration: underline; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: var(--radius); border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.button--primary { background: var(--primary); color: var(--on-primary); }
.button--primary:hover { background: var(--primary-hover); color: var(--on-primary); }

/* Hero: pastel band with line art along the bottom edge. */
.hero { background: var(--band-1); padding-top: clamp(32px, 6vw, 72px); }
.hero__copy h1, .hero__copy .lead { max-width: 760px; }
.hero__copy .lead { color: var(--ink); margin: 0 0 24px; }
.hero__art { line-height: 0; padding-bottom: 56px; }
.hero__art svg { display: block; width: 100%; height: clamp(110px, 21vw, 250px); }

/* Cards that overlap the hero's lower edge. */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: -40px 0 0; padding: 0; position: relative; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; }
.card h2 { font-size: 1.375rem; margin-bottom: 10px; font-weight: 700; }
.card p { margin: 0 0 14px; flex: 1; }

/* Link lists with a chevron in the text. */
.links { list-style: none; margin: 0; padding: 0; }
.links li { border-top: 1px solid var(--line); }
.links a { display: block; padding-block: 10px; font-weight: 700; text-decoration: none; }
.links a:hover { text-decoration: underline; }

.section { padding-block: clamp(40px, 6vw, 72px) 0; }
.section--last { padding-bottom: clamp(48px, 7vw, 88px); }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.tile { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tile__band { display: flex; align-items: center; justify-content: center; padding-block: 22px; }
.tile__band--1 { background: var(--band-1); }
.tile__band--2 { background: var(--band-2); }
.tile__band--3 { background: var(--band-3); }
.tile__band--4 { background: var(--band-4); }
.tile__band--5 { background: var(--band-5); }
.tile__band--6 { background: var(--band-6); }
.tile__body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tile__body h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tile__body p { margin: 0 0 12px; flex: 1; }
.tile__body .links li { border-top: 0; }
.tile__body .links a { padding-block: 4px 0; }

/* Footer: charcoal columns with white text. */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-block: 40px; --focus: #ffffff; --focus-halo: #000000; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px 48px; align-items: start; }
.site-footer h2 { color: var(--footer-text); font-size: 1.125rem; font-weight: 700; margin: 0 0 12px; }
.site-footer p { margin: 0 0 10px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { display: inline-block; padding-block: 6px; color: var(--footer-text); text-decoration: underline; }
.site-footer a:hover { color: var(--footer-text); text-decoration-thickness: 2px; }
.missing { background: var(--warning-soft); color: var(--warning); padding: 0 4px; font-weight: 700; outline: 1px dashed currentColor; }

/* Legal and information pages. */
.prose { padding-block: 40px 72px; max-width: 800px; }
.prose h2 { margin-top: 2em; margin-bottom: 12px; font-size: 1.625rem; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-block: 4px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9688rem; background: var(--surface); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.table-scroll { overflow-x: auto; position: relative; }
.form { display: grid; gap: 6px; max-width: 520px; margin-block: 24px; }
.form label { font-weight: 700; }
.hint { margin: 0; color: var(--muted); font-size: 0.9688rem; }
.form input[type="text"], .form select { font: inherit; min-height: 48px; padding: 8px 12px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); width: 100%; margin-bottom: 10px; }
.form .button { justify-self: start; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--primary); }
.check label { font-weight: 400; }

@media (max-width: 860px) {
  .cards, .tiles { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
  .hero__art { display: none; }
}
