/* ============================================================
   MONSTERS INCS — shared stylesheet
   Aesthetic: Victorian cryptozoological field institute.
   Archival, editorial, specimen-catalogue. No external assets.
   ============================================================ */

:root {
  /* Palette — cabinet of curiosities */
  --ink:        #0d100c;   /* near-black, green-shifted */
  --ink-2:      #141813;   /* raised panel */
  --ink-3:      #1c211a;   /* hairline / border */
  --bone:       #e8e2d0;   /* aged paper */
  --bone-dim:   #a8a493;   /* secondary text */
  --bone-faint: #6a6a5e;   /* tertiary / metadata */
  --oxblood:    #a33527;   /* primary accent */
  --oxblood-lo: #6d221a;
  --brass:      #c9a227;   /* secondary accent */
  --sage:       #7d8a72;

  /* Type stacks — characterful, ships with Win/Mac */
  --display: 'Bookman Old Style', 'Hoefler Text', Baskerville,
             'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --body:    'Palatino Linotype', Palatino, 'Iowan Old Style',
             Georgia, 'Times New Roman', serif;
  --mono:    'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Courier New', monospace;

  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 72px);
  --rule: 1px solid var(--ink-3);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  /* Vignette + subtle top-light so the page never reads as flat black */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(201,162,39,.07), transparent 60%),
    radial-gradient(100% 60% at 50% 110%, rgba(163,53,39,.06), transparent 65%);
  background-attachment: fixed;
}

/* Film grain — inline SVG turbulence, no network request */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

::selection { background: var(--oxblood); color: var(--bone); }

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

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.eyebrow .sep { color: var(--oxblood); padding: 0 .5em; }

a { color: inherit; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Labelled hairline rule — the recurring archival motif */
.rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.rule::before, .rule::after {
  content: '';
  height: 1px;
  background: var(--ink-3);
  flex: 1;
}
.rule--start::before { display: none; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 16, 12, .82);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: var(--rule);
}

.masthead__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand__mark path, .brand__mark circle { stroke: var(--oxblood); }

.brand__name {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .24em;
  color: var(--bone-faint);
  margin-top: 3px;
}

.nav { display: flex; gap: 4px; flex-wrap: wrap; }

.nav a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  padding: 7px 13px;
  border: 1px solid transparent;
  transition: color .25s, border-color .25s, background .25s;
}
.nav a:hover { color: var(--bone); border-color: var(--ink-3); background: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--bone); border-color: var(--oxblood-lo); }

/* ---------- Hero ---------- */

.hero { padding: clamp(70px, 13vh, 150px) 0 clamp(50px, 8vh, 90px); position: relative; }

.hero__display {
  font-family: var(--display);
  font-size: clamp(42px, 9.5vw, 128px);
  line-height: .92;
  letter-spacing: -.025em;
  margin: 26px 0 0;
  max-width: 16ch;
}
.hero__display em {
  font-style: italic;
  color: var(--oxblood);
  /* keeps the italic from colliding with the following cap */
  padding-right: .06em;
}

.hero__lede {
  margin: 34px 0 0;
  max-width: 46ch;
  font-size: 19px;
  color: var(--bone-dim);
}

.hero__actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Decorative specimen glyph, floated behind the hero */
.hero__glyph {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 520px);
  opacity: .13;
  pointer-events: none;
  z-index: -1;
}
.hero__glyph path, .hero__glyph circle, .hero__glyph line {
  stroke: var(--brass);
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid var(--oxblood-lo);
  color: var(--bone);
  background: transparent;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .3s;
}
.btn:hover { background: var(--oxblood); border-color: var(--oxblood); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink-3); }
.btn--ghost:hover { background: var(--ink-2); border-color: var(--bone-faint); transform: translateY(-2px); }

/* ---------- Specimen catalogue (rooms) ---------- */

.catalogue { border-top: var(--rule); }

.entry {
  display: grid;
  grid-template-columns: 92px 1fr 210px;
  gap: clamp(18px, 4vw, 52px);
  padding: clamp(30px, 5vw, 54px) 0;
  border-bottom: var(--rule);
  align-items: start;
  transition: background .35s;
  position: relative;
}
.entry:hover { background: var(--ink-2); }
/* Accent bar that grows on hover */
.entry::before {
  content: '';
  position: absolute;
  left: calc(var(--gutter) * -1);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--oxblood);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.entry:hover::before { transform: scaleY(1); }

.entry__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--oxblood);
  padding-top: 8px;
}

.entry__title {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin-bottom: 14px;
}

.entry__body { color: var(--bone-dim); max-width: 54ch; margin: 0; }

.entry__tags {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-faint);
  border: 1px solid var(--ink-3);
  padding: 4px 9px;
}

/* Spec table on the right of each entry */
.spec { border-top: 1px solid var(--ink-3); padding-top: 12px; }
.spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.spec__k { color: var(--bone-faint); }
.spec__v { color: var(--bone); }

/* Difficulty pips */
.pips { display: inline-flex; gap: 3px; }
.pip { width: 8px; height: 8px; border: 1px solid var(--oxblood); }
.pip--on { background: var(--oxblood); }

/* ---------- Editorial prose ---------- */

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.35em; color: var(--bone-dim); }
.prose h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  margin: 2.2em 0 .7em;
  letter-spacing: -.01em;
  color: var(--bone);
}
.prose h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 2em 0 .8em;
}
.prose strong { color: var(--bone); font-weight: 600; }
.prose a { color: var(--brass); text-underline-offset: 3px; }

/* Drop cap on the opening paragraph */
.prose .lede::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.1em;
  line-height: .82;
  padding: .06em .12em 0 0;
  color: var(--oxblood);
}
.prose .lede { color: var(--bone); font-size: 19px; }

.pull {
  border-left: 2px solid var(--oxblood);
  padding: 4px 0 4px 24px;
  margin: 2.2em 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.7vw, 27px);
  line-height: 1.35;
  color: var(--bone);
}

/* ---------- Two-column info grid ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: 40px 0;
}

.card {
  border: 1px solid var(--ink-3);
  padding: 26px 24px;
  background: var(--ink-2);
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--bone-dim); font-size: 15.5px; }

/* ---------- Ledger (hours / details) ---------- */

.ledger { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
.ledger td {
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-3);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ledger td:first-child { color: var(--bone-faint); }
.ledger td:last-child { text-align: right; color: var(--bone); }
.ledger tr:last-child td { border-bottom: none; }

/* ---------- Form ---------- */

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--ink-3);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--oxblood); }
.field textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--bone-faint);
  line-height: 1.7;
  margin-top: 14px;
}

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

.footer {
  border-top: var(--rule);
  margin-top: clamp(70px, 12vh, 130px);
  padding: 46px 0 60px;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 34px;
  margin-bottom: 40px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin: 0 0 14px;
  font-weight: 400;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--bone-dim); text-decoration: none; font-size: 15px; transition: color .25s; }
.footer a:hover { color: var(--oxblood); }
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-faint);
  padding-top: 26px;
  border-top: 1px solid var(--ink-3);
}

/* ---------- Page-load reveal ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.rise { animation: rise .95s cubic-bezier(.19,.86,.28,1) both; animation-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .entry { grid-template-columns: 1fr; gap: 20px; }
  .entry__no { padding-top: 0; }
  .spec { max-width: 340px; }
  .hero__glyph { display: none; }
  .masthead__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav { margin-left: -13px; }
}
