/* ============================================================
   Bangkok Opera — design system
   Deep navy house, muted gold, cream text.
   Marcellus display caps + EB Garamond body.
   Centred editorial column, gold hairlines, Roman numerals.
   ============================================================ */

:root {
  --bg: #162638;
  --bg-deep: #101c29;
  --bg-panel: #1b2e42;
  --gold: #af915f;
  --gold-bright: #d8bd85;
  --cream: #f0e9da;
  --muted: #a9b4bd;
  --red: #8a3535;
  --hairline: rgba(175, 145, 95, 0.35);
  --display: "Marcellus", "Times New Roman", serif;
  --body: "EB Garamond", Georgia, serif;
  --maxw: 1160px;
  --measure: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--bg-deep); }

img { max-width: 100%; display: block; }

a { color: var(--gold-bright); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--cream); }

.op_wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.op_measure { max-width: var(--measure); margin: 0 auto; }

.op_label {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.op_gold_rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 26px auto;
}

/* ---------- Header ---------- */

.op_site_header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease;
}

.op_site_header.op_solid {
  position: fixed;
  background: rgba(16, 28, 41, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.op_header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.op_brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--cream);
}

.op_brand_seal {
  width: 40px;
  height: 40px;
  flex: none;
}

.op_brand_name {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.op_brand_name small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 2px;
}

.op_main_nav { display: flex; gap: 34px; }

.op_main_nav a {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.op_main_nav a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }

.op_nav_toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  padding: 10px 18px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
}

@media (max-width: 760px) {
  .op_nav_toggle { display: block; }
  .op_main_nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 24px 20px;
  }
  .op_main_nav.op_open { display: flex; }
  .op_main_nav a { padding: 14px 0; border-bottom: 1px solid rgba(175,145,95,0.15); }
}

/* ---------- Hero (full viewport, overlay image) ---------- */

.op_hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.op_hero_bg {
  position: absolute;
  inset: 0;
}

.op_hero_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.op_hero_bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,28,41,0.62) 0%, rgba(22,38,56,0.42) 45%, var(--bg) 100%);
}

.op_hero_content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  max-width: 900px;
}

.op_hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 7.5vw, 88px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.08;
  margin: 24px 0 0;
}

.op_hero_sub {
  font-size: 21px;
  font-style: italic;
  color: var(--muted);
  max-width: 560px;
  margin: 26px auto 0;
}

.op_hero_actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.op_btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--gold);
  color: var(--cream);
  text-decoration: none;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.op_btn:hover { background: var(--gold); color: var(--bg-deep); }

.op_btn_solid { background: var(--gold); color: var(--bg-deep); }
.op_btn_solid:hover { background: var(--gold-bright); color: var(--bg-deep); }

/* Rotating seal */

.op_seal {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto;
}

.op_seal svg { width: 100%; height: 100%; }

.op_seal .op_seal_ring {
  animation: seal-spin 28s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes seal-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .op_seal .op_seal_ring { animation: none; }
}

/* ---------- Section scaffolding ---------- */

.op_section { padding: 88px 0; border-top: 1px solid var(--hairline); }

.op_section_head { text-align: center; margin-bottom: 56px; }

.op_section_head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-top: 18px;
}

.op_section_head p {
  color: var(--muted);
  font-style: italic;
  font-size: 20px;
  margin-top: 14px;
}

/* ---------- Programme index (home) ---------- */

.op_programme {
  border-top: 1px solid var(--hairline);
}

.op_programme_row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 34px 12px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--cream);
  transition: background 0.25s ease;
  position: relative;
}

@media (min-width: 820px) {
  .op_programme_row { grid-template-columns: 140px 1fr 200px; gap: 40px; padding: 40px 20px; }
}

.op_programme_row:hover { background: rgba(175, 145, 95, 0.07); }

.op_programme_num {
  font-family: var(--display);
  font-size: 30px;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.op_programme_title {
  display: block;
  font-family: var(--display);
  font-size: clamp(21px, 2.6vw, 28px);
  letter-spacing: 0.03em;
  line-height: 1.25;
  transition: color 0.25s ease;
}

.op_programme_row:hover .op_programme_title { color: var(--gold-bright); }

.op_programme_dek {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 17px;
  font-style: italic;
  max-width: 58ch;
}

.op_programme_meta {
  display: none;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 2;
}

@media (min-width: 820px) { .op_programme_meta { display: block; } }

/* ---------- Feature trio ---------- */

.op_trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 860px) { .op_trio { grid-template-columns: repeat(3, 1fr); } }

.op_trio_card {
  background: var(--bg);
  padding: 44px 36px;
  text-decoration: none;
  color: var(--cream);
  display: block;
  transition: background 0.25s ease;
}

.op_trio_card:hover { background: var(--bg-panel); }

.op_trio_card .op_numeral {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.op_trio_card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: 0.04em;
  margin: 16px 0 12px;
  line-height: 1.3;
}

.op_trio_card p { color: var(--muted); font-size: 17px; }

/* ---------- About split ---------- */

.op_split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 900px) { .op_split { grid-template-columns: 1fr 1fr; gap: 72px; } }

.op_split h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 16px 0 24px;
}

.op_split p { color: var(--muted); margin-bottom: 18px; }
.op_split p strong { color: var(--cream); font-weight: 600; }

.op_credo {
  border: 1px solid var(--hairline);
  padding: 40px 36px;
  position: relative;
}

.op_credo::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(175,145,95,0.18);
  pointer-events: none;
}

.op_credo_item { padding: 18px 0; border-bottom: 1px solid rgba(175,145,95,0.18); }
.op_credo_item:last-child { border-bottom: none; padding-bottom: 0; }
.op_credo_item:first-child { padding-top: 0; }

.op_credo_item .op_label { display: block; margin-bottom: 8px; }
.op_credo_item span { color: var(--muted); font-size: 17px; }

/* ---------- Newsletter ---------- */

.op_newsletter { background: var(--bg-deep); }

.op_newsletter .op_measure { text-align: center; }

.op_newsletter p.op_lede { color: var(--muted); font-style: italic; font-size: 20px; margin-bottom: 34px; }

.op_news_form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
}

.op_news_form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 20px;
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  outline: none;
  min-width: 0;
}

.op_news_form input::placeholder { color: #6d7a85; font-style: italic; }

.op_news_form button {
  background: var(--gold);
  border: none;
  padding: 0 28px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--bg-deep);
  transition: background 0.25s ease;
}

.op_news_form button:hover { background: var(--gold-bright); }

.op_news_note {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6d7a85;
}

.op_news_note.op_error { color: #d08a7a; }
.op_news_note.ok { color: var(--gold-bright); }

/* ---------- Footer ---------- */

.op_site_footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
  background: var(--bg-deep);
}

.op_footer_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 820px) { .op_footer_grid { grid-template-columns: 2fr 1fr 1fr; } }

.op_footer_brand .op_brand_name { font-size: 24px; }
.op_footer_brand p { color: var(--muted); font-size: 16px; font-style: italic; margin-top: 14px; max-width: 40ch; }

.op_footer_col .op_label { display: block; margin-bottom: 16px; }

.op_footer_col a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  padding: 5px 0;
  font-size: 17px;
  transition: color 0.2s ease;
}

.op_footer_col a:hover { color: var(--gold-bright); }

.op_footer_legal {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(175,145,95,0.18);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6d7a85;
}

/* ============================================================
   Article pages
   ============================================================ */

.op_article_hero {
  position: relative;
  padding: 160px 0 0;
  text-align: center;
}

.op_breadcrumb {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 34px;
}

.op_breadcrumb a { color: var(--muted); text-decoration: none; }
.op_breadcrumb a:hover { color: var(--gold-bright); }
.op_breadcrumb .op_sep { margin: 0 10px; color: var(--gold); }

.op_article_kicker {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.op_article_hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 62px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
  max-width: 22ch;
  margin: 20px auto 0;
}

.op_article_meta {
  margin-top: 26px;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.op_article_cover {
  margin-top: 56px;
  position: relative;
}

.op_article_cover .op_frame {
  border: 1px solid var(--hairline);
  padding: 10px;
  background: var(--bg-deep);
}

.op_article_cover img { width: 100%; height: auto; display: block; }

.op_article_cover figcaption {
  margin-top: 16px;
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

/* Article body — centred column */

.op_article_body { padding: 72px 0 88px; }

.op_prose { max-width: var(--measure); margin: 0 auto; }

.op_prose > p { margin-bottom: 24px; }

.op_prose .op_lede {
  font-size: 23px;
  line-height: 1.65;
  color: var(--cream);
  margin-bottom: 34px;
}

.op_prose .op_lede::first-letter {
  font-family: var(--display);
  font-size: 76px;
  line-height: 0.85;
  float: left;
  padding: 8px 14px 0 0;
  color: var(--gold-bright);
}

.op_prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: 0.05em;
  line-height: 1.25;
  margin: 60px 0 22px;
  scroll-margin-top: 110px;
  text-align: center;
}

.op_prose h2 .op_scene_num {
  display: block;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.op_prose h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.04em;
  margin: 38px 0 12px;
  color: var(--gold-bright);
}

.op_prose ul, .op_prose ol { margin: 0 0 24px 24px; }
.op_prose li { margin-bottom: 12px; }
.op_prose li::marker { color: var(--gold); }

.op_prose strong { font-weight: 600; color: var(--cream); }

.op_prose .op_centred { text-align: center; }

/* Programme notes box (keybox) */

.op_notes {
  border: 1px solid var(--hairline);
  padding: 34px 38px;
  margin-bottom: 44px;
  position: relative;
  background: var(--bg-panel);
}

.op_notes::before {
  content: "";
  position: absolute;
  top: 7px; left: 7px; right: 7px; bottom: 7px;
  border: 1px solid rgba(175,145,95,0.16);
  pointer-events: none;
}

.op_notes .op_label { display: block; margin-bottom: 16px; }

.op_notes ul { margin-left: 20px; }
.op_notes li { margin-bottom: 10px; font-size: 17.5px; }
.op_notes li:last-child { margin-bottom: 0; }

/* Tables */

.op_table_wrap { overflow-x: auto; margin: 10px 0 34px; border: 1px solid var(--hairline); }

table.op_data {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  min-width: 560px;
}

table.op_data caption {
  text-align: center;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-panel);
}

table.op_data th, table.op_data td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(175,145,95,0.15);
  vertical-align: top;
}

table.op_data th {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  background: var(--bg-panel);
}

table.op_data tr:last-child td { border-bottom: none; }
table.op_data td.op_num { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.op_data td.hl { background: rgba(175,145,95,0.10); }

/* Scene cards (Ramakien etc.) */

.op_scene {
  border: 1px solid var(--hairline);
  padding: 28px 30px;
  margin-bottom: 18px;
  background: var(--bg-panel);
}

.op_scene .op_scene_title {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.op_scene p { font-size: 17px; color: var(--muted); margin: 0; }
.op_scene p strong { color: var(--cream); }

/* Pull quote */

.op_pullquote {
  margin: 44px 0;
  text-align: center;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.5;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

.op_pullquote::before, .op_pullquote::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

.op_pullquote::before { margin-bottom: 26px; }
.op_pullquote::after { margin-top: 26px; }

/* Note box */

.op_notebox {
  border-left: 2px solid var(--gold);
  background: var(--bg-panel);
  padding: 22px 28px;
  margin: 30px 0;
  font-size: 17px;
}

.op_notebox .op_label { display: block; margin-bottom: 8px; }
.op_notebox p { margin: 0; color: var(--muted); }
.op_notebox p strong { color: var(--cream); }

/* FAQ */

.op_faq { border-top: 1px solid var(--hairline); margin: 34px 0; }

.op_faq_item { border-bottom: 1px solid var(--hairline); }

.op_faq_q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.op_faq_q .op_faq_icon {
  font-family: var(--body);
  font-size: 24px;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex: none;
  line-height: 1;
}

.op_faq_item.op_open .op_faq_icon { transform: rotate(45deg); }

.op_faq_a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

.op_faq_a_inner { padding: 0 8px 24px; color: var(--muted); font-size: 17.5px; }

/* Sources */

.op_sources {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.op_sources .op_label { display: block; margin-bottom: 14px; }
.op_sources ul { margin-left: 20px; font-size: 16px; color: var(--muted); }
.op_sources li { margin-bottom: 8px; }

/* Keep reading */

.op_keep_reading { border-top: 1px solid var(--hairline); padding: 72px 0; background: var(--bg-deep); }

.op_kr_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 40px;
}

@media (min-width: 820px) { .op_kr_grid { grid-template-columns: repeat(3, 1fr); } }

.op_kr_card {
  background: var(--bg-deep);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--cream);
  transition: background 0.25s ease;
  display: block;
}

.op_kr_card:hover { background: var(--bg-panel); }

.op_kr_card h3 { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: 0.03em; margin: 14px 0 10px; line-height: 1.3; }
.op_kr_card p { font-size: 16px; color: var(--muted); font-style: italic; }

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
