@font-face {
  font-family: Bricolage;
  src: url(/fonts/bricolage-grotesque.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f6f6fa;
  --sheet: #fff;
  --ink: #191830;
  --muted: #6c6b85;
  --line: #e2e2ee;
  --accent: #5b5bd6;
  --accent-soft: #e6e6fb;
  --on-accent: #fff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121220;
    --sheet: #1a1a2c;
    --ink: #ececf6;
    --muted: #8e8da8;
    --line: #29293f;
    --accent: #8b8bf5;
    --accent-soft: #24244a;
    --on-accent: #121220;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 Bricolage, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  max-width: 1120px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* header and footer */

.top { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.lang { display: flex; gap: 4px; font-size: 15px; }
.lang a { padding: 4px 9px; border-radius: 7px; color: var(--muted); text-decoration: none; }
.lang a[aria-current] { background: var(--accent-soft); color: var(--ink); }

.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot span { margin-right: auto; }

/* home */

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; padding: 48px 0 104px; }
.hero h1 { margin: 0 0 28px; font-size: clamp(60px, 9.5vw, 116px); font-weight: 760; line-height: 0.9; letter-spacing: -0.05em; text-wrap: balance; }
.hero__lede { max-width: 28em; margin: 0 0 20px; font-size: 21px; }
.hero__status { margin: 0; color: var(--muted); font-size: 16px; }

.cal { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--sheet); }
.cal__month { margin: 0 0 16px; font-size: 17px; font-weight: 650; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.cal__grid span { position: relative; padding: 9px 0; border-radius: 9px; }
.cal__grid .cal__wd { padding: 0 0 6px; color: var(--muted); font-size: 12px; }
.cal__grid .has-entry::after { content: ''; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.cal__grid .is-today { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.cal__entry { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.cal__date { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.cal__text { margin: 0; font-size: 17px; }

@media (prefers-reduced-motion: no-preference) {
  .cal__text { animation: write 1.6s 0.5s steps(48) both; }
}
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 72px 0; border-top: 1px solid var(--line); }
.facts h2 { margin: 0 0 10px; font-size: 23px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.2; }
.facts p { margin: 0; color: var(--muted); }

.next { max-width: 36em; margin: 0 0 104px; font-size: 26px; font-weight: 560; letter-spacing: -0.02em; line-height: 1.35; }
.next span { color: var(--muted); }

/* legal pages */

.legal { max-width: 44em; padding: 24px 0 88px; }
.legal h1 { margin: 0 0 32px; font-size: clamp(42px, 6vw, 64px); font-weight: 740; line-height: 1; letter-spacing: -0.04em; }
.legal h2 { margin: 48px 0 12px; font-size: 25px; font-weight: 680; letter-spacing: -0.02em; }
.legal h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 650; }
.legal address { font-style: normal; }
.legal small { color: var(--muted); }

@media (max-width: 860px) {
  body { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 16px 0 72px; }
  .facts { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .next { margin-bottom: 72px; font-size: 22px; }
  .foot span { flex-basis: 100%; }
}
