/* =========================================================================
   17th World Congress of Accounting Historians
   Anaheim, California · 10–11 August 2028
   Archival palette: parchment ground, ink-brown serif text, gold accents.
   Body contrast is deliberately kept above WCAG AA.
   ========================================================================= */

:root {
  --parchment:    #f7f0dd;
  --parchment-2:  #efe4c7;
  --parchment-3:  #e7dab7;
  --ink:          #2f2617;
  --ink-soft:     #574734;
  --gold:         #8c6828;
  --gold-bright:  #c19a4f;
  --rule:         #d5c49c;
  --dark:         #2b2317;

  --font-display: 'Cormorant Garamond', 'Adobe Garamond Pro', Garamond, 'Times New Roman', serif;
  --font-body:    'EB Garamond', Garamond, 'Times New Roman', serif;

  --wrap:   1120px;
  --narrow: 760px;

  --shadow-soft: 0 2px 10px rgba(47, 38, 23, .10);
  --shadow-lift: 0 10px 30px rgba(47, 38, 23, .18);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow { max-width: var(--narrow); }
.center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--dark); color: var(--parchment);
  padding: .75rem 1.25rem; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 240, 221, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.25rem; flex-wrap: wrap;
}

.brand {
  display: flex; align-items: baseline; gap: .6rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display);
}
.brand-year { font-size: 1.4rem; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.brand-name { font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; }

.nav-list {
  display: flex; align-items: center; gap: 1.4rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--ink); border-bottom-color: var(--gold-bright); }

.nav-list .nav-cta {
  background: var(--gold); color: #fff;
  padding: .45rem 1rem; border-radius: 2px; border-bottom: none;
}
.nav-list .nav-cta:hover { background: var(--dark); color: #fff; }

@media (max-width: 860px) {
  .header-inner { min-height: 0; padding-top: .75rem; padding-bottom: .75rem; }
  .nav-list { gap: 1rem; flex-wrap: wrap; }
  .nav-list a { font-size: .95rem; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: min(88vh, 820px);
  padding: 5rem 0;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  /* The hero photograph is black and white; warm it to sit with the parchment palette. */
  filter: sepia(.55) contrast(1.05) brightness(.92);
}

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 23, 12, .55) 0%, rgba(30, 23, 12, .35) 45%, rgba(24, 18, 10, .72) 100%),
    radial-gradient(ellipse at center, rgba(28, 22, 12, .40) 0%, rgba(24, 18, 10, .78) 100%);
}

/* ----------------------------------------------------- placeholder copy --
   Draft text awaiting real content. Deliberately marked so it cannot ship
   unnoticed. Delete the wrapper along with the lorem ipsum.
   ----------------------------------------------------------------------- */

.placeholder {
  position: relative;
  border: 1px dashed #b8a878;
  background: repeating-linear-gradient(
    45deg, rgba(184, 168, 120, .07) 0 10px, transparent 10px 20px);
  padding: 2.1rem 1.25rem 1.25rem;
  margin: 0 0 1.5rem;
  border-radius: 2px;
}
.placeholder::before {
  content: "Placeholder copy \2014 awaiting final text";
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: #6b5a34; background: #e4d6ac;
  padding: .25rem .6rem;
}
.placeholder p { color: #6d5c41; font-style: italic; }
.placeholder p:last-child { margin-bottom: 0; }

.hero-inner { position: relative; }

.eyebrow {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  letter-spacing: .02em;
  margin: 0 0 .35rem;
  color: #f2e6c8;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: .005em;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero-title-sub { display: inline-block; font-weight: 600; }

.hero-date {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 600; letter-spacing: .06em;
  margin: 0 0 .1rem; color: #fff;
}
.hero-place {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 1.6rem; color: #ecdcb4;
}

.hero-auspices {
  max-width: 34rem; margin: 0 auto 2rem;
  font-size: 1.02rem; line-height: 1.6; color: #ece1c8;
}
.hero-auspices strong { color: #fff; font-weight: 600; }

.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin: 0; }

/* ------------------------------------------------- single-screen variant --
   Used by the reduced save-the-date page. The full-length version does not
   apply these, so both can share this stylesheet.
   ----------------------------------------------------------------------- */

.single-screen { background: var(--dark); }

.hero-standalone {
  min-height: 100vh;
  min-height: 100svh;   /* avoids the mobile browser chrome cropping the card */
  padding: 4rem 0 4.5rem;
}

.hero-standalone .hero-title { margin-bottom: .25rem; }
.hero-standalone .hero-auspices { margin-bottom: 0; }

.hero-credit {
  position: absolute; bottom: 1rem; left: 0; right: 0;
  margin: 0; padding: 0 1.5rem;
  text-align: center;
  font-size: .74rem; letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
}

@media (max-width: 480px) {
  .hero-standalone { padding: 3rem 0 4rem; }
  .hero-credit { font-size: .68rem; }
}

/* -------------------------------------------------------------- ornament */

.ornament { width: 2.4rem; height: 2.4rem; color: var(--gold-bright); flex: none; }
.ornament-sm { width: 1.35rem; height: 1.35rem; }

.rule-orn {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin: 1.5rem auto 1.6rem; max-width: 22rem;
}
.rule-orn-line { flex: 1 1 auto; height: 1px; background: currentColor; opacity: .5; color: var(--gold-bright); }
.rule-orn-footer { margin: 2.5rem auto 1.5rem; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none;
  padding: .8rem 1.9rem; border-radius: 2px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover, .btn-primary:focus-visible { background: #6f5119; border-color: #6f5119; color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }

/* -------------------------------------------------------------- sections */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-parchment { background: var(--parchment); }
.section-cream {
  background: var(--parchment-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-dark { background: var(--dark); color: var(--parchment); }
.section-dark .section-title { color: #f3e7c9; }
.section-dark a { color: var(--gold-bright); }

.section-title {
  display: flex; align-items: flex-start; gap: .7rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 600; line-height: 1.22;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
/* Optically centre the cross on the first line rather than the whole block. */
.section-title .ornament-sm { margin-top: .42em; }
.section-title-center { justify-content: center; text-align: center; }

.lede {
  font-size: 1.22rem; line-height: 1.68;
  color: var(--ink);
}
.lede strong { color: var(--gold); font-weight: 600; }

.section p { margin: 0 0 1.15rem; color: var(--ink-soft); }
.section p:last-child { margin-bottom: 0; }
.section strong { color: var(--ink); font-weight: 600; }

.subtle { color: var(--ink-soft); }

/* ------------------------------------------------------------ fact strip */

.fact-grid {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  background: var(--rule);
  border: 1px solid var(--rule);
}
.fact-grid li {
  background: var(--parchment);
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.fact-label {
  font-family: var(--font-display);
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.fact-value { font-size: 1.05rem; line-height: 1.4; color: var(--ink); }

/* ----------------------------------------------------------- split rows */

.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.55fr 1fr;
  align-items: start;
}
/* Reversed rows put the figure first, so the wide column must move with the text. */
.split-reverse { grid-template-columns: 1fr 1.55fr; }
.split-reverse .split-text { order: 2; }
.split-reverse .split-figure { order: 1; }

.split-figure { margin: 0; }
.split-figure img {
  width: 100%;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-soft);
}
.figure-credit {
  font-size: .85rem; line-height: 1.45; color: var(--ink-soft);
  padding-top: .5rem; font-style: italic;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 1; }
  .split-reverse .split-figure { order: 2; }
  .split-figure { max-width: 26rem; margin-inline: auto; }
}

/* ----------------------------------------------------------------- venue */

.venue-body { column-gap: 3rem; }
@media (min-width: 900px) { .venue-body { columns: 2; } .venue-body p { break-inside: avoid; } }

.note {
  margin: 2.25rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--parchment);
  border: 1px dashed var(--rule);
  border-left: 3px solid var(--gold-bright);
}
.note p { margin: 0; font-size: 1rem; }

/* ----------------------------------------------------------- photo pair */

.photo-pair {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
  margin: 2.25rem 0 0;
}
.photo-pair figure { margin: 0; }
.photo-pair img {
  width: 100%; height: 260px; object-fit: cover;
  border: 1px solid var(--rule); box-shadow: var(--shadow-soft);
}
.photo-pair figcaption {
  font-size: .92rem; line-height: 1.45; color: var(--ink-soft);
  padding-top: .5rem;
}
@media (max-width: 640px) {
  .photo-pair { grid-template-columns: 1fr; }
  .photo-pair img { height: 220px; }
}

/* ------------------------------------------------------------- committee */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.committee {
  width: 100%; border-collapse: collapse;
  font-size: 1.03rem;
  background: var(--parchment);
  border: 1px solid var(--rule);
}
.committee thead th {
  font-family: var(--font-display);
  font-size: .84rem; letter-spacing: .15em; text-transform: uppercase;
  text-align: left; color: #fff; background: var(--gold);
  padding: .75rem 1rem; white-space: nowrap;
}
.committee tbody th,
.committee tbody td {
  padding: .8rem 1rem;
  border-top: 1px solid var(--rule);
  text-align: left; vertical-align: top;
}
.committee tbody th {
  font-weight: 600; color: var(--ink); white-space: nowrap;
}
.committee tbody td { color: var(--ink-soft); }
.committee tbody td:last-child { font-style: italic; }
.committee tbody tr:nth-child(even) th,
.committee tbody tr:nth-child(even) td { background: rgba(213, 196, 156, .22); }

/* ---------------------------------------------------------------- beyond */

.beyond-grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr 1.15fr;
  align-items: start;
}
@media (max-width: 860px) { .beyond-grid { grid-template-columns: 1fr; } }

.highlight {
  padding: 1rem 1.25rem;
  background: var(--parchment);
  border-left: 3px solid var(--gold);
}
.highlight strong { color: var(--gold); }

.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: 210px; object-fit: cover;
  border: 1px solid var(--rule); box-shadow: var(--shadow-soft);
}
.gallery figcaption {
  font-family: var(--font-display);
  font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); padding-top: .45rem;
}
@media (max-width: 460px) { .gallery { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- cfp */

.forthcoming {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold-bright);
  margin: .5rem 0 1.25rem;
}
.section-dark .cfp-note { color: #d9cbab; max-width: 40rem; margin-inline: auto; }
.section-dark .cfp-note em { color: #f3e7c9; }

/* ------------------------------------------------------------------ form */

.signup { margin: 2.25rem 0 0; display: grid; gap: 1.15rem; }

.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--font-display);
  font-size: .88rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field .optional { text-transform: none; letter-spacing: 0; font-style: italic; opacity: .75; }

.field input[type="text"],
.field input[type="email"] {
  font-family: var(--font-body); font-size: 1.05rem;
  padding: .7rem .85rem;
  color: var(--ink); background: #fffdf6;
  border: 1px solid var(--rule); border-radius: 2px;
}
.field input:focus-visible { border-color: var(--gold); }

.field-check {
  grid-template-columns: auto 1fr; align-items: start; gap: .7rem;
}
.field-check input { margin-top: .45rem; width: 1.05rem; height: 1.05rem; accent-color: var(--gold); }
.field-check label {
  text-transform: none; letter-spacing: 0;
  font-family: var(--font-body); font-size: .98rem; line-height: 1.55;
}

.signup .btn { justify-self: start; }

.form-status { margin: 0; font-size: 1rem; min-height: 1.5rem; }
.form-status-info  { color: var(--gold); }
.form-status-error { color: #8c2f1e; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--dark); color: #cfc0a2;
  padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem;
  font-size: 1rem;
}
.site-footer a { color: var(--gold-bright); }

.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600; color: #f3e7c9;
  margin: 0 0 .5rem; line-height: 1.35;
}
.footer-meta { margin: 0; line-height: 1.6; }

.disclaimer {
  font-size: .85rem; color: #9d8f74; max-width: 44rem;
  margin: 0 0 1.75rem;
}

.credits { font-size: .92rem; color: #b9aa8c; }.credits summary {
  cursor: pointer; font-family: var(--font-display);
  letter-spacing: .1em; text-transform: uppercase; font-size: .82rem;
  color: var(--gold-bright);
}
.credits ul { margin: .9rem 0 0; padding-left: 1.2rem; }
.credits li { margin-bottom: .35rem; }

/* ----------------------------------------------------------------- print */

@media print {
  .site-header, .hero-actions, .signup, .nav-list { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { color: #000; min-height: 0; padding: 1rem 0; }
  .hero-media, .hero-scrim { display: none; }
  .hero-title, .hero-date { color: #000; text-shadow: none; }
  .section { padding: 1rem 0; border: 0; }
  .section-dark { background: #fff; color: #000; }
}
