/* Self-hosted fonts (SIL Open Font License) – latin subset, trimmed to the weights in use */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f6f2ea;
  --tint: #efe9de;
  --ink: #1c1a17;
  --ink-soft: #4a453e;
  --rule: #d6cfc2;
  --gold: #a8946a;
  --gold-deep: #7a5f2e;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  color-scheme: light;
}

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

html, body { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color .2s, text-decoration-color .2s, background-color .2s;
}
a:hover { color: var(--gold-deep); text-decoration-color: var(--gold-deep); }
a:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* Content block sits in the vertical middle of the viewport on desktop */
.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) clamp(48px, 8.75vw, 112px) clamp(32px, 4vh, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notice {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.notice h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 3.25rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.notice h1 a { font-style: italic; }
.notice p {
  margin: 0;
  max-width: 720px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.cards {
  width: 100%;
  margin-top: clamp(88px, 12vh, 128px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: clamp(40px, 5.5vh, 56px) 48px;
  text-align: center;
  text-decoration: none;
}
.card + .card { border-left: 1px solid var(--rule); }
.card:hover,
.card:focus-visible { background: var(--tint); color: var(--ink); }
.card p {
  margin: 0;
  max-width: 400px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  text-wrap: balance;
}
.card .u {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.card:hover .u,
.card:focus-visible .u { color: var(--gold-deep); text-decoration-color: var(--gold-deep); }

.logo { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo img { display: block; width: auto; height: 64px; max-width: 260px; mix-blend-mode: multiply; }
.logo-substack svg { width: 30px; height: 34px; fill: #ff6719; }
.logo-substack span {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site-footer {
  padding: 0 24px clamp(20px, 3vh, 32px);
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .page { justify-content: flex-start; padding: 64px 24px 40px; }
  .notice { gap: 1.25rem; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
  .notice h1 { font-size: 2.125rem; line-height: 1.15; letter-spacing: -0.01em; }
  .notice p { font-family: var(--sans); font-size: 1.25rem; line-height: 1.5; }
  .cards { margin-top: 0; grid-template-columns: 1fr; border-top: 0; }
  .card { gap: 20px; padding: 40px 8px; }
  .card + .card { border-left: 0; border-top: 1px solid var(--rule); }
  .card p { font-size: 1.25rem; }
  .logo { height: 48px; gap: 10px; }
  .logo img { height: 48px; max-width: 200px; }
  .logo-substack svg { width: 24px; height: 27px; }
  .logo-substack span { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
