/* ===== Sim2Real2Field companion site — navy + gold, Palatino / Tufte feel ===== */
:root {
  --blue:   #0b3a6f;   /* simulation = deep navy blue (primary) */
  --blue-2: #14529c;   /* lighter blue for links/hover */
  --gold:   #f2b50a;   /* reality = warm gold (accent) */
  --gold-d: #a9780a;   /* deeper gold for small text accents */
  --ink:    #1a1a1a;
  --muted:  #5b554a;
  --bg:     #fffdf7;   /* warm cream (Tufte) */
  --soft:   #f7f1e3;   /* soft section background */
  --line:   #e7ddc8;   /* warm hairline */
  --serif:  "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L",
            "P052", "Palatino LT STD", Georgia, "Times New Roman", serif;
  --maxw:   760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  counter-reset: section;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--gold-d); text-decoration: underline; text-underline-offset: 2px; }

/* ===== Wordmark ===== */
.sim   { color: var(--blue); font-weight: 700; }
.real  { color: var(--blue); font-weight: 700; }
.field { color: var(--blue); font-weight: 700; }
.two   { color: var(--gold); font-weight: 700; }

/* ===== Nav (journal masthead) ===== */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,253,247,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; text-align: center; }
/* brand tier collapses (grid-template-rows 1fr -> 0fr) once the hero scrolls past */
.masthead-brand {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.masthead-brand-inner { overflow: hidden; min-height: 0; }
.nav.compact .masthead-brand { grid-template-rows: 0fr; }
.brand {
  display: inline-block; padding: 14px 0 5px;
  font-size: 1.45rem; letter-spacing: -0.01em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.nav-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  border-top: 1px solid var(--line);
  transition: border-color 0.35s ease;
}
.nav.compact .nav-links { border-top-color: transparent; }
.nav-links a {
  position: relative; margin: 0 13px; padding: 9px 1px 10px;
  color: var(--muted); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }
/* middot separators, kept outside the link's underline */
.nav-links a:not(:last-child)::after {
  content: "\00B7"; position: absolute; right: -16px; top: 9px;
  color: var(--muted); opacity: 0.4; pointer-events: none;
}
.nav-links a.active { color: var(--blue); border-bottom-color: var(--gold); }

/* ===== Floating CfP button ===== */
.cfp-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 9;
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap;
  border: 1px solid var(--gold-d);
  box-shadow: 0 2px 12px rgba(11, 58, 111, 0.22);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cfp-fab:hover {
  background: var(--blue); border-color: var(--blue);
  color: #fffdf7; text-decoration: none; transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero { padding: 104px 0 80px; text-align: center; }
.wordmark {
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1; font-weight: 700;
}
.hero-sub {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: var(--ink); font-weight: 600; font-style: italic; margin: 0 0 20px;
}
.hero-meta { color: var(--muted); font-size: 1.02rem; margin: 0 0 18px; }
.hero-tagline {
  max-width: 580px; margin: 0 auto; color: var(--ink);
  font-size: 1.12rem; font-style: italic;
}
.hero-cta { margin: 26px 0 0; }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 3px;
  background: var(--blue); color: #fffdf7; font-weight: 700;
  font-size: 0.92rem; letter-spacing: 0.04em;
  border: 1px solid var(--blue);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: var(--gold); border-color: var(--gold);
  color: var(--ink); text-decoration: none;
}
.sim-real-bar {
  height: 3px; width: 240px; margin: 40px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.tba-inline { color: var(--muted); font-style: italic; }

/* ===== Sections ===== */
.section { padding: 68px 0; border-top: 1px solid var(--line); scroll-margin-top: 56px; }
.section-soft { background: var(--soft); }
.section h2 {
  font-size: 1.9rem; letter-spacing: -0.01em; color: var(--blue);
  margin: 0 0 22px; padding-bottom: 12px; position: relative; font-weight: 700;
}
/* numbered kicker (01, 02, ...) */
.section h2::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  display: block;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--gold-d); margin-bottom: 6px;
}
/* gold underline */
.section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 52px; height: 3px; border-radius: 2px; background: var(--gold);
}
.section p { margin: 0 0 18px; }
.q-head {
  font-size: 1.25rem; margin: 30px 0 12px; color: var(--blue); font-weight: 700;
}
.note { color: var(--muted); font-size: 0.98rem; font-style: italic; }
strong { font-weight: 700; }

/* ===== CfP callout ===== */
.callout {
  background: rgba(242, 181, 10, 0.10);
  border: 1px solid var(--gold); border-left: 4px solid var(--gold);
  border-radius: 4px; padding: 18px 24px; margin: 24px 0;
}
.callout-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--gold-d); margin: 0 0 10px;
}
.callout ul { margin: 0; padding-left: 22px; }
.callout li { margin-bottom: 10px; }
.callout li:last-child { margin-bottom: 0; }
.callout li::marker { color: var(--gold-d); }
.cfp-actions { margin: 24px 0; }

.questions { margin: 0; padding-left: 26px; }
.questions li { margin-bottom: 12px; }
.questions li::marker { color: var(--gold-d); }

/* ===== Program table ===== */
.schedule { width: 100%; border-collapse: collapse; margin-top: 14px; }
.schedule td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule tr:last-child td { border-bottom: none; }
.schedule td.t {
  width: 64px; color: var(--gold-d); font-variant-numeric: tabular-nums;
  font-weight: 700; white-space: nowrap;
}
.schedule em { color: var(--blue); font-style: italic; }

/* ===== Organizers / Speakers ===== */
.org-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 36px;
}
.org-grid li {
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.avatar {
  width: 68px; height: 68px; flex: 0 0 auto;
  border-radius: 50%; object-fit: cover; object-position: center top;
  background: var(--soft); border: 1px solid var(--line);
}
.person-info { display: flex; flex-direction: column; min-width: 0; }
.org-name { font-weight: 700; color: var(--ink); }
a.org-name {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line); width: max-content;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a.org-name:hover {
  color: var(--blue); border-bottom-color: var(--gold);
}
.org-aff { color: var(--muted); font-size: 0.96rem; font-style: italic; }

/* ===== Info ===== */
.info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px;
}
.info-item {
  display: flex; flex-direction: column;
  border-left: 3px solid var(--blue); padding: 4px 0 4px 16px;
}
.info-label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold-d); font-weight: 700;
}
.contact { font-size: 1.05rem; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line); padding: 36px 0;
  text-align: center; color: var(--muted); font-size: 0.95rem;
}
.footer p { margin: 4px 0; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  body { font-size: 1.1rem; }
  .brand { font-size: 1.25rem; padding: 12px 0 3px; }
  .nav-links a { margin: 0 9px; font-size: 0.72rem; }
  .nav-links a:not(:last-child)::after { right: -12px; top: 10px; }
  .cfp-fab { bottom: 18px; right: 16px; }
  .section { scroll-margin-top: 96px; }
  .org-grid, .info-grid { grid-template-columns: 1fr; }
  .org-grid li { padding: 12px 0; }
  .hero { padding: 72px 0 52px; }
  .section { padding: 52px 0; }
}
