/* THE SKYHOLD LITERARY SOCIETY - Neocities Edition */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --ink: #121a28; /* The Navy Velvet Coat */
  --ink-panel: #1a2433; /* Slightly lighter navy */
  --gilt: #e0b950; /* The Spirit of Command Gold */
  --vellum: #e9dec5; /* Parchment */
  --oxblood: #843e43;
  
  --inscribe: "Cinzel", serif;
  --display: "Cormorant Garamond", serif;
  --body: "EB Garamond", serif;
}

body {
  background-color: var(--ink);
  color: var(--vellum);
  font-family: var(--body);
  margin: 0;
  padding: 0;
}

a {
  color: var(--gilt);
  text-decoration: none;
}

a:hover {
  color: var(--vellum);
}

/* =========================================
   THE GATE (Webforest Splash Page)
   ========================================= */
.gate-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  
  /* THE BACKGROUND: 
     If you find a moody forest or mountain image, upload it and put the name here.
     The 'rgba' part acts like a dark navy overlay so your text stays readable! */
  background: linear-gradient(rgba(18, 26, 40, 0.8), rgba(18, 26, 40, 0.9)), url('forest-bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--ink); /* Fallback if no image is found */
}

.gate-panel {
  position: relative; /* Crucial for making Corvin sit on the edge */
  background: rgba(26, 36, 51, 0.85); /* Semi-transparent navy box */
  border: 2px solid var(--gilt);
  border-radius: 15px; /* The soft Webforest corners */
  padding: 40px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(3px); /* Gives it that frosty glass look */
  margin: 20px;
}

/* THE CORVIN PLACEMENT (Bottom Left Perch) */
.gate-mascot {
  position: absolute;
  bottom: -20px;  /* Moves him down so he "sits" on the bottom border */
  left: -90px;    /* Pulls him out to the left so he overlaps the edge */
  width: 220px; 
  pointer-events: none; 
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
  z-index: 10;    /* Ensures he pops in front of the box */
}

.wordmark {
  font-family: var(--inscribe);
  color: var(--gilt);
  font-size: 2.2rem;
  margin: 0 0 15px 0;
  line-height: 1.1;
}

.intro {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.gate-notes {
  font-size: 1rem;
  color: #9590a4; /* Dimmer text for the notes */
  margin-bottom: 20px;
  line-height: 1.6;
}

.gate-notes b {
  color: var(--oxblood); /* Red highlight for explicit warning */
}

.gate-status {
  font-size: 0.9rem;
  color: var(--gilt);
  margin-bottom: 25px;
  letter-spacing: 0.05em;
}

.gate-enter {
  display: inline-block;
  font-family: var(--body);
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}

.gate-enter:hover {
  color: var(--gilt);
  border-bottom: 1px solid var(--gilt);
}

/* =========================================
   THE HUB (Layout)
   ========================================= */
.hub-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.sidebar {
  width: 300px;
  background: var(--ink-panel);
  border-right: 1px solid var(--gilt);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.brand {
  font-family: var(--inscribe);
  font-size: 1.5rem;
  color: var(--gilt);
  text-align: center;
  margin-bottom: 40px;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin-bottom: 20px;
}

.nav-links a {
  font-family: var(--display);
  font-size: 1.4rem;
  display: block;
  border-bottom: 1px dotted var(--gilt);
  padding-bottom: 5px;
}

.content-window {
  flex-grow: 1; /* Takes up the rest of the screen */
  height: 100vh;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================
   INNER PAGES (e.g. Syllabus, Roster)
   ========================================= */
/* Just wrap your page content in a div class="inner-page" */
.inner-page {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}


/* =========================================
   THE SYLLABUS (Specimen Cards)
   ========================================= */
.page-head {
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--gilt);
  margin-bottom: 5px;
  font-weight: bold;
}

.page-head h1 {
  font-family: var(--inscribe);
  font-size: 2.8rem;
  color: var(--vellum);
  margin: 0 0 10px 0;
}

.plate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  padding-bottom: 50px;
}

.plate {
  background: var(--vellum); /* Parchment cards */
  color: #2a2336; /* Dark ink text for readability on parchment */
  border: 1px solid var(--gilt);
  border-radius: 4px;
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.plate:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  border-color: #f0c758; /* Brighter gold on hover */
}

/* Image box inside the card */
.img-box {
  width: 100%;
  aspect-ratio: 4 / 5; /* Keeps all moodboards identical sizes */
  background: var(--ink-panel);
  overflow: hidden;
  border: 1px solid rgba(42,35,54,0.25);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Graceful placeholder for missing moodboards */
.img-box.empty span {
  font-family: var(--body);
  font-style: italic;
  color: #9590a4;
  font-size: 0.95rem;
}

.plate-text {
  text-align: center;
  padding: 0 10px 10px 10px;
}

.plate .code {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--oxblood);
  font-weight: bold;
  margin: 0;
}

.plate .name {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 5px 0;
  color: #121a28;
}

.plate .quote {
  font-style: italic;
  color: var(--oxblood);
  font-size: 1rem;
  margin-bottom: 15px;
}

.plate .read {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--oxblood);
  border-bottom: 1px solid var(--gilt);
  font-weight: bold;
}

.plate .read:hover {
  color: #121a28;
}

/* =========================================
   SIDEBAR ART (Taming the Sword)
   ========================================= */
.sidebar-art {
  margin-top: auto; /* This magically pushes the image to the bottom of the sidebar! */
  text-align: center;
  padding-top: 30px;
}

.sidebar-art img {
  max-width: 140px; /* Constrains the giant sword to fit the menu nicely */
  height: auto;
  opacity: 0.85; /* Softens it slightly so it blends with the velvet */
  filter: drop-shadow(0 0 10px rgba(224,185,80,0.15)); /* Tiny gold glow */
}

/* =========================================
   CORRESPONDENCE (Physical Letters)
   ========================================= */
.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0 50px 0;
}

.letter {
  background: #f2e9d4; /* Lighter, warmer paper */
  color: #2a2336;
  padding: 30px 25px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 3px double rgba(132,62,67,0.3); /* Aged top edge */
}

/* Subtle tilts to make them look scattered on a desk */
.tilt-left { transform: rotate(-1.5deg); }
.tilt-right { transform: rotate(1.5deg); }

.letter:hover {
  transform: rotate(0) translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
  z-index: 5;
}

/* The Wax Seal */
.letter .seal {
  position: absolute;
  top: -15px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--oxblood), #5c2a2e);
  color: var(--gilt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: italic;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.letter .from {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--oxblood);
  font-weight: bold;
  border-bottom: 1px solid rgba(132,62,67,0.2);
  padding-bottom: 5px;
  margin-top: 0;
}

.letter .body {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 15px 0;
}

.letter .meta {
  font-size: 0.85rem;
  color: #6a5d50;
  text-align: right;
  margin: 0;
}

/* Letter Links */
.letter-link {
  display: inline-block;
  margin-top: 15px;
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--oxblood);
  border-bottom: 1px solid rgba(132,62,67,0.4);
  transition: 0.2s;
}

.letter-link:hover {
  color: #121a28;
  border-bottom-color: #121a28;
}
