/* SquishScope — Field Guide design system
   Paper, ink, stamps. No gradients, no glassmorphism, no purple. */

:root {
  --paper: #f4eee0;
  --paper-deep: #ece4d0;
  --ink: #211d16;
  --ink-soft: #4a4438;
  --rule: #c9bfa6;
  --stamp: #a63a2b;      /* oxidized red, rarity stamps */
  --moss: #4e5d3a;       /* field-guide green, links & accents */
  --highlight: #e8d448;  /* marker yellow, sparingly */

  /* gummy palette — NeeDoh-adjacent tones, used as small accents only */
  --gum-teal: #35a89e;
  --gum-berry: #c65a8f;
  --gum-lime: #93b03b;
  --gum-tang: #d97f35;
  --gum-grape: #7c63ad;
}

/* squash timing shared by all "squish" interactions */
@keyframes squish {
  0%   { transform: scale(1, 1); }
  35%  { transform: scale(1.04, 0.94); }
  65%  { transform: scale(0.98, 1.03); }
  100% { transform: scale(1, 1); }
}
@keyframes wobble {
  0%   { transform: rotate(-8deg) scale(1); }
  40%  { transform: rotate(-2deg) scale(1.12, 0.9); }
  70%  { transform: rotate(-11deg) scale(0.95, 1.08); }
  100% { transform: rotate(-8deg) scale(1); }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.55;
  /* paper grain */
  background-image: radial-gradient(rgba(33,29,22,0.035) 1px, transparent 1px);
  background-size: 5px 5px;
}

.mono {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  letter-spacing: 0.02em;
}

a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp); }

/* ---------- masthead ---------- */
header.masthead {
  border-bottom: 3px double var(--ink);
  padding: 1.1rem 1.5rem 0.9rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wordmark {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark .scope { font-style: italic; font-weight: 400; }
.wordmark { display: inline-block; }
.wordmark:hover { color: var(--ink); animation: squish 0.45s ease; }

.masthead-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--ink-soft);
}

nav.fieldnav {
  border-bottom: 1px solid var(--ink);
  padding: 0.55rem 1.5rem;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}
nav.fieldnav a { color: var(--ink); text-decoration: none; }
nav.fieldnav a:hover, nav.fieldnav a.here { color: var(--stamp); text-decoration: underline; }

/* ---------- layout ---------- */
.page { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem 4rem; }

.hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
/* one soft gummy blob behind the headline — flat color, low opacity */
.hero::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: -1rem;
  width: 19rem;
  height: 16rem;
  background: var(--gum-teal);
  opacity: 0.10;
  border-radius: 62% 38% 52% 48% / 45% 58% 42% 55%;
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero p.dek {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero .plate-no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.7rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--stamp); color: var(--paper); }
.btn:active, .picker .opt:active, .dispatch button:active { transform: scale(1.06, 0.88); }
.btn, .picker .opt, .dispatch button { transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); margin-left: 0.6rem; }
.btn.ghost:hover { border-color: var(--stamp); color: var(--stamp); }

section { padding: 2.8rem 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: none; }

h2.section-title {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.section-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--stamp);
  margin-bottom: 0.5rem;
}
.section-note { color: var(--ink-soft); max-width: 60ch; margin-bottom: 1.8rem; }

/* ---------- specimen cards ---------- */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}

.specimen {
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  border-left: 5px solid var(--gum, var(--gum-teal));
  padding: 1rem 1rem 1.1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
  transition: transform 0.15s ease;
}
/* gummy blob watermark, barely there */
.specimen::after {
  content: "";
  position: absolute;
  right: -2.2rem;
  bottom: -2.6rem;
  width: 8.5rem;
  height: 7.5rem;
  background: var(--gum, var(--gum-teal));
  opacity: 0.09;
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  pointer-events: none;
}
.specimen:hover { animation: squish 0.45s ease; }
.specimen:hover .rarity-stamp { animation: wobble 0.5s ease; }
.specimen:hover::after { opacity: 0.16; }
.specimen .cat-no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 0.4rem;
}
.specimen h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.specimen .field-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.specimen .field-line b { color: var(--ink); font-weight: 600; }
.specimen .notes { font-size: 0.88rem; font-style: italic; color: var(--ink-soft); }

.rarity-stamp {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.3rem;
  height: 2.3rem;
  border: 2px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  opacity: 0.9;
}

.specimen .buy-row { margin-top: auto; padding-top: 0.6rem; font-size: 0.8rem; font-family: 'IBM Plex Mono', monospace; }

/* ---------- The Examiner (AI judge) ---------- */
.examiner {
  border-top: 1px dashed var(--rule);
  margin-top: 0.4rem;
  padding-top: 0.6rem;
}
.ex-head { display: flex; justify-content: space-between; align-items: baseline; }
.ex-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--stamp);
  letter-spacing: 0.06em;
}
.ex-score {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.ex-score small { font-size: 0.65rem; color: var(--ink-soft); font-weight: 400; }
.ex-verdict {
  font-style: italic;
  font-size: 0.86rem;
  color: var(--ink);
  margin: 0.35rem 0 0.55rem;
}
.rubric { display: flex; flex-direction: column; gap: 0.22rem; }
.rubric-row { display: flex; align-items: center; gap: 0.45rem; }
.r-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--ink-soft);
  width: 3.2em;
}
.r-track { flex: 1; height: 5px; background: var(--rule); position: relative; border-radius: 3px; }
.r-fill { position: absolute; inset: 0 auto 0 0; background: var(--gum, var(--moss)); border-radius: 3px; }
.r-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--ink-soft);
  width: 1.4em;
  text-align: right;
}

.tier-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 2.2rem 0 1rem;
}
.tier-head .tier-letter {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tier-c, var(--stamp));
  border: 2px solid var(--tier-c, var(--stamp));
  padding: 0 0.55rem;
  transform: rotate(-3deg);
  border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; /* slightly squished frame */
}
.tier-head:hover .tier-letter { animation: wobble 0.5s ease; }
/* tier colors: S stays stamp-red (it's the grail), rest go gummy */
.tier-S { --tier-c: var(--stamp); }
.tier-A { --tier-c: var(--gum-tang); }
.tier-B { --tier-c: var(--gum-teal); }
.tier-C { --tier-c: var(--gum-grape); }
.tier-head .tier-name { font-size: 1.05rem; font-weight: 700; }
.tier-head .tier-gloss { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* ---------- field notes / prose ---------- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1rem; }
.prose h3 { margin: 1.8rem 0 0.6rem; font-size: 1.25rem; }
.prose .marker { background: var(--highlight); padding: 0 0.2em; }

.checklist { list-style: none; max-width: 68ch; }
.checklist li {
  padding: 0.75rem 0 0.75rem 2.2rem;
  border-bottom: 1px dashed var(--rule);
  position: relative;
}
.checklist li::before {
  content: attr(data-n);
  position: absolute;
  left: 0;
  top: 0.8rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--stamp);
  border: 1px solid var(--stamp);
  padding: 0.05rem 0.35rem;
}

/* ---------- ledger table ---------- */
table.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.ledger th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
  padding: 0.5rem 0.7rem 0.4rem 0;
}
table.ledger td { border-bottom: 1px solid var(--rule); padding: 0.65rem 0.7rem 0.65rem 0; vertical-align: top; }
table.ledger td:first-child { font-weight: 700; }

/* ---------- gift picker ---------- */
.picker {
  border: 1.5px solid var(--ink);
  background: var(--paper-deep);
  padding: 1.6rem;
  max-width: 620px;
}
.picker .q { font-weight: 700; margin-bottom: 0.7rem; }
.picker .opts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.3rem; }
.picker .opt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  padding: 0.45rem 0.8rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.picker .opt.on { background: var(--ink); color: var(--paper); }
.picker .verdict {
  border-top: 2px solid var(--ink);
  margin-top: 0.4rem;
  padding-top: 1rem;
  display: none;
}
.picker .verdict.show { display: block; }
.picker .verdict .v-name { font-size: 1.3rem; font-weight: 900; }
.picker .verdict .v-why { font-style: italic; color: var(--ink-soft); margin: 0.3rem 0 0.6rem; }

/* ---------- email capture ---------- */
.dispatch {
  background: var(--ink);
  color: var(--paper);
  padding: 2.2rem 1.6rem;
  margin: 1rem 0;
}
.dispatch h2 { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.02em; }
.dispatch p { color: #cfc7b2; margin: 0.5rem 0 1.2rem; max-width: 55ch; }
.dispatch form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.dispatch input[type="email"] {
  flex: 1 1 240px;
  padding: 0.7rem 0.9rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  border: 1.5px solid var(--paper);
  background: transparent;
  color: var(--paper);
}
.dispatch input::placeholder { color: #8f8875; }
.dispatch button {
  padding: 0.7rem 1.3rem;
  background: var(--paper);
  color: var(--ink);
  border: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
}
.dispatch button:hover { background: var(--highlight); }
.dispatch .fine { font-size: 0.72rem; color: #8f8875; margin-top: 0.7rem; }

/* ---------- footer ---------- */
footer {
  border-top: 3px double var(--ink);
  padding: 1.6rem 1.5rem 2.4rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
footer .disclosure { max-width: 78ch; margin-top: 0.6rem; }

@media (max-width: 640px) {
  .hero { padding-top: 2.4rem; }
  nav.fieldnav { gap: 1rem; }
}
