:root {
  --paper: #f6f5f1;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --pad: 48px;
}

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

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 200ms ease;
}
a:hover { opacity: 0.55; }

.slate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: var(--pad);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  gap: 24px;
}

.hero-title {
  margin: 0;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 1;
  letter-spacing: -0.015em;
  text-align: center;
}

.hero-img-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
}

.hero-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-style: italic;
}

.slate--close {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.wordmark {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-feature-settings: "kern" 1;
}

.numeral {
  font-style: italic;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  font-feature-settings: "lnum" 1;
  font-variant-numeric: lining-nums;
  letter-spacing: -0.01em;
}

.footer-line {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.dot {
  display: inline-block;
  margin: 0 0.5em;
  opacity: 0.4;
}

.todo {
  /* placeholder styling — easy to spot before going public */
  border-bottom: 1px dashed currentColor;
  opacity: 0.7;
}

.photo {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background: var(--paper);
}

.photo img {
  max-width: 100%;
  max-height: calc(100vh - (var(--pad) * 2));
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  :root { --pad: 24px; }
  body { font-size: 16px; }
  .slate--open .wordmark,
  .slate--open .footer-line {
    font-size: 12px;
  }
  .footer-line { font-size: 12px; }
}

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