*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #f6f1e8;
  color: #1a1512;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

:root {
  --ink: #1a1512;
  --muted: #6b5e54;
  --cream: #f6f1e8;
  --cream-dark: #ebe4d6;
  --burgundy: #5c1a1a;
  --burgundy-deep: #3d1010;
  --gold: #c4a35a;
  --gold-soft: rgba(196,163,90,0.2);
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --border: rgba(26,21,18,0.12);
}

/* ——— BOOKSHELF SPINE NAV (unique) ——— */
.shelf {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 100vh;
}
.spines {
  background: var(--burgundy-deep);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 3px solid var(--gold);
}
.spines a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,241,232,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
  padding: 12px 0;
}
.spines a:last-child { border-bottom: none; }
.spines a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}
.spines a.active {
  color: var(--gold);
  background: var(--burgundy);
  box-shadow: inset 3px 0 0 var(--gold);
}

.main { min-width: 0; }

.mob-bar {
  display: none;
  background: var(--burgundy-deep);
  color: #fff;
  padding: 14px 18px;
  justify-content: space-between;
  align-items: center;
}
.mob-bar .logo {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.mob-bar button {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
}

/* ——— CAMPUS HERO ——— */
.campus {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 85vh;
}
.campus .text {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.campus .text .seal {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 14px;
}
.campus .text h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--burgundy-deep);
}
.campus .text p {
  font-family: var(--sans);
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.campus .photo {
  position: relative;
  min-height: 400px;
}
.campus .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.campus .photo::after {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(196,163,90,0.5);
  pointer-events: none;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-burg {
  background: var(--burgundy);
  color: #fff;
}
.btn-burg:hover { background: var(--burgundy-deep); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { filter: brightness(0.95); }
.btn-line {
  background: transparent;
  border: 1.5px solid var(--burgundy);
  color: var(--burgundy);
}
.btn-line:hover { background: var(--burgundy); color: #fff; }

/* ——— QUOTE ——— */
.quote {
  background: var(--burgundy);
  color: rgba(246,241,232,0.9);
  text-align: center;
  padding: 48px 32px;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-style: italic;
  line-height: 1.45;
}
.quote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 14px;
}

/* ——— SYLLABUS ——— */
.section {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 36px 64px;
}
.section .seal {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--burgundy-deep);
  margin-bottom: 28px;
}

.course {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.course .roman {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 400;
  padding-top: 2px;
}
.course h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--burgundy-deep);
}
.course p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ——— FACULTY ——— */
.faculty-top {
  padding: 48px 36px 24px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.faculty-top .seal {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
}
.faculty-top h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  font-weight: 400;
  color: var(--burgundy-deep);
  margin-bottom: 12px;
}
.faculty-top p {
  font-family: var(--sans);
  color: var(--muted);
}
.faculty-img {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 0 36px;
}
.faculty-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.faculty-prose {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 36px 64px;
}
.faculty-prose p {
  font-family: var(--sans);
  color: var(--muted);
  margin-bottom: 14px;
}

/* ——— REGISTRAR ——— */
.reg-wrap {
  max-width: 1000px;
  margin: 40px auto 70px;
  padding: 0 36px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
}
.reg-side {
  background: var(--burgundy-deep);
  color: rgba(246,241,232,0.7);
  padding: 36px;
}
.reg-side h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 24px;
}
.r-row { margin-bottom: 18px; }
.r-row .lbl {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.r-row p, .r-row a {
  font-family: var(--sans);
  font-size: 0.95rem;
}
.r-row a:hover { color: #fff; }

.reg-form {
  background: #fff;
  border: 1px solid var(--border);
  padding: 36px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ft {
  background: var(--burgundy-deep);
  color: rgba(246,241,232,0.5);
  text-align: center;
  padding: 28px;
  font-family: var(--sans);
  font-size: 0.84rem;
}
.ft strong { color: #fff; }

@media (max-width: 860px) {
  .shelf { grid-template-columns: 1fr; }
  .spines {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
  }
  .spines.open { display: flex; }
  .spines a {
    writing-mode: horizontal-tb;
    transform: none;
    flex: 0 0 auto;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.15);
  }
  .mob-bar { display: flex; }
  .campus { grid-template-columns: 1fr; }
  .campus .text { padding: 36px 24px; }
  .campus .photo { min-height: 260px; }
  .campus .photo::after { inset: 12px; }
  .reg-wrap { grid-template-columns: 1fr; padding: 0 20px; }
  .section { padding: 40px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .faculty-img img { height: 240px; }
}
