:root {
  --paper: #fffaf0;
  --paper-deep: #f6ecd8;
  --ink: #2f261f;
  --muted: #766553;
  --brown: #6a4426;
  --brown-dark: #412819;
  --ochre: #d79a2b;
  --gold: #f2c05c;
  --blue: #27435f;
  --blue-soft: #dceaf0;
  --green: #7d9466;
  --rose: #c9735c;
  --white: #fffdf8;
  --shadow: 0 22px 60px rgba(75, 50, 28, 0.16);
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(242, 192, 92, 0.22), transparent 32rem),
    radial-gradient(circle at 90% 18%, rgba(220, 234, 240, 0.65), transparent 28rem),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 48%, #f8efdf 100%);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(90deg, rgba(106, 68, 38, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(106, 68, 38, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

a {
  color: inherit;
}

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

.site-shell {
  overflow: hidden;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(106, 68, 38, 0.14);
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brown-dark);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 4px rgba(65, 40, 25, 0.16));
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(215, 154, 43, 0.16);
  color: var(--brown-dark);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5rem 0;
}

.hero {
  position: relative;
  min-height: calc(78vh - 64px);
  display: grid;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2.5rem 0 1.25rem;
}

.hero::after {
  position: absolute;
  right: min(7vw, 5rem);
  bottom: 0.5rem;
  width: min(180px, 24vw);
  aspect-ratio: 1;
  background: url("images/decor/paw-prints.png") center / contain no-repeat;
  content: "";
  opacity: 0.32;
  transform: rotate(-16deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-grid > *,
.split > *,
.coming-grid > *,
.release-panel > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.4rem;
  height: 2px;
  background: var(--ochre);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brown-dark);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 11vw, 8.8rem);
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 6vw, 5.6rem);
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.lede {
  max-width: 640px;
  margin: 1.4rem 0 0;
  color: #4a382b;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(106, 68, 38, 0.22);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--brown-dark);
  color: #fff8e8;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(65, 40, 25, 0.18);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.72);
  color: var(--brown-dark);
  box-shadow: none;
}

.button:hover {
  transform: translateY(-1px);
}

.hero-art {
  position: relative;
  min-height: 540px;
}

.brush-panel {
  position: absolute;
  inset: 7% 0 3% 12%;
  border-radius: 48% 44% 42% 50%;
  background:
    radial-gradient(circle at 20% 22%, rgba(242, 192, 92, 0.42), transparent 28%),
    radial-gradient(circle at 72% 64%, rgba(220, 234, 240, 0.7), transparent 32%),
    #fffdf8;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.hero-art img {
  position: absolute;
  inset: auto 2% 0 auto;
  width: min(520px, 100%);
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(78, 49, 28, 0.16));
}

.ribbon-note {
  position: absolute;
  right: 0;
  bottom: 1rem;
  width: min(300px, 74%);
  border: 1px solid rgba(106, 68, 38, 0.18);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 12px 30px rgba(75, 50, 28, 0.12);
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.25;
}

.evidence-tape {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 620px;
  margin-top: 2rem;
}

.evidence-chip {
  display: flex;
  align-items: center;
  min-height: 70px;
  gap: 0.7rem;
  border: 1px solid rgba(106, 68, 38, 0.14);
  border-radius: var(--radius);
  padding: 0.65rem;
  background: rgba(255, 253, 248, 0.76);
  color: var(--muted);
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(75, 50, 28, 0.08);
}

.evidence-chip img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.intro-band {
  background: rgba(255, 253, 248, 0.7);
  border-block: 1px solid rgba(106, 68, 38, 0.1);
}

.intro-band .section {
  padding-top: 3rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 1.12fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.portrait {
  position: relative;
}

.portrait::before {
  position: absolute;
  inset: 8% -2% -4% 9%;
  z-index: -1;
  border-radius: 42% 52% 46% 48%;
  background: rgba(242, 192, 92, 0.24);
  content: "";
}

.quote {
  border-left: 4px solid var(--ochre);
  margin: 2rem 0 0;
  padding-left: 1rem;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.25;
}

.escape-note {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(106, 68, 38, 0.16);
  border-radius: var(--radius);
  margin-top: 2rem;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(242, 192, 92, 0.22), transparent),
    rgba(255, 253, 248, 0.86);
  box-shadow: 0 16px 36px rgba(75, 50, 28, 0.1);
}

.escape-note::after {
  position: absolute;
  right: -1rem;
  bottom: -2rem;
  width: 140px;
  aspect-ratio: 1;
  background: url("images/decor/red-dot.png") center / contain no-repeat;
  content: "";
  opacity: 0.5;
}

.escape-note p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.evidence-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(106, 68, 38, 0.15);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 16px 38px rgba(75, 50, 28, 0.09);
}

.evidence-card img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 0 0.75rem auto;
  mix-blend-mode: multiply;
}

.evidence-card h3 {
  max-width: 11ch;
}

.evidence-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.stamp {
  display: inline-flex;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(201, 115, 92, 0.45);
  border-radius: 4px;
  padding: 0.22rem 0.45rem;
  color: var(--rose);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.feature-card,
.story-card,
.character-card,
.profile-card {
  overflow: hidden;
  border: 1px solid rgba(106, 68, 38, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 16px 38px rgba(75, 50, 28, 0.09);
}

.story-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  text-decoration: none;
}

.story-card img,
.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 66%;
  background: #fff;
}

.story-card:nth-child(2) img {
  object-position: center 28%;
}

.story-card-body,
.feature-card-body,
.character-card {
  padding: 1.2rem;
}

.meta {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-card p,
.feature-card p,
.character-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.coming-grid {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 1rem;
}

.release-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.64fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  border: 1px solid rgba(106, 68, 38, 0.15);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: rgba(255, 253, 248, 0.82);
}

.release-panel img {
  border-radius: var(--radius);
  box-shadow: 0 18px 34px rgba(75, 50, 28, 0.15);
}

.status-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ochre);
  box-shadow: 0 0 0 5px rgba(215, 154, 43, 0.14);
}

.characters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.character-card {
  min-height: 100%;
}

.character-card {
  background:
    linear-gradient(135deg, rgba(242, 192, 92, 0.12), transparent 45%),
    rgba(255, 253, 248, 0.86);
}

.character-card strong {
  display: block;
  color: var(--brown-dark);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.05;
}

.profile-list {
  display: grid;
  gap: 1.1rem;
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 0.64fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
}

.profile-card::before {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(201, 115, 92, 0.35);
  border-radius: 4px;
  padding: 0.18rem 0.42rem;
  color: rgba(201, 115, 92, 0.82);
  content: "FILED";
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(3deg);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
  background: var(--white);
}

.profile-card:nth-child(1) img,
.profile-card:nth-child(3) img {
  object-position: center 70%;
}

.profile-card h2 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.profile-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(106, 68, 38, 0.14);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background:
    linear-gradient(135deg, rgba(39, 67, 95, 0.08), transparent),
    rgba(255, 253, 248, 0.86);
}

.signup-form {
  display: flex;
  gap: 0.6rem;
}

.signup-form input {
  width: min(280px, 48vw);
  min-height: 46px;
  border: 1px solid rgba(106, 68, 38, 0.22);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.mock-note {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  color: var(--green);
  font-weight: 800;
}

.footer {
  border-top: 1px solid rgba(106, 68, 38, 0.14);
  padding: 2rem 0;
  color: var(--muted);
  text-align: center;
}

.page-hero {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5rem 0 3rem;
}

.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 9vw, 7rem);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.article {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.article-hero {
  overflow: hidden;
  border: 1px solid rgba(106, 68, 38, 0.14);
  border-radius: var(--radius);
  margin: 2rem 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-hero img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center 62%;
}

.article-audio {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(260px, 0.58fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(106, 68, 38, 0.14);
  border-radius: var(--radius);
  margin: 0 0 1.4rem;
  padding: 1rem;
  background: rgba(220, 234, 240, 0.72);
  box-shadow: 0 14px 34px rgba(75, 50, 28, 0.08);
}

.article-audio audio {
  width: 100%;
  min-width: 0;
}

.audio-label {
  margin: 0;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audio-title {
  margin: 0.2rem 0 0;
  color: var(--brown-dark);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.article-body {
  border: 1px solid rgba(106, 68, 38, 0.14);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 4vw, 2.6rem);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 18px 44px rgba(75, 50, 28, 0.08);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.8;
}

.article-body p {
  margin: 0 0 1.3rem;
}

.article-body .part {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.pending-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 2rem;
}

.pending-item {
  border: 1px dashed rgba(106, 68, 38, 0.24);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: rgba(255, 253, 248, 0.58);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 880px) {
  .hero {
    min-height: auto;
    padding: 2rem 0 1rem;
  }

  .hero-grid,
  .split,
  .coming-grid,
  .release-panel,
  .signup {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 320px;
  }

  .hero-art img {
    right: 0;
    left: 0;
    margin: auto;
    max-height: 330px;
  }

  .card-grid,
  .archive-grid,
  .characters,
  .evidence-grid,
  .pending-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 1rem;
  }
}

@media (max-width: 620px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 0.1rem;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .nav-links a {
    padding: 0.36rem 0.28rem;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.55rem);
    max-width: 8.5ch;
  }

  .button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .lede,
  .hero-actions,
  .button-row {
    max-width: 100%;
  }

  .hero-art {
    min-height: 120px;
  }

  .hero-art img {
    max-height: 145px;
  }

  .intro-band .section {
    padding-top: 2rem;
  }

  .ribbon-note {
    display: none;
  }

  .card-grid,
  .archive-grid,
  .characters,
  .evidence-grid,
  .pending-list,
  .profile-card {
    grid-template-columns: 1fr;
  }

  .article-audio {
    grid-template-columns: 1fr;
  }

  .evidence-tape {
    display: none;
  }

  .evidence-card img {
    width: 92px;
    height: 92px;
    margin-inline: auto;
  }

  .evidence-card h3 {
    max-width: none;
  }

  .signup-form {
    align-items: stretch;
    flex-direction: column;
  }

  .signup-form input {
    width: 100%;
  }
}

/* Pagination (Journal feed: /journal/page2/, ...) */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
}

.pagination .page-numbers a,
.pagination .page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.55rem;
  border: 1px solid rgba(106, 68, 38, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--brown-dark);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.pagination .page-numbers a:hover {
  background: rgba(215, 154, 43, 0.16);
}

.pagination .page-current {
  background: var(--brown-dark);
  color: #fff8e8;
  border-color: var(--brown-dark);
}

.pagination .button[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 620px) {
  .pagination {
    flex-direction: column;
  }
}
