/* ============================================================
   OZ STUDY GATEWAY — The Entry Point
   Aesthetic: warm vellum / library manuscript card
   Distinct from all three guides but harmonious with each.
   ============================================================ */

:root {
  --vellum: #f7f1e3;
  --vellum-dark: #ebe0c8;
  --ink: #2c1810;
  --ink-soft: #5a3e2b;
  --gold: #b8860b;
  --gold-dark: #8b6914;
  --emerald: #1a5c3a;
  --magenta: #8b2252;
  --blueprint: #1b3a5c;
  --rule: #c4a96a;
  --rule-soft: #d4c4a0;
  --card-bg: #fefaf0;
}

/* Dark mode */
body.twilight {
  --vellum: #1a1510;
  --vellum-dark: #241d15;
  --ink: #e8dcc8;
  --ink-soft: #c4a96a;
  --gold: #d4a843;
  --gold-dark: #b8860b;
  --rule: #5a4a2a;
  --rule-soft: #3d3325;
  --card-bg: #241d15;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--vellum);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* subtle paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 10%, rgba(180,140,60,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(120,80,30,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- header --- */
header {
  border-bottom: 2px double var(--rule);
}

.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: saturate(0.8) contrast(1.05) brightness(0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-overlay h1 {
  font-size: 2.2rem;
  font-weight: normal;
  letter-spacing: 0.15em;
  color: #f7f1e3;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.hero-overlay .subtitle {
  font-size: 1.15rem;
  font-style: italic;
  color: #e8dcc8;
  max-width: 580px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.hero-overlay .ornament {
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 1.5rem;
  margin: 0.75rem 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.theme-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--vellum-dark);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.4rem 1rem;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}
.theme-toggle:hover { background: var(--gold); color: var(--vellum); }

/* --- intro --- */
.intro {
  padding: 2.5rem 0;
  text-align: center;
}

.intro .lede {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.intro .how-it-works {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 620px;
  text-align: left;
}

.intro .how-it-works h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.intro .how-it-works ol {
  padding-left: 1.2rem;
}

.intro .how-it-works li {
  margin-bottom: 0.4rem;
}

/* --- hero image --- */
.hero-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 3px;
  border: 1px solid var(--rule);
  margin: 1rem 0 0;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

/* --- the journey path --- */
.journey {
  padding: 1rem 0 3rem;
}

.journey-label {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

/* station cards */
.station {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
  display: grid;
  grid-template-columns: 200px 1fr;
}

.station:hover {
  box-shadow: 0 6px 30px rgba(0,0,0,0.25);
  transform: translateY(-3px);
}

.station a {
  display: contents;
  text-decoration: none;
  color: inherit;
}

/* station accent strip */
.station .accent-strip {
  height: 6px;
  width: 100%;
  grid-column: 1 / -1;
}

.station-image {
  grid-row: 2;
  overflow: hidden;
}

.station-image img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
  transition: transform 0.4s;
}

.station:hover .station-image img {
  transform: scale(1.05);
}

.station-body {
  padding: 1.5rem 2rem;
  grid-row: 2;
}

.station-number {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
}

.station h2 {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 0.3rem;
}

.station .station-subtitle {
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.station .description {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.65;
}

.station .description strong {
  color: var(--ink);
}

.station .port-badge {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  background: var(--vellum-dark);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  margin-top: 1rem;
  color: var(--ink-soft);
}

/* connector between stations */
.connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0;
}

.connector .arrow {
  font-size: 1.8rem;
  color: var(--gold);
}

.connector .label {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 400px;
  text-align: center;
  padding: 0 1rem;
}

.connector-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--rule);
  margin: 0 0.5rem;
  filter: saturate(0.8);
}

.connector-with-image {
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0;
}

.connector-images {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

/* --- station accent colors --- */
.station-source .accent-strip { background: linear-gradient(90deg, #c4a26a, #8b6914); }
.station-source .station-number { color: #8b6914; }

.station-artwork .accent-strip { background: linear-gradient(90deg, #1a5c3a, #8b2252, #b8860b); }
.station-artwork .station-number { color: #8b2252; }

.station-process .accent-strip { background: linear-gradient(90deg, #1b3a5c, #3d6ba3); }
.station-process .station-number { color: #1b3a5c; }

/* NAUGHTY station: ember/crimson parallel-study accent */
.station-naughty {
  border-left: 6px solid #b8202a;
}
.station-naughty .accent-strip {
  background: linear-gradient(90deg, #b8202a, #d97825, #f4b642);
}
.station-naughty .station-number { color: #b8202a; }
.station-naughty h2 {
  font-family: 'Iowan Old Style', 'Hoefler Text', 'Garamond', 'Georgia', serif;
  letter-spacing: 0.08em;
}

/* Parallel-study separator between main stations and NAUGHTY */
.station-divider {
  text-align: center;
  padding: 1.5rem 0;
  margin: 1rem 0;
}
.divider-ornament {
  display: inline-block;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.5em;
  margin: 0 0.5rem;
}
.divider-text {
  display: inline-block;
  font-style: italic;
  color: var(--ink-faint);
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

/* --- finale --- */
.finale {
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 3px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}

.finale h2 {
  font-size: 1.6rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.finale .finale-subtitle {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.finale p {
  max-width: 600px;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
}

.finale .enter-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2.5rem;
  background: var(--gold);
  color: var(--vellum);
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  border-radius: 2px;
  border: 1px solid var(--gold-dark);
  transition: background 0.2s;
}

.finale .enter-btn:hover {
  background: var(--gold-dark);
}

/* --- footer --- */
footer {
  text-align: center;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

footer a {
  color: var(--gold-dark);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* --- quick links bar --- */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  margin: 2rem 0;
}

.quick-links a {
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  transition: all 0.2s;
}

.quick-links a:hover {
  background: var(--vellum-dark);
  border-color: var(--rule);
}

/* --- responsive --- */
@media (max-width: 640px) {
  header h1 { font-size: 1.5rem; }
  .hero-image { height: 180px; }
  .station { grid-template-columns: 1fr; }
  .station-image { grid-row: 2; }
  .station-body { grid-row: 3; padding: 1.25rem; }
  .station-image img { min-height: 160px; max-height: 200px; }
  .station h2 { font-size: 1.25rem; }
  .finale { padding: 1.5rem; }
  .connector .label { display: none; }
  .connector-thumb { width: 60px; height: 60px; }
  .quick-links { flex-direction: column; align-items: center; }
  body { font-size: 16px; }
}
