/* Hemlock Hollow — landing page styles */

/* Wordmark face. Self-hosted (no CDN); latin subset, ~26KB. Cinzel has no
   lowercase, so it is used caps-only and only on the wordmark — supporting
   text stays in the serif and sans stacks below. */
@font-face {
  font-family: "Cinzel";
  src: url("/fonts/Cinzel-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The page is dark only — a design choice for now, not a technical
     constraint. If light mode is ever wanted back, this palette moves under a
     `prefers-color-scheme` block and the `.mark` glow gets a toggle again.
     `color-scheme` keeps scrollbars and any form controls dark to match. */
  color-scheme: dark;

  --c-bg: #191d19;
  --c-text: #e7e3d8;
  --c-muted: #9a978c;
  --c-accent: #a8c4ad;      /* hemlock */
  --c-rule: #333a34;

  --font-display: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-wordmark: "Cinzel", var(--font-display);
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ------------------------------------------------ */

.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.card {
  width: 100%;
  min-width: 0;
  max-width: var(--measure);
  text-align: center;
}

/* ---- Mark ---------------------------------------------------
   The hemlock monogram above the wordmark. currentColor is set
   to --c-accent, and the blurred ::before is a backlit-sign halo
   against the dark ground.
   ------------------------------------------------------------- */

.mark {
  position: relative;
  margin: 0 auto 2.25rem;
  max-width: 11rem;
}

.mark img,
.mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.mark svg {
  position: relative;
  z-index: 1;
  color: var(--c-accent);
  filter: drop-shadow(0 1px 10px color-mix(in srgb, var(--c-accent) 40%, transparent));
}

.mark::before {
  content: "";
  position: absolute;
  inset: -12% -20% -10%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 48%,
    color-mix(in srgb, var(--c-accent) 30%, transparent),
    transparent 72%
  );
  filter: blur(20px);
}

/* ---- Type -------------------------------------------------- */

.wordmark {
  /* Cinzel caps, stacked HEMLOCK / HOLLOW to echo the sign lockup. The
     max-width forces the break after the first word without touching markup. */
  margin: 0 auto;
  max-width: 9em;
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
}

.place {
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  color: var(--c-muted);
  text-wrap: balance;
}

.rule {
  width: 3rem;
  height: 1px;
  margin: 2.25rem auto;
  border: 0;
  background-color: var(--c-rule);
}

.note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--c-muted);
  text-wrap: pretty;
}

/* ---- Footer ------------------------------------------------ */

.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.footer a {
  color: inherit;
  text-decoration-color: var(--c-rule);
  text-underline-offset: 0.2em;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--c-accent);
}

/* ---- 404 --------------------------------------------------- */

.status {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  margin: 0 0 1rem;
  color: var(--c-accent);
}

/* ---- Motion / print ---------------------------------------- */

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

/* The screen palette is dark; recolour to ink for print. */
@media print {
  :root {
    --c-bg: #fff;
    --c-text: #1a1a1a;
    --c-muted: #555;
    --c-accent: #1a1a1a;
    --c-rule: #ccc;
  }

  body {
    background: #fff;
    color: #1a1a1a;
  }

  .mark::before {
    display: none;
  }

  .mark svg {
    filter: none;
  }
}
