:root {
  --accent: #F2600A;
  --paper: #FBF3E4;
  --ink: #1C1A17;
  --ink-soft: #4A463E;
  --ink-mute: #6B6558;
  --brand-red: #C8102E;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

a { color: var(--ink); text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

/* Top banner */
.top-banner {
  width: 100%;
  height: 44px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #3A2518 0%, #8A5A3B 50%, #C79A5B 100%);
}
.top-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,10,5,0.6), rgba(20,10,5,0.2));
}
.top-banner__inner {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--white);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
}
.site-header__logo {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.04em;
  color: var(--brand-red);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
}
.cta-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Hero */
.hero { padding: 8px 0 28px; }
.hero__frame {
  display: flex;
  flex-wrap: wrap;
  border: 3px solid var(--accent);
}
.hero__intro {
  flex: 1 1 440px;
  min-width: 0;
  position: relative;
  color: var(--white);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(20,10,5,0.5), rgba(20,10,5,0.5)),
    linear-gradient(155deg, #5B4432 0%, #8A5A3B 45%, #C79A5B 68%, #2E1D10 100%);
}
.hero__eyebrow {
  margin: 0 0 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #FFC79A;
}
.hero__title {
  margin: 0 0 20px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.4;
  color: var(--white);
}
.hero__lead {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.9;
  color: #FFEDE0;
  max-width: 32em;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 13px 26px;
  background: var(--white);
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 13px;
}
.hero__media { flex: 1 1 380px; min-width: 0; }
.hero__photo {
  width: 100%;
  aspect-ratio: 16 / 12;
  background: linear-gradient(155deg, #5B4432 0%, #9C6F42 45%, #C79A5B 68%, #44301F 100%);
  border-bottom: 3px solid var(--accent);
}
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px clamp(20px, 2.4vw, 28px) 22px;
}
.hero__diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.hero__diagram-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero__diagram-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.hero__diagram-vs {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.hero__meta-text { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-tag {
  margin: 0;
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--accent);
  padding: 3px 9px;
  width: fit-content;
}
.hero__meta-title { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.hero__meta-link {
  align-self: flex-start;
  margin-top: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* Table of contents divider */
.toc-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 20px;
}
.toc-divider__line { height: 2px; flex: 1; background: var(--accent); opacity: 0.4; }
.toc-divider__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

/* Content grid / cards */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px 20px;
}
.card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--accent);
}
.card__media { position: relative; }
.card__badge {
  position: absolute;
  top: -16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--white);
}
.card__body {
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__eyebrow {
  margin: 0 0 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}
.card__title {
  margin: 0 0 6px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 19px;
}
.card__desc { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); flex: 1; }
.card__link {
  align-self: flex-start;
  margin-top: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* Card media variants */
.card__quiz-grid {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  background: var(--accent);
}
.quiz-cell { display: flex; align-items: center; justify-content: center; }
.quiz-cell--a { background: #FFD9B0; }
.quiz-cell--b { background: #FFC48A; }
.quiz-cell--c { background: var(--white); }
.quiz-cell--d { background: #FFAE63; }

.card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.card__photo--video {
  background: linear-gradient(160deg, #4a3324 0%, #8a5a3b 55%, #3a2518 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__photo--sepia {
  background: linear-gradient(155deg, #2E2A24 0%, #6B6558 45%, #B8AF9C 75%, #3A362F 100%);
  filter: grayscale(1) sepia(0.25) contrast(1.05);
}

.card__icon-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__icon-box--character { background: #FFE4C7; }
.card__icon-box--notebook { background: #FFEDDD; }

/* Observations */
.observations { margin-top: 32px; }
.observations__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.observations__label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}
.observations__dot { width: 9px; height: 9px; background: var(--accent); display: inline-block; }
.observations__title {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
}
.observations__grid { display: flex; flex-wrap: wrap; gap: 16px; }
.observation { flex: 1 1 260px; min-width: 0; }
.observation__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--accent);
}
.observation__media--a { background: linear-gradient(150deg, #4A3324 0%, #8A5A3B 50%, #3A2518 100%); }
.observation__media--b { background: linear-gradient(150deg, #6B4228 0%, #C9893F 55%, #5C3A22 100%); }
.observation__media--c { background: linear-gradient(150deg, #8a5a3b 0%, #c98a4b 45%, #44301F 100%); }
.observation__caption { margin: 8px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-mute); }

/* Footer */
.site-footer {
  position: relative;
  color: var(--white);
  margin-top: 36px;
  border-top: 3px solid var(--accent);
  background:
    linear-gradient(rgba(20,10,5,0.72), rgba(20,10,5,0.72)),
    linear-gradient(150deg, #4A3324 0%, #8A5A3B 55%, #2E1D10 100%);
}
.site-footer__inner {
  padding: 26px clamp(16px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.site-footer__brand { margin: 0 0 4px; font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 15px; }
.site-footer__sub { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #FFD9B0; }
.footer-nav { display: flex; gap: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.footer-nav a { color: var(--white); }
.site-footer__copy { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #FFD9B0; width: 100%; }
