/* Hollowfield Institute — website
 *
 * Same design language as the app: National Park Service signage after dark.
 * Enamel park-sign green, trail-marker amber, aged interpretive-panel paper,
 * and a sickly lichen yellow doing the "something is wrong" work.
 *
 * Tokens are copied from HollowfieldInstitute/Resources/Colors.swift. If one
 * side changes, change both — the site and the app should be recognisably the
 * same institution.
 */

:root {
  /* Forest — backgrounds, darkest to lightest */
  --forest-void: #080d09;
  --forest-deep: #0d160f;
  --forest-pine: #132115;
  --forest-moss: #1b2f1f;

  /* Enamel park sign */
  --sign-green: #2c5238;
  --sign-green-light: #3a6b49;

  /* Trail markers */
  --trail-amber: #e0a82e;
  --beacon-yellow: #f2c94c;
  --lichen-yellow: #c4d14a;

  /* Paper */
  --paper-aged: #e8dfc8;
  --paper-canvas: #d6c9a8;
  --paper-shade: #b3a583;

  --rust-red: #9e3b2a;

  /* Text */
  --label-primary: #ede7d4;
  --label-secondary: #9ca893;
  --label-tertiary: #63705c;
  --label-on-paper: #1a2016;

  --measure: 34rem;
}

/* ---------------------------------------------------------------- reset */

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

body, h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }

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

/* ----------------------------------------------------------------- base */

body {
  background-color: var(--forest-void);
  /* Light pools at the horizon, dark at the edges — the treeline at night. */
  background-image: radial-gradient(
    ellipse 120% 80% at 50% 0%,
    #16281b 0%,
    var(--forest-deep) 45%,
    var(--forest-void) 100%
  );
  background-attachment: fixed;
  color: var(--label-secondary);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain. Kept very low — it should register as texture, not noise. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 2; }

/* ------------------------------------------------------------ typography */

h1, h2, h3, .sign__title {
  font-family: "Zilla Slab", Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--label-primary);
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-top: 2.5rem; }
h3 { font-size: 1.125rem; }

p { margin-bottom: 1.15rem; max-width: var(--measure); }

a { color: var(--beacon-yellow); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--trail-amber); }

.placard {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--lichen-yellow);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--label-tertiary);
}

.lede { font-size: 1.1875rem; color: var(--label-primary); }

/* --------------------------------------------------------------- layout */

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 42rem; }

.section { padding: 3.5rem 0; }

/* --------------------------------------------------- the enamel park sign */

.sign {
  background: linear-gradient(to bottom, var(--sign-green-light), var(--sign-green));
  border-radius: 3px;
  padding: 1.5rem 1.75rem;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 34px rgb(0 0 0 / 0.45);
}

/* The inset keyline of real painted signage. */
.sign::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid rgb(232 223 200 / 0.45);
  border-radius: 2px;
  pointer-events: none;
}

.sign__title {
  font-size: clamp(1.75rem, 6vw, 3rem);
  letter-spacing: 0.14em;
  color: var(--paper-aged);
  margin: 0;
}

.sign__sub {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgb(232 223 200 / 0.7);
  margin-top: 0.4rem;
}

/* ---------------------------------------------------------------- cards */

.panel {
  background: rgb(232 223 200 / 0.055);
  border: 1px solid rgb(232 223 200 / 0.13);
  border-radius: 4px;
  padding: 1.4rem;
}

/* Aged interpretive-panel paper, for quoted archive material. */
.paper {
  background: linear-gradient(135deg, var(--paper-aged), var(--paper-canvas));
  border: 1px solid var(--paper-shade);
  border-radius: 3px;
  color: var(--label-on-paper);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 26px rgb(0 0 0 / 0.5);
}
.paper p { color: var(--label-on-paper); }
.paper .placard { color: rgb(26 32 22 / 0.55); }

/* ------------------------------------------------------------- founders */

.founders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.founder-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgb(232 223 200 / 0.05);
  border: 1px solid rgb(232 223 200 / 0.12);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.founder-card:hover {
  border-color: rgb(242 201 76 / 0.5);
  transform: translateY(-2px);
}

/* Portrait slot. Holds its shape before artwork exists so the layout doesn't
   jump when the real inked portraits land. */
.portrait {
  aspect-ratio: 4 / 5;
  background: var(--forest-moss);
  border-bottom: 1px solid rgb(232 223 200 / 0.12);
  display: grid;
  place-items: center;
  color: var(--label-tertiary);
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.founder-card__body { padding: 0.9rem 1rem 1.1rem; }
.founder-card__name {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  color: var(--label-primary);
  font-size: 1.0625rem;
}
.founder-card__role {
  font-size: 0.8125rem;
  color: var(--label-tertiary);
  margin-top: 0.15rem;
}

/* The eleventh file. Deliberately the only card with nothing in it. */
.founder-card--redacted .portrait { background: var(--forest-pine); }
.founder-card--redacted .founder-card__name { color: var(--label-tertiary); }

/* ---------------------------------------------------------- photographs */

/* Archive photographs, mounted the way a print is mounted on a board: paper
   surround, hard shadow, caption set below in the typewriter face. */
.plate {
  margin: 2rem 0;
  padding: 0.75rem 0.75rem 0.5rem;
  background: linear-gradient(135deg, var(--paper-aged), var(--paper-canvas));
  border: 1px solid var(--paper-shade);
  border-radius: 3px;
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.5);
}

.plate img {
  width: 100%;
  border-radius: 2px;
  /* Images are generated already aged, so this is a light touch only. Applying
     a full grayscale/sepia pass here on top of a sepia source double-processes
     it and goes muddy. If a photograph looks too modern, fix the prompt rather
     than reaching for a stronger filter. */
  filter: contrast(1.04) saturate(0.92);
}

.plate figcaption {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: rgb(26 32 22 / 0.65);
  padding: 0.6rem 0.2rem 0.1rem;
  line-height: 1.45;
}

/* ---------------------------------------------------------------- rules */

.rule {
  border: 0;
  border-top: 1px solid rgb(232 223 200 / 0.14);
  margin: 2.5rem 0;
}

.advisory {
  background: linear-gradient(to right, var(--trail-amber), var(--beacon-yellow));
  color: #0d160f;
  border-radius: 3px;
  padding: 0.85rem 1.1rem;
  font-size: 0.9375rem;
}
.advisory p { color: inherit; margin: 0; max-width: none; }

/* --------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid rgb(232 223 200 / 0.12);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  font-size: 0.875rem;
  color: var(--label-tertiary);
}
.footer a { color: var(--label-secondary); }
.footer__note { max-width: var(--measure); margin-top: 0.75rem; }

.backlink {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .founder-card:hover { transform: none; }
}
