/* =========================================================
   SYMMETRY FESTIVAL 2027 — site stylesheet
   Layout: sticky navy bar → full-bleed banner → paper-toned
   content column with a left section rail on wide screens.
   Colors are taken from the key visual (night-blue, gold line,
   paper white, lantern vermilion).
   ========================================================= */
:root {
  --ink: #14223d;          /* night blue — text & header */
  --ink-deep: #0b1528;     /* footer / banner ground */
  --paper: #f7f5f0;        /* page ground */
  --card: #ffffff;         /* raised surfaces */
  --line: #ddd7ca;         /* hairlines */
  --muted: #5d6679;        /* secondary text */
  --gold: #b38a3e;         /* key-visual gold line */
  --gold-soft: #efe4cc;
  --vermilion: #b23a2a;    /* Kaminarimon lantern — used only for alerts */
  --on-ink: #f3efe6;

  --f-display: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --f-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jp { font-family: var(--f-jp); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--ink-deep);
  color: var(--on-ink);
  border-bottom: 1px solid rgba(179, 138, 62, .45);
}
.site-header .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; }
.brand:hover { color: var(--on-ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-family: var(--f-display); font-weight: 500; letter-spacing: .18em; font-size: 14px; white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(243,239,230,.35); color: var(--on-ink);
  font: 500 13px var(--f-display); letter-spacing: .14em; padding: 7px 12px; border-radius: 2px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 2px 16px; }
.site-nav a { white-space: nowrap;
  color: var(--on-ink); text-decoration: none; font-family: var(--f-display);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; display: inline-block;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: #e3c98f; border-bottom-color: #e3c98f; }
.site-nav .nav-cta a { border: 1px solid #e3c98f; padding: 5px 12px; color: #e3c98f; }
.site-nav .nav-cta a:hover { background: #e3c98f; color: var(--ink-deep); }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-deep); border-bottom: 1px solid rgba(179,138,62,.45); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 18px; gap: 0; }
  .site-nav li a { display: block; padding: 11px 0; border-bottom: 1px solid rgba(243,239,230,.08); }
  .site-nav .nav-cta a { margin-top: 10px; text-align: center; }
}

/* ---------- Key visual ---------- */
.hero { background: var(--ink-deep); }
.hero picture, .hero img { width: 100%; }
.hero img { aspect-ratio: 3 / 1; object-fit: cover; max-width: 100%; }
.hero-strip {
  background: var(--ink-deep); color: var(--on-ink);
  border-top: 1px solid rgba(179,138,62,.35);
}
.hero-strip .inner {
  max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.hero-strip p { margin: 0; font-family: var(--f-display); letter-spacing: .08em; font-size: 15px; }
.hero-strip .venue { color: #cfc7b6; }
.hero-strip .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 14px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 20px; border-radius: 2px; text-decoration: none; border: 1px solid var(--gold);
  background: var(--gold); color: #fff;
}
.btn:hover { background: #9a7431; border-color: #9a7431; color: #fff; }
.btn.ghost { background: transparent; color: #e3c98f; border-color: #e3c98f; }
.btn.ghost:hover { background: #e3c98f; color: var(--ink-deep); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--on-ink); }
.btn[aria-disabled="true"] { background: #cfc9bd; border-color: #cfc9bd; color: #5d6679; cursor: not-allowed; pointer-events: none; }

/* ---------- Sections ---------- */
main { padding-inline: var(--gutter); }
.section {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0 48px;
  padding-block: 64px; border-top: 1px solid var(--line);
}
.section:first-child { border-top: 0; }
.section-head { position: relative; }
.section-head .eyebrow {
  display: block; font-family: var(--f-display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.section-head h2 {
  font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.2; letter-spacing: .06em;
  margin: 6px 0 0; text-wrap: balance;
}
.section-head .motif { width: 64px; height: 64px; margin-top: 18px; color: var(--gold); opacity: .8; }
.section-body { min-width: 0; }
.section-body > :first-child { margin-top: 0; }
.section-body p { max-width: 68ch; }
.section-body h3 { font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: .04em; margin: 36px 0 10px; }
@media (max-width: 800px) {
  .section { grid-template-columns: minmax(0, 1fr); padding-block: 48px; }
  .section-head { margin-bottom: 20px; }
  .section-head .motif { display: none; }
}

.note { font-size: 14px; color: var(--muted); }
.tbc {
  display: inline-block; font: 500 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--vermilion); border: 1px solid currentColor; padding: 4px 7px; border-radius: 2px; vertical-align: 2px;
}

/* ---------- News ---------- */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news time { font-family: var(--f-data); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
@media (max-width: 520px) { .news li { grid-template-columns: minmax(0,1fr); gap: 2px; } }

/* ---------- Definition table (General Information) ---------- */
.facts { margin: 0; display: grid; grid-template-columns: 160px minmax(0,1fr); border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-family: var(--f-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 17px; }
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0,1fr); }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--f-display); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
td.num, th.num { text-align: right; font-family: var(--f-data); font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody th { font-weight: 600; }

/* ---------- Program ---------- */
.days { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.day { background: var(--card); border: 1px solid var(--line); padding: 20px 18px 16px; }
.day header { border-bottom: 1px solid var(--gold); padding-bottom: 10px; margin-bottom: 8px; }
.day .dnum { font-family: var(--f-display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.day h3 { margin: 2px 0 0; font-size: 18px; }
.day ol { list-style: none; margin: 0; padding: 0; }
.day li { padding: 9px 0; border-bottom: 1px dotted var(--line); font-size: 15px; line-height: 1.5; }
.day li:last-child { border-bottom: 0; }
.day .t { display: block; font-family: var(--f-data); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mark { font-family: var(--f-data); font-size: 12px; padding: 1px 6px; border-radius: 2px; margin-left: 4px; white-space: nowrap; }
.mark.inc { background: var(--gold-soft); color: #6d5020; }
.mark.opt { background: var(--ink); color: var(--on-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .days { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .days { grid-template-columns: minmax(0,1fr); } }

/* ---------- Social events ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.event { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.event .when { font-family: var(--f-data); font-size: 13px; color: var(--gold); }
.event h3 { margin: 4px 0 6px; font-size: 18px; }
.event p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Registration ---------- */
.reg-box {
  margin-top: 28px; padding: 24px; background: var(--ink-deep); color: var(--on-ink);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.reg-box p { margin: 0; max-width: 52ch; }
.reg-box .small { font-size: 14px; color: #cfc7b6; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); margin: 0; }
.people div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.people dt { font-family: var(--f-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.people dd { margin: 2px 0 0; font-size: 17px; }

.logos { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.logos li { border: 1px dashed var(--line); padding: 18px 22px; color: var(--muted); font-size: 14px; background: var(--card); }

/* ---------- Access ---------- */
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.access ul { padding-left: 1.1em; margin: 0; }
.map-frame { border: 1px solid var(--line); background: var(--card); aspect-ratio: 4 / 3; max-width: 100%; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 800px) { .access { grid-template-columns: minmax(0,1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: #cfc7b6; margin-top: 40px; }
.site-footer .inner {
  max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 32px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; font-size: 15px;
}
.site-footer h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: .18em; font-size: 15px; color: var(--on-ink); margin: 0 0 8px; }
.site-footer a { color: #e3c98f; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(243,239,230,.12); padding-top: 18px; font-size: 13px; }
@media (max-width: 720px) { .site-footer .inner { grid-template-columns: minmax(0,1fr); } }

/* ---------- Committee members ---------- */
.people .m-aff, .members .m-aff { font-size: 15px; color: var(--muted); }
.m-sep { color: var(--muted); }
.members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.members li { padding: 9px 0; line-height: 1.5; border-bottom: 1px solid var(--line); min-width: 0; }
.members .m-name { font-size: 16px; }
.members sup, .people sup { color: var(--gold); }
/* Officers: one row each — role | name, affiliation */
.people { grid-template-columns: minmax(0, 1fr); }
.people div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 11px 0; }
.people dd { margin: 0; }
@media (max-width: 560px) { .people div { grid-template-columns: minmax(0, 1fr); } }

/* Special theme */
.hero-strip .theme { color: var(--gold-soft); margin-top: 4px; }
.theme-box { margin: 0 0 28px; padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--gold-soft); color: var(--ink); font-family: var(--f-display); font-size: 18px; letter-spacing: .04em; }
.theme-label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* ISA boards */
.sub-h { font-family: var(--f-display); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.m-role { font-size: 14px; color: var(--gold); }

/* Tagline */
.lead { font-family: var(--f-display); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; letter-spacing: .02em; color: var(--ink); margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--gold); max-width: 34em; }
