/* 과학신학연구회 · The Colloquium for Science and Theology */
:root {
  --night: #0b1324;
  --navy: #14213d;
  --navy-2: #1d2d52;
  --gold: #b8893b;
  --gold-2: #d9b56e;
  --gold-soft: #f1e6cf;
  --paper: #faf8f3;
  --paper-2: #f3efe5;
  --white: #ffffff;
  --text: #1b2233;
  --muted: #5b6477;
  --line: #e3ddcf;
  --line-dark: rgba(255, 255, 255, 0.14);
  --serif: "Noto Serif KR", "HANBatang", "Batang", Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --wrap: 1200px;
  --radius: 14px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, color .3s;
  color: var(--white);
}
.site-header.solid, body:not(.has-hero) .site-header {
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 42px; height: 42px; flex: none; }
.site-header:not(.solid) .brand img { filter: brightness(0) invert(1); }
body:not(.has-hero) .site-header .brand img { filter: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: .75; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px;
  opacity: .88; transition: opacity .2s, background .2s;
}
.nav a:hover { opacity: 1; background: rgba(127, 127, 127, 0.12); }
.nav a[aria-current="page"] { opacity: 1; color: var(--gold); }
.site-header:not(.solid) .nav a[aria-current="page"] { color: var(--gold-2); }
.lang {
  margin-left: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  border: 1px solid currentColor; border-radius: 999px; padding: 5px 12px !important; opacity: .8;
}
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; margin-right: -8px; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); color: var(--navy); padding: 12px 16px 24px; gap: 2px;
    box-shadow: 0 16px 30px rgba(11, 19, 36, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 16px; }
  .site-header:not(.solid) .nav a[aria-current="page"] { color: var(--gold); }
  .lang { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 420px) { .brand-sub { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(640px, 100vh, 980px); min-height: clamp(640px, 100svh, 980px); display: flex; align-items: center;
  background: radial-gradient(120% 90% at 75% 20%, #1f3160 0%, var(--navy) 38%, var(--night) 100%);
  color: var(--white); overflow: hidden; isolation: isolate;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-orbit { position: absolute; right: -12vw; top: 50%; width: min(78vw, 980px); transform: translateY(-50%); z-index: -1; opacity: .55; pointer-events: none; }
.hero .wrap { padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.hero .eyebrow { color: var(--gold-2); }
.hero h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.22;
  font-size: clamp(40px, 6.4vw, 84px); margin: 22px 0 28px; max-width: 14em;
}
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 38em; color: rgba(255, 255, 255, .82); margin: 0 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.verse {
  margin: 64px 0 0; padding-left: 20px; border-left: 2px solid var(--gold);
  max-width: 34em; font-family: var(--serif); font-size: 15.5px; color: rgba(255, 255, 255, .72);
}
.verse cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: var(--gold-2); }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,.5); text-transform: uppercase; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 36px; margin: 10px auto 0; background: linear-gradient(var(--gold-2), transparent); animation: drip 2.2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; border: 1px solid transparent; transition: .2s; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #a37731; }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Page header (sub pages) ---------- */
.page-head {
  padding: calc(var(--header-h) + 72px) 0 64px;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; right: -120px; top: 40px; width: 460px; height: 460px;
  background: url("/assets/img/logo-mark.svg") center/contain no-repeat; opacity: .05; pointer-events: none;
}
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.25; margin: 14px 0 16px; letter-spacing: -0.02em; color: var(--navy); }
.page-head p { max-width: 44em; color: var(--muted); margin: 0; font-size: 18px; }
.crumbs { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section.tight { padding: 80px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--navy); color: var(--white); }
.section.dark .muted { color: rgba(255, 255, 255, .7); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 52px; flex-wrap: wrap; }
.sec-head h2, .h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; margin: 12px 0 0; letter-spacing: -0.015em; color: var(--navy); }
.section.dark h2 { color: var(--white); }
.sec-head p { margin: 14px 0 0; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.more { white-space: nowrap; font-weight: 600; font-size: 15px; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.more:hover { color: var(--gold); }
.section.dark .more { color: var(--white); }
@media (max-width: 640px) { .section { padding: 76px 0; } .section.tight { padding: 56px 0; } }

/* ---------- Notice bar ---------- */
.notice-bar { background: var(--gold-soft); border-bottom: 1px solid #e6d5b0; }
.notice-bar .wrap { display: flex; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.notice-bar .tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--navy); color: var(--white); padding: 4px 10px; border-radius: 999px; }
.notice-bar p { margin: 0; flex: 1 1 320px; font-weight: 500; color: var(--navy); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card:hover, .card.hover:hover { border-color: var(--gold-2); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(20, 33, 61, .35); }

.area { position: relative; padding: 34px 30px 30px; }
.area .num { font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: .08em; }
.area h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 14px 0 10px; color: var(--navy); }
.area p { margin: 0; color: var(--muted); font-size: 15.5px; }
.area .icon { position: absolute; right: 26px; top: 28px; width: 34px; height: 34px; color: var(--gold); opacity: .8; }

/* intro split */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.lead-serif { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.55; color: var(--navy); margin: 0; font-weight: 500; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.facts div { padding: 22px 18px 0 0; }
.facts strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts div { padding: 18px 0 0; } }

/* feature (president talk) */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.feature-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); border: 1px solid var(--line-dark); }
.feature h2 { margin-top: 12px; }
.feature p { color: rgba(255, 255, 255, .78); }
.meta-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 8px; font-size: 15px; }
.meta-list li { display: flex; gap: 12px; }
.meta-list b { color: var(--gold-2); font-weight: 600; min-width: 5.5em; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Papers ---------- */
.paper { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; padding: 30px 0; border-top: 1px solid var(--line); }
.paper:last-child { border-bottom: 1px solid var(--line); }
.paper-type { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.paper h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.45; margin: 6px 0 8px; color: var(--navy); }
.paper .by { font-size: 15px; color: var(--text); }
.paper .by span { color: var(--muted); }
.paper .src { font-size: 14px; color: var(--muted); margin-top: 2px; }
.paper-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 150px; }
.paper details { grid-column: 1 / -1; margin-top: 6px; }
.paper summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--navy); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.paper summary::-webkit-details-marker { display: none; }
.paper summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; font-size: 13px; }
.paper details[open] summary::before { content: "−"; }
.paper .abstract { background: var(--paper-2); border-radius: 10px; padding: 18px 22px; margin-top: 12px; font-size: 15.5px; color: var(--text); }
.keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.keywords span { font-size: 12.5px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
@media (max-width: 720px) { .paper { grid-template-columns: 1fr; } .paper-actions { flex-direction: row; flex-wrap: wrap; } }

.mini-paper { display: flex; flex-direction: column; height: 100%; }
.mini-paper h3 { font-family: var(--serif); font-size: 19px; line-height: 1.5; font-weight: 600; margin: 10px 0 12px; color: var(--navy); flex: 1; }
.mini-paper .by { font-size: 14.5px; color: var(--muted); }

/* ---------- Filters / tabs ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button {
  border: 1px solid var(--line); background: var(--white); color: var(--muted); border-radius: 999px;
  padding: 8px 16px; font-size: 14.5px; font-weight: 500; transition: .15s;
}
.filters button:hover { border-color: var(--gold-2); color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
[data-hidden="true"] { display: none !important; }

/* ---------- People ---------- */
.person { display: flex; flex-direction: column; gap: 4px; padding: 28px; }
.person .avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy);
  background: linear-gradient(135deg, var(--gold-soft), #fff); border: 1px solid var(--line);
}
.person .role { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.person h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 2px 0 0; color: var(--navy); }
.person h3 small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: .02em; }
.person .field { font-size: 14.5px; font-weight: 600; color: var(--text); margin-top: 6px; }
.person .aff { font-size: 14.5px; color: var(--muted); }
.person details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.person summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.person ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.person .topic { font-size: 14px; margin-top: 10px; color: var(--text); font-family: var(--serif); }
.person .topic::before { content: "“"; color: var(--gold); }
.person .topic::after { content: "”"; color: var(--gold); }
.person a.mail { font-size: 13.5px; color: var(--navy); border-bottom: 1px solid var(--gold-2); align-self: flex-start; margin-top: 8px; }
.group-title { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--navy); margin: 64px 0 22px; display: flex; align-items: center; gap: 14px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-title:first-child { margin-top: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7.2em; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 7.2em 1fr; gap: 36px; padding: 0 0 38px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(7.2em - 5px); top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline .when { font-family: var(--serif); font-weight: 600; color: var(--gold); font-size: 16px; text-align: right; padding-right: 8px; }
.timeline h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); font-weight: 700; }
.timeline p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 560px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .timeline li::before { left: 0; }
  .timeline .when { text-align: left; }
}

/* ---------- Conference ---------- */
.program { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.program th, .program td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.program th { width: 5.5em; font-family: var(--serif); color: var(--gold); font-weight: 600; white-space: nowrap; }
.program td b { color: var(--navy); }
.program td span { display: block; color: var(--muted); font-size: 14.5px; }
.program tr.ours td, .program tr.ours th { background: #fbf5e7; }
.program .badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; background: var(--gold); color: var(--white); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.day { margin-bottom: 56px; }
.day-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.day-head h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--navy); margin: 0; }
.day-head span { color: var(--muted); font-size: 15px; }
.table-scroll { overflow-x: auto; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-grid .card { padding: 24px; }
.info-grid dt { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.info-grid dd { margin: 6px 0 0; font-weight: 500; color: var(--navy); }
@media (max-width: 800px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Posters / gallery ---------- */
.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.posters button, .gallery-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); padding: 0; transition: .2s; text-align: left; }
.posters button:hover, .gallery-item:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(20, 33, 61, .45); }
.posters img, .gallery-item img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; }
.gallery-item figcaption { padding: 14px 16px; font-size: 14.5px; }
.gallery-item figcaption b { display: block; color: var(--navy); }
.gallery-item figcaption span { color: var(--muted); font-size: 13px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-item.wide img { aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posters { grid-template-columns: 1fr 1fr; } .gallery-grid { grid-template-columns: 1fr; } }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 28px; text-align: center; color: var(--muted); background: var(--white); }
.empty strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 20px; margin-bottom: 6px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 12, 22, .92); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 14px; letter-spacing: .08em; }
@media (max-width: 640px) { .lightbox { padding: 64px 10px; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }

/* ---------- Slide viewer ---------- */
.viewer { background: var(--night); border-radius: var(--radius); padding: 18px; }
.viewer-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.viewer-stage img { width: 100%; height: 100%; object-fit: contain; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: rgba(255,255,255,.75); font-size: 14px; }
.viewer-bar button { background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 999px; padding: 8px 18px; }
.viewer-bar button:hover { background: rgba(255,255,255,.2); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; padding-bottom: 6px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 112px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; opacity: .55; transition: .15s; }
.thumbs button[aria-current="true"] { border-color: var(--gold-2); opacity: 1; }
.thumbs img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- Article (manuscript) ---------- */
.article { max-width: 760px; }
.article h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--navy); margin: 2.2em 0 .7em; line-height: 1.4; }
.article p { margin: 0 0 1.15em; }
.article blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--gold); font-family: var(--serif); color: var(--navy); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.toc b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); border-left: 2px solid var(--line); padding-left: 12px; }
.toc a:hover { color: var(--navy); border-color: var(--gold); }
.article-grid { display: grid; grid-template-columns: 220px 1fr; gap: 64px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- Board ---------- */
.board { width: 100%; }
.post { border-top: 1px solid var(--line); }
.post:last-child { border-bottom: 1px solid var(--line); }
.post summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 7em 1fr 7.5em; gap: 20px; align-items: center; padding: 20px 8px; }
.post summary::-webkit-details-marker { display: none; }
.post summary:hover h3 { color: var(--gold); }
.post .cat { font-size: 12.5px; font-weight: 700; color: var(--gold); letter-spacing: .06em; }
.post h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); transition: color .15s; }
.post time { font-size: 14px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.post .body { padding: 4px 8px 28px calc(7em + 28px); color: var(--text); font-size: 16px; }
.post .body p { margin: 0 0 .8em; }
.post .body ul { margin: 0 0 .8em; padding-left: 20px; }
.pin { display: inline-block; font-size: 11px; background: var(--navy); color: #fff; border-radius: 4px; padding: 0 6px; margin-right: 8px; vertical-align: 2px; }
@media (max-width: 640px) {
  .post summary { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .post .cat { grid-column: 1 / -1; }
  .post .body { padding-left: 8px; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.form input[type="file"] { padding: 10px; background: var(--paper); }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 137, 59, .18); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.form .check input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--gold); }
.form .hp { display: none; }
.contact-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; }
.contact-box h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 18px; font-weight: 600; }
.contact-box dl { margin: 0; display: grid; gap: 18px; }
.contact-box dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.contact-box dd { margin: 4px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.contact-box a { border-bottom: 1px solid rgba(255,255,255,.35); }
.faq details { border-top: 1px solid var(--line); padding: 18px 4px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Book ---------- */
.book { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: start; }
.book img { border-radius: 4px; box-shadow: 0 12px 24px -12px rgba(0,0,0,.4); }
.book h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--navy); margin: 0 0 4px; line-height: 1.45; }
.book p { margin: 0; font-size: 14.5px; color: var(--muted); }
.book-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.book-list li { padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.book-list li b { font-family: var(--serif); color: var(--navy); font-weight: 600; }
.book-list li span { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 22px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 300px; height: 300px; background: url("/assets/img/logo-mark.svg") center/contain no-repeat; filter: brightness(0) invert(1); opacity: .06; }
.cta h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; font-weight: 600; }
.cta p { margin: 0; color: rgba(255,255,255,.75); }
@media (max-width: 640px) { .cta { padding: 36px 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .7); padding: 72px 0 36px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.foot-brand { display: flex; gap: 14px; align-items: center; color: #fff; margin-bottom: 18px; }
.foot-brand img { width: 46px; height: 46px; filter: brightness(0) invert(1); }
.foot-brand b { font-family: var(--serif); font-size: 20px; display: block; }
.foot-brand span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--gold-2); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
}

/* related links & bio */
.related h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); margin: 8px 0 6px; display: flex; align-items: center; gap: 8px; }
.related h3 svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.related p { margin: 0; font-size: 15px; }
.person .bio { font-size: 14px; color: var(--text); line-height: 1.7; margin: 10px 0 0; }

/* language switch — always visible (desktop + mobile) */
.site-header .wrap { gap: 16px; }
.nav { margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: 2px; flex: none; padding: 3px 3px 3px 10px; border: 1px solid currentColor; border-radius: 999px; }
.site-header:not(.solid) .lang-switch { border-color: rgba(255,255,255,.55); }
.site-header.solid .lang-switch, body:not(.has-hero) .site-header .lang-switch { border-color: var(--line); background: var(--white); }
.lang-switch .globe { width: 16px; height: 16px; margin-right: 4px; opacity: .85; }
.lang-switch a { font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; line-height: 1.2; opacity: .8; transition: background .15s, opacity .15s; }
.lang-switch a:hover { opacity: 1; background: rgba(127,127,127,.14); }
.lang-switch a[aria-current="true"] { background: var(--gold); color: #fff; opacity: 1; pointer-events: none; }
@media (max-width: 1080px) { .nav { margin-left: 0; } .lang-switch { margin-left: auto; } }
@media (max-width: 420px) { .lang-switch { padding-left: 6px; } .lang-switch .globe { display: none; } .lang-switch a { padding: 5px 9px; font-size: 13px; } .brand-name { font-size: 17px; } }
.nav a { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1081px) { .nav a { padding: 8px 9px; font-size: 14.5px; } .brand-sub { display: none; } }
@media (max-width: 640px) { .brand-sub { display: none; } }
@media (max-width: 420px) {
  .site-header .wrap { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 15px; }
  .lang-switch { padding: 2px; }
  .lang-switch a { padding: 5px 8px; font-size: 12.5px; }
  .menu-btn { padding: 6px; margin-right: -6px; }
}
.lang-switch .ls { display: none; }
@media (max-width: 345px) { .lang-switch .lf { display: none; } .lang-switch .ls { display: inline; } }
@media (min-width: 760px) { .book-list { grid-template-columns: 1fr 1fr; gap: 14px 24px; } }
.gallery-item.photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 72%; }
.photo-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; } }
.gallery-item.photo figcaption b { font-size: 14px; line-height: 1.5; }
.gallery-item.wide-photo { grid-column: 1 / -1; }
.gallery-item.wide-photo img { aspect-ratio: 16 / 7; object-position: center 62%; }
@media (max-width: 560px) { .gallery-item.wide-photo img { aspect-ratio: 3 / 2; } }
.post .body > div { margin: 0 0 .8em; }
.post .body ul { margin: 6px 0 0; }
