/* =========================================================================
   2026 Summer Finance Workshop @ Waseda University
   Typography echoes charlesmartineau.com/waseda_graduate_asset_pricing:
   Georgia serif, small-caps presenters, italic paper titles.
   Palette: Waseda enji crimson.
   ========================================================================= */

:root {
  --crimson: #8e1728;
  --crimson-dark: #6c101f;
  --gold: #b8912e;
  --ink: #1a1a1a;
  --muted: #5c6670;
  --rule: #e3e6ea;
  --bg: #ffffff;
  --bg-soft: #faf6f2;
  --maxw: 860px;
  --maxw-nav: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  font-size: 18px;
}

a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--crimson);
  color: #fff;
  border-bottom: 3px solid var(--crimson-dark);
}
/* The bar runs wider than the article column so the tabs stay on one line. */
.nav-inner {
  max-width: var(--maxw-nav);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}
.nav-links { display: flex; gap: 0; flex-wrap: nowrap; }
.nav-links a {
  color: #fff;
  padding: .9rem .6rem;
  font-size: .92rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.nav-links a:hover { text-decoration: none; border-bottom-color: rgba(255,255,255,.55); }
.nav-links a.active { border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--crimson-dark);
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .52;
}
.hero-overlay {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .82rem;
  color: #f2d9dd;
  margin: 0 0 .8rem;
}
.hero h1 {
  font-size: 2.7rem;
  line-height: 1.12;
  margin: 0 0 .8rem;
  letter-spacing: -0.01em;
}
.hero .meta { font-size: 1.12rem; margin: 0; }
.hero .meta span { display: inline-block; }
.hero .meta .dot { opacity: .6; margin: 0 .6rem; }
.photo-credit { font-size: .78rem; margin-top: 1.2rem; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }

section { margin-bottom: 3.25rem; }
section:last-child { margin-bottom: 0; }

h2 {
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--crimson);
  display: inline-block;
}
.section-intro { color: var(--muted); margin: -0.4rem 0 1.75rem; }

/* ---------- Program / agenda ---------- */
.day {
  margin-bottom: 2.5rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.day-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  padding: .85rem 1.4rem;
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--crimson-dark);
}
.day-body { padding: .5rem 1.4rem 1.4rem; }

.block-title {
  font-size: 1.08rem;
  font-weight: bold;
  margin: 1.4rem 0 .2rem;
  color: var(--ink);
}
.block-title .time { color: var(--crimson); font-weight: bold; }
.chair {
  color: var(--muted);
  font-size: .95rem;
  font-style: italic;
  margin: 0 0 .6rem;
}

ul.talks { list-style: none; margin: 0; padding: 0; }
ul.talks li {
  padding: .8rem 0 .8rem 4.9rem;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
ul.talks li:last-child { border-bottom: none; }
ul.talks li .slot {
  position: absolute;
  left: 0;
  top: .82rem;
  width: 4.3rem;
  font-size: .82rem;
  color: var(--crimson);
  font-weight: bold;
  line-height: 1.3;
}
.paper-title { font-style: italic; }
.presenter { font-variant: small-caps; letter-spacing: .02em; }
.affil { color: var(--muted); }

.milestone {
  padding: .7rem 0 .7rem 4.9rem;
  position: relative;
  color: var(--muted);
  font-style: italic;
  border-bottom: 1px dashed var(--rule);
}
.milestone:last-child { border-bottom: none; }
.milestone .slot {
  position: absolute; left: 0; top: .72rem;
  width: 4.3rem; font-size: .82rem; color: var(--muted); font-weight: bold;
}
.milestone strong { color: var(--ink); font-style: normal; }

.note {
  background: var(--bg-soft);
  border-left: 4px solid var(--crimson);
  padding: 1.1rem 1.4rem;
  border-radius: 0 4px 4px 0;
  color: var(--ink);
  margin: 1.5rem 0 0;
}
.note p { margin: .3rem 0; }

/* ---------- Organizers / lists ---------- */
ul.people { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
ul.people li {
  padding: .5rem 0;
  break-inside: avoid;
  border-bottom: 1px solid var(--rule);
}
ul.people li .name { font-variant: small-caps; letter-spacing: .02em; font-size: 1.05rem; }
ul.people li .affil { display: block; font-size: .92rem; }

.sponsors { list-style: none; margin: 0; padding: 0; }
.sponsors li { padding: .45rem 0; color: var(--muted); }
.sponsors li strong { color: var(--ink); font-style: normal; }

/* ---------- Location / cards ---------- */
.venue-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  background: var(--bg-soft);
  margin-bottom: 2rem;
}
.venue-card p { margin: .4rem 0; }
.hotel { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.hotel:last-child { border-bottom: none; }
.hotel .h-name { font-weight: bold; }
.hotel .h-desc { color: var(--muted); margin: .2rem 0 0; }

.btn {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  padding: .7rem 1.3rem;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: .4rem;
}
.btn:hover { background: var(--crimson-dark); text-decoration: none; }

/* ---------- Footer ---------- */
footer {
  border-top: 3px solid var(--crimson);
  background: var(--bg-soft);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  color: var(--muted);
  font-size: .92rem;
}
.footer-inner a { color: var(--crimson); }

/* ---------- Responsive ---------- */
/* Too narrow for the full row of tabs: let them scroll sideways. */
@media (max-width: 900px) {
  .nav-inner { padding: 0 .9rem; }
  .nav-links {
    overflow-x: auto;
    /* let the flex item shrink so it scrolls instead of stretching the bar */
    min-width: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  /* the scroll container clips the overhang, so sit the underline inside */
  .nav-links a { margin-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.95rem; }
  .wrap { padding: 2.5rem 1.2rem 3rem; }
  ul.people { columns: 1; }
  ul.talks li, .milestone { padding-left: 0; padding-top: 2rem; }
  ul.talks li .slot, .milestone .slot { top: .1rem; }
}
