@font-face { font-family: "Libre Baskerville"; src: url("../fonts/LibreBaskerville-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/LibreBaskerville-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/LibreBaskerville-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f4ead8;
  --paper-2: #ebdec6;
  --ink: #2a1913;
  --muted: #6b574b;
  --maroon: #6e111c;
  --maroon-2: #4e0a13;
  --gold: #a67a2a;
  --rule: rgba(42, 25, 19, .25);
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --display: "Abhaya Libre", "Libre Baskerville", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--maroon); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; color: var(--muted); }

.label {
  font: 700 .72rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .7em;
}

/* Buttons: flat, square, printed */
.btn {
  display: inline-block;
  font: 700 .82rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--maroon);
  border: 1.5px solid var(--maroon);
  padding: 13px 20px;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--maroon); color: var(--paper); }
.btn-solid { background: var(--maroon); color: var(--paper); }
.btn-solid:hover { background: var(--maroon-2); border-color: var(--maroon-2); }

/* Masthead */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.crest-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.crest-link img { width: 44px; height: 44px; }
.crest-link span { font-family: var(--serif); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.crest-link i { font-weight: 400; color: var(--maroon); }
.masthead nav { display: flex; gap: 26px; margin-left: auto; }
.masthead nav a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.masthead nav a:hover { color: var(--maroon); text-decoration: underline; }
.masthead .btn { padding: 10px 16px; }
@media (max-width: 780px) {
  .masthead nav { display: none; }
  .masthead .btn { margin-left: auto; }
}

/* Hero */
.hero { background: var(--maroon); color: var(--paper); }
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 40px);
}
.hero .label { color: #d9b56a; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.015em; margin-bottom: 18px; }
.hero-lede { font-size: 1.08rem; max-width: 34em; opacity: .92; }
.hero-lede b { font-family: var(--serif); }
.facts { list-style: none; margin: 22px 0 26px; padding: 0; border-top: 1px solid rgba(244,234,216,.25); }
.facts li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(244,234,216,.25); font-size: .98rem; }
.facts span { font: 700 .72rem/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #d9b56a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-solid { background: var(--paper); color: var(--maroon); border-color: var(--paper); }
.hero .btn-solid:hover { background: transparent; color: var(--paper); }
.btn-line { color: var(--paper); border-color: rgba(244,234,216,.6); }
.btn-line:hover { background: var(--paper); color: var(--maroon); }
.hero .countdown { margin: 16px 0 0; font-size: .88rem; opacity: .8; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; margin: -36px -16px 0; }
  .hero-figure img { aspect-ratio: 16 / 11; box-shadow: none; }
}

/* Notice strip */
.notice { background: var(--maroon); color: var(--paper); }
.notice-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr) auto;
}
.notice-grid > div { padding: 28px clamp(16px, 2.5vw, 30px); border-left: 1px solid rgba(244, 234, 216, .2); }
.notice-grid > div:first-child { border-left: 0; }
.notice .label { color: #d9b56a; }
.notice .big { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin: 0 0 .25em; line-height: 1.3; }
.notice p { margin: 0; font-size: .93rem; opacity: .9; }
.notice-cta { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.notice .btn-solid { background: var(--paper); color: var(--maroon); border-color: var(--paper); text-align: center; }
.notice .btn-solid:hover { background: transparent; color: var(--paper); }
@media (max-width: 900px) {
  .notice-grid { grid-template-columns: 1fr 1fr; }
  .notice-grid > div { border-left: 0; border-top: 1px solid rgba(244, 234, 216, .2); }
  .notice-grid > div:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 560px) {
  .notice-grid { grid-template-columns: 1fr; }
  .notice-grid > div:nth-child(2) { border-top: 1px solid rgba(244, 234, 216, .2); }
}

/* Chapters */
.chapter { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 40px) 0; }
.chapter-head {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 18px;
  border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: clamp(28px, 4vw, 48px);
}
.chapter-head .num { font: 700 .85rem/1 var(--sans); letter-spacing: .1em; color: var(--maroon); }
.chapter-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
.chapter-sub { grid-column: 2; margin: 10px 0 0; color: var(--muted); }

/* Story */
.story-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pull {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; color: var(--maroon);
}
.prose { font-size: 1.05rem; }
.dropcap::first-letter,
.prose > p:first-child::first-letter {
  float: left; font-family: var(--serif); font-weight: 700; color: var(--maroon);
  font-size: 4.1em; line-height: .85; padding: 6px 10px 0 0;
}
.syllabus {
  list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.syllabus li { padding: 22px 22px 22px 0; font-family: var(--serif); font-size: 1.02rem; }
.syllabus li + li { padding-left: 22px; border-left: 1px solid var(--rule); }
.syllabus span { display: block; font: 700 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; }
  .syllabus { grid-template-columns: 1fr; }
  .syllabus li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* Cast */
.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  all: unset; cursor: zoom-in; display: block; position: relative;
  background: var(--ink); overflow: hidden;
}
.card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform .4s ease; }
.card:hover img { transform: scale(1.03); }
.card-tall { grid-row: span 2; }
.card-tall img { aspect-ratio: auto; height: 100%; object-position: center top; }
.cap {
  display: block; background: var(--paper); color: var(--muted);
  padding: 12px 2px 4px; font-size: .88rem; line-height: 1.4;
}
.cap b { display: block; font-family: var(--serif); color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }
.card-tall { display: flex; flex-direction: column; }
.card-tall img { flex: 1; min-height: 0; }
@media (max-width: 900px) { .cast { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .cast { grid-template-columns: 1fr; }
  .card-tall { grid-row: auto; }
  .card-tall img { aspect-ratio: 4 / 5; height: auto; }
}

/* Viewer */
.viewer { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.viewer::backdrop { background: rgba(20, 10, 8, .88); }
.viewer img { max-height: 86vh; width: auto; margin: 0 auto; }
.viewer form { text-align: right; }
.close { all: unset; cursor: pointer; color: var(--paper); font: 700 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 10px 0; }

/* Screening */
.screening { background: var(--maroon-2); color: var(--paper); margin-top: clamp(64px, 9vw, 120px); }
.screening-inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.chapter-head.light { border-top-color: var(--paper); }
.chapter-head.light .num { color: #d9b56a; }
.trailer { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer.soon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.trailer.soon p {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 22px 26px;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}

/* Extras */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.canteen { background: var(--paper-2); border: 1px solid var(--rule); }
.canteen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; }
.canteen-body { padding: 26px; }
.hand { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; }
.vote { display: flex; align-items: center; gap: 14px; margin: 18px 0 8px; }
.vote span { font-family: var(--serif); font-style: italic; color: var(--muted); }
.vote button, .exam-opts button {
  font: 700 .85rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--maroon); background: transparent; border: 1.5px solid var(--maroon);
  padding: 13px 22px; cursor: pointer;
}
.vote button:hover, .vote button.picked { background: var(--maroon); color: var(--paper); }
.vote-msg { min-height: 1.7em; font-family: var(--serif); font-style: italic; color: var(--maroon); }

.exam {
  background:
    linear-gradient(90deg, transparent 54px, rgba(110,17,28,.35) 54px, rgba(110,17,28,.35) 55px, transparent 55px),
    repeating-linear-gradient(#fffdf7 0 31px, #d8e1ea 31px 32px);
  border: 1px solid var(--rule);
  padding: 26px 26px 30px 74px;
  box-shadow: 0 1px 0 var(--rule), 0 8px 0 -4px #fffdf7, 0 9px 0 -4px var(--rule);
}
.exam-head { display: flex; justify-content: space-between; font: 700 .72rem/32px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.exam h3 { font-size: 1.45rem; line-height: 32px; margin: 0 0 32px; }
.exam-q { font-family: var(--serif); font-size: 1.08rem; line-height: 32px; margin: 0 0 16px; }
.exam-opts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.exam-opts button { text-transform: none; letter-spacing: 0; font: 400 1rem/1.2 var(--serif); color: var(--ink); border-color: var(--rule); background: #fffdf7; text-align: left; padding: 10px 16px; }
.exam-opts button:hover:not(:disabled) { border-color: var(--maroon); }
.exam-opts button.right { border-color: #2f6b3a; color: #2f6b3a; font-weight: 700; }
.exam-opts button.right::before { content: "✓  "; }
.exam-opts button.wrong { opacity: .45; text-decoration: line-through; }
.exam-msg { min-height: 32px; line-height: 32px; margin: 12px 0 0; font-family: var(--serif); font-style: italic; color: var(--maroon); }
@media (max-width: 820px) { .extras { grid-template-columns: 1fr; } }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.timetable { border-collapse: collapse; width: 100%; margin-bottom: 26px; font-family: var(--serif); font-size: 1.15rem; }
.timetable th, .timetable td { padding: 12px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.timetable td { text-align: right; color: var(--maroon); font-weight: 700; }
address { font-style: normal; margin-bottom: 24px; line-height: 1.6; }
address strong { font-family: var(--serif); font-size: 1.1rem; }
.map { width: 100%; min-height: 340px; height: 100%; border: 1px solid var(--rule); filter: sepia(.25) saturate(.9); }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* Admit / ticket */
.admit { max-width: 900px; margin: 0 auto; padding: clamp(72px, 10vw, 130px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px); }
.ticket { display: flex; background: var(--maroon); color: var(--paper); position: relative; }
.ticket::before, .ticket::after {
  content: ""; position: absolute; right: 196px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper);
}
.ticket::before { top: -14px; }
.ticket::after { bottom: -14px; }
.ticket-main { flex: 1; padding: 30px clamp(20px, 4vw, 40px) 26px; text-align: center; }
.ticket .label { color: #d9b56a; }
.ticket-heading { max-width: 420px; width: 100%; margin: 0 auto 6px; }
.ticket-line { font-family: var(--serif); font-size: .98rem; }
.ticket-actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0 14px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.ticket .btn-solid { background: var(--paper); color: var(--maroon); border-color: var(--paper); }
.ticket .btn-solid:hover { background: transparent; color: var(--paper); }
.ticket .small { color: rgba(244,234,216,.75); margin: 0; }
.ticket-stub {
  width: 210px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-left: 2px dashed rgba(244,234,216,.5); padding: 24px 18px; background: var(--maroon-2);
}
.ticket-stub img { width: 140px; height: 140px; border: 6px solid #fff; }
.ticket-stub p { margin: 10px 0 0; font: 700 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.sendoff { text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--maroon); max-width: 640px; margin: 48px auto 0; line-height: 1.5; }
@media (max-width: 640px) {
  .ticket { flex-direction: column; }
  .ticket::before, .ticket::after { display: none; }
  .ticket-stub { width: 100%; border-left: 0; border-top: 2px dashed rgba(244,234,216,.5); }
}

/* Footer */
.footer { border-top: 1px solid var(--rule); text-align: center; padding: 40px 20px 48px; font-size: .9rem; color: var(--muted); }
.footer img { margin: 0 auto 14px; width: 90px; }
.footer p { margin: 0 0 .5em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card img { transition: none; }
}

/* WordPress */
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 46px; } }
@media (max-width: 600px) { .admin-bar .masthead { top: 0; } }
.page-content { padding-bottom: clamp(64px, 9vw, 120px); }
.page-content h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.prose img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Mobile sticky buy bar */
.buybar { display: none; }
@media (max-width: 860px) {
  .buybar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--maroon-2); color: var(--paper);
    border-top: 1px solid rgba(244,234,216,.25);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .buybar.show { transform: none; }
  .buybar-info { font-size: .8rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .buybar-info b { display: block; font-family: var(--serif); font-size: .95rem; }
  .buybar .btn-solid { background: var(--paper); color: var(--maroon); border-color: var(--paper); padding: 12px 16px; white-space: nowrap; }
  .footer { padding-bottom: 96px; }
}

/* Footer links */
.footer-links a { margin: 0 4px; }
