/* Arky Calendar — public information pages.
   Plain CSS, no external fonts, no analytics, no trackers, no cookies.
   Colour is never the only signal, and the palette avoids red/green pairings. */

:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --text: #1a1d21;
  --muted: #4a5159;
  --border: #d8dee4;
  --accent: #1a4f8a;
  --accent-text: #ffffff;
  --measure: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --surface: #1b1f26;
    --text: #e8ebef;
    --muted: #a8b1ba;
    --border: #2c323b;
    --accent: #7fb3f0;
    --accent-text: #10131a;
  }
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

/* Keyboard users must be able to jump past the header. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.7rem 1rem;
  border-radius: 0 0 6px 0;
  z-index: 10;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

header[role="banner"] {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Inline SVG mark — no image request, no external asset. */
.brand svg { flex: 0 0 auto; }

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

main { padding: 2rem 0 1rem; }

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.6rem;
  letter-spacing: -0.005em;
}
h2:first-child { margin-top: 0; }

h3 {
  font-size: 1.02rem;
  margin: 1.5rem 0 0.4rem;
}

p { margin: 0 0 1rem; }

ul { margin: 0 0 1rem; padding-left: 1.35rem; }
li { margin-bottom: 0.45rem; }

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.lede {
  font-size: 1.08rem;
  color: var(--text);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.panel > :last-child { margin-bottom: 0; }

.panel h2 { margin-top: 0; font-size: 1.05rem; }

/* The link to the privacy policy is a destination, not decoration. */
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.cta:hover { text-decoration: underline; }

.contact { word-break: break-word; }

.updated {
  color: var(--muted);
  font-size: 0.92rem;
}

footer[role="contentinfo"] {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}
/* ⚠ THE FOOTER LINKS ARE STANDALONE NAVIGATION, NOT INLINE IN A SENTENCE, so
   the WCAG 2.5.8 exemption for inline text links does not apply to them. At
   the natural line height they measured 18px tall — under the 24px minimum
   pointer target, and well under a comfortable touch target. Padding gives
   them real height without changing how they read. */
footer nav { margin-bottom: 0.6rem; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
}

@media (max-width: 30rem) {
  body { font-size: 16px; }
  /* Stacked on a phone, so neither link is a narrow strip beside the other. */
  footer nav { flex-direction: column; gap: 0; }
  h1 { font-size: 1.4rem; }
  header[role="banner"] { padding: 1.25rem 0 1.1rem; }
  .cta { display: block; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
