:root {
  --paper: #eef3f1;
  --paper-soft: #f6f9f8;
  --surface: #ffffff;
  --ink: #15201c;
  --ink-soft: #55665f;
  --ink-muted: #61736b;
  --jade: #1f6f5e;
  --jade-deep: #154f43;
  --jade-bright: #2d8a75;
  --vermillion: #c0453a;
  --line: rgba(21, 32, 28, 0.11);
  --display: "Fraunces", "Noto Serif SC", Georgia, serif;
  --body: "Source Serif 4", "Noto Serif SC", Georgia, serif;
}

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

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.hub-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px clamp(20px, 5vw, 76px) 38px;
  background:
    radial-gradient(circle at 88% 8%, rgba(31, 111, 94, 0.13), transparent 28rem),
    radial-gradient(circle at 4% 96%, rgba(192, 69, 58, 0.055), transparent 25rem),
    var(--paper);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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='.28'/%3E%3C/svg%3E");
}

.ambient {
  position: absolute;
  border: 1px solid rgba(31, 111, 94, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.ambient-one {
  width: 360px;
  height: 360px;
  top: -250px;
  right: 8%;
}

.ambient-two {
  width: 220px;
  height: 220px;
  bottom: -145px;
  left: 13%;
}

.hub-header,
.hero,
.learning-gates,
.hub-footer {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(192, 69, 58, 0.16);
  background: #f6f1e7;
  box-shadow: 0 10px 26px rgba(88, 44, 35, 0.12);
}

.brand-seal {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-copy small,
.year-note,
.eyebrow,
.card-kind,
.card-kicker {
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.brand-copy small {
  margin-top: 3px;
}

.year-note {
  letter-spacing: 0.08em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  align-items: end;
  gap: 36px;
  padding: clamp(52px, 8vh, 92px) 0 clamp(38px, 6vh, 62px);
}

.eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -18px;
  color: var(--jade);
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6.7vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 span {
  color: var(--jade);
}

.hero-lead {
  max-width: 25rem;
  margin: 0 0 0.35rem;
  padding-left: 20px;
  border-left: 2px solid var(--vermillion);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.learning-gates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.learning-card {
  position: relative;
  display: flex;
  min-height: 395px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(24px, 3.3vw, 42px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(21, 32, 28, 0.045);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.learning-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--jade);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}

.learning-card:hover,
.learning-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(31, 111, 94, 0.28);
  box-shadow: 0 22px 54px rgba(21, 79, 67, 0.1);
  outline: none;
}

.learning-card:hover::after,
.learning-card:focus-visible::after {
  transform: scaleX(1);
}

.vocab-card {
  background: linear-gradient(148deg, #ffffff 0%, #f1f7f4 100%);
}

.vocab-card::after {
  background: var(--vermillion);
}

.card-watermark {
  position: absolute;
  top: 18px;
  right: 28px;
  color: rgba(31, 111, 94, 0.055);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(7rem, 14vw, 12rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.vocab-card .card-watermark {
  color: rgba(192, 69, 58, 0.045);
}

.card-topline,
.card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.card-topline {
  justify-content: space-between;
}

.card-index {
  color: var(--jade);
  font-family: var(--display);
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.vocab-card .card-index {
  color: var(--vermillion);
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 31rem;
  flex-direction: column;
}

.card-kicker {
  margin-bottom: 12px;
  color: var(--jade);
  letter-spacing: 0.08em;
}

.vocab-card .card-kicker {
  color: var(--vermillion);
}

.card-content strong {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.card-description {
  max-width: 29rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.75;
}

.card-meta {
  gap: 16px;
  color: var(--ink-muted);
  font-size: 0.76rem;
}

.card-meta > span:not(.card-action) + span:not(.card-action)::before {
  margin-right: 16px;
  color: var(--line);
  content: "·";
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--jade-deep);
  font-weight: 600;
}

.vocab-card .card-action {
  color: var(--vermillion);
}

.card-action b {
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.learning-card:hover .card-action b {
  transform: translateX(4px);
}

.hub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 34px;
  color: var(--ink-muted);
}

.hub-footer p,
.hub-footer span {
  margin: 0;
  font-size: 0.78rem;
}

.hub-footer p {
  font-style: italic;
}

/* The generated editorial cover is the actual learning gateway. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hub-header,
.visual-entry,
.hub-footer {
  width: min(1440px, 100%);
}

.visual-entry {
  position: relative;
  z-index: 2;
  margin: clamp(24px, 4vh, 48px) auto 0;
}

.cover-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1746 / 909;
  border: 1px solid rgba(21, 32, 28, 0.12);
  border-radius: 14px;
  background: #f6f1e7;
  box-shadow: 0 24px 62px rgba(21, 32, 28, 0.12);
  animation: coverReveal 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cover-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-hotspot {
  position: absolute;
  top: 62.15%;
  width: 20.25%;
  height: 10.4%;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.grammar-hotspot {
  left: 11.8%;
}

.vocabulary-hotspot {
  left: 36.55%;
}

.entry-hotspot:hover,
.entry-hotspot:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--vermillion), 0 12px 28px rgba(21, 32, 28, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.entry-hint {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.mobile-entry-actions {
  display: none;
}

@keyframes coverReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 820px) {
  .hub-shell {
    padding-inline: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 54px 36px;
  }

  .eyebrow {
    margin-bottom: -8px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .hero-lead {
    max-width: 33rem;
  }

  .learning-gates {
    grid-template-columns: 1fr;
  }

  .learning-card {
    min-height: 350px;
  }

  .visual-entry {
    margin-top: 20px;
  }

  .cover-frame {
    border-radius: 10px;
  }
}

@media (max-width: 520px) {
  .year-note {
    display: none;
  }

  .hub-header {
    padding-bottom: 18px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    letter-spacing: -0.045em;
  }

  .learning-card {
    min-height: 365px;
    padding: 24px;
  }

  .card-kind {
    max-width: 11rem;
    text-align: right;
  }

  .card-meta {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .card-action {
    width: 100%;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .hub-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .entry-hotspot,
  .entry-hint {
    display: none;
  }

  .mobile-entry-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
  }

  .mobile-entry-actions a {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 22px rgba(21, 32, 28, 0.05);
  }

  .mobile-entry-actions a > span {
    display: grid;
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 9px;
    background: var(--jade);
    color: white;
    font-family: var(--display);
    font-size: 1.15rem;
  }

  .mobile-entry-actions strong {
    font-family: var(--display);
    font-size: 1rem;
  }

  .mobile-entry-actions small {
    color: var(--ink-muted);
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
