/* Hello from Leo — hand-written static styles. System fonts only; no external hosts. */

:root {
  color-scheme: light dark;

  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, Cambria, "Times New Roman", serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  /* Light: warm paper, deep ink, ochre accent */
  --bg: oklch(97.5% 0.012 85);
  --bg-glow: oklch(93% 0.04 75);
  --ink: oklch(24% 0.035 275);
  --ink-soft: oklch(44% 0.03 275);
  --muted: oklch(50% 0.02 275);
  --accent: oklch(52% 0.13 55);
  --rule: oklch(80% 0.05 70);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark: midnight indigo, warm parchment text, soft gold accent */
    --bg: oklch(19% 0.03 275);
    --bg-glow: oklch(26% 0.06 280);
    --ink: oklch(95% 0.015 85);
    --ink-soft: oklch(82% 0.03 80);
    --muted: oklch(72% 0.02 275);
    --accent: oklch(82% 0.11 75);
    --rule: oklch(45% 0.06 70);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 80% 60% at 50% 38%, var(--bg-glow), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.greeting {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 8rem) clamp(1.25rem, 5vw, 3rem) 2rem;
  text-align: center;
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 9vw + 0.5rem, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}

h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: clamp(1rem, 2.5vw, 1.5rem) auto 0;
  border-radius: 3px;
  background: var(--accent);
}

.today {
  margin: 0;
  /* Reserve space so the date line never shifts layout */
  min-height: 1.6em;
  font-size: clamp(1.05rem, 1.4vw + 0.75rem, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  font-variant-numeric: oldstyle-nums proportional-nums;
}

.back {
  margin: 0.5rem 0 0;
  font-size: 1.0625rem;
}

.not-found-title {
  font-size: clamp(2.25rem, 7vw + 0.5rem, 4.5rem);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 150ms ease, text-decoration-thickness 150ms ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.credit {
  flex: none;
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.credit a {
  color: inherit;
  font-weight: 600;
}

.credit a:hover {
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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