/* The Grave Hunters Society — one page, set like a book's title page.
   Canonical brand: near-black #0b0b0b, parchment #e8dcc3, brown #3b2f2f, accent red #7a1c1c.
   Cinzel for headings, Cormorant Garamond for everything else. No scripts, no motion. */

@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cinzel-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }

:root {
  --ink: #0b0b0b;
  --parchment: #e8dcc3;
  --muted: #b9ad95;
  --brown: #3b2f2f;
  --accent: #7a1c1c;
  --display: "Cinzel", "Times New Roman", Georgia, serif;
  --text: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --measure: 36rem;
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--text);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.6;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

/* Skip link: hidden until it has keyboard focus. */
.skip { position: absolute; left: 1rem; top: -4rem; padding: 0.6rem 1rem; background: var(--accent); color: var(--parchment); font-family: var(--display); text-decoration: none; }
.skip:focus { top: 1rem; outline: 2px solid var(--parchment); outline-offset: 3px; }

/* Hero: the seal on a faint lantern glow. The one bold thing on the page. */
.hero {
  width: 100%;
  padding: clamp(3rem, 9vh, 6rem) 1.25rem 0;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(232, 220, 195, 0.09), transparent 70%);
}
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.4em; line-height: 1.2; }
.hero img { display: block; margin: 0 auto; width: min(420px, 82vw); height: auto; }

.tagline {
  font-style: italic;
  font-size: 1.3em;
  line-height: 1.35;
  max-width: 24em;
  margin: 1.75rem auto 0;
}

main, footer { width: 100%; max-width: var(--measure); padding: 0 1.25rem; }

section { padding: 3.25rem 0 0; }
section + section, footer { margin-top: 3.25rem; }

/* A short rule instead of a heading label: the divider is the structure. */
section::before, footer::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin: 0 auto 3rem;
  background: var(--brown);
  box-shadow: 0 0 0 0.5px var(--brown);
}
section::before { margin-bottom: 2.25rem; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05em;
  letter-spacing: 0.06em;
  margin: 0 0 1.1rem;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Where to follow: three plain doors, opened the same way. */
.links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  min-height: 3rem;
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--muted);
  color: var(--parchment);
  font-family: var(--display);
  font-size: 0.85em;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.links a:hover, .links a:focus-visible { background: var(--accent); border-color: var(--accent); }
.links a:focus-visible { outline: 2px solid var(--parchment); outline-offset: 3px; }
.aside { margin-top: 1.75rem; color: var(--muted); }

footer { padding-bottom: clamp(3rem, 9vh, 6rem); }
footer .tagline { margin-top: 0; }
.motto { font-family: var(--display); font-size: 0.8em; letter-spacing: 0.12em; color: var(--muted); margin-top: 1.5rem; }
.fine { font-size: 0.85em; color: var(--muted); }

/* 404 */
.lost { padding-top: clamp(4rem, 18vh, 10rem); }
.lost h1 { font-family: var(--display); font-weight: 400; font-size: 1.4em; letter-spacing: 0.06em; margin: 0 0 0.75rem; }

@media (prefers-reduced-motion: reduce) { .links a { transition: none; } }
@media (max-width: 40rem) {
  section { padding-top: 2.5rem; }
  section + section, footer { margin-top: 2.5rem; }
  .links { flex-direction: column; align-items: stretch; }
  .links a { width: 100%; }
}
