/* ==========================================================================
   Cell Wall 2027 — Brisbane
   Palette taken from the subject: the oxidised copper dome of Customs House
   (verdigris), the magenta of a phloroglucinol lignin stain, and the cool
   grey-green of a stained tissue section.
   ========================================================================== */

:root {
  --ink:        #17201E;
  --ink-soft:   #39433F;
  --muted:      #5E6764;
  --verdigris:  #37766A;
  --verd-deep:  #23524A;
  --verd-wash:  #EDF3F1;
  --lignin:     #A6335F;
  --paper:      #FBFAF7;
  --stone:      #ECEAE2;
  --line:       #D7D4CA;
  --line-soft:  #E6E3DA;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 68ch;
  --wrap: 76rem;
  --gutter: 1.5rem;
  --radius: 3px;
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--verd-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--lignin); }
:focus-visible { outline: 3px solid var(--lignin); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1rem;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* --- type ----------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.2rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 600; }
p, ul, ol, dl, table { margin: 0 0 1.1rem; }
.prose p, .prose li { max-width: var(--measure); }
.prose h2 { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.prose h3 { margin-top: 1.8rem; }
.prose > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); }

/* a placeholder that is impossible to miss, and easy to grep for */
.tbc {
  display: inline-block; font: 500 .8125rem/1 var(--sans);
  color: var(--verd-deep); background: var(--verd-wash);
  border: 1px dashed var(--verdigris); border-radius: var(--radius);
  padding: .32em .55em; vertical-align: baseline;
}
.tbc-inline { color: var(--muted); font-style: italic; }
.note {
  border-left: 3px solid var(--verdigris); background: var(--verd-wash);
  padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.note > :last-child { margin-bottom: 0; }
.note p { max-width: none; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-block; font: 500 .95rem/1 var(--sans); text-decoration: none;
  padding: .85em 1.4em; border-radius: var(--radius); border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-solid { background: var(--verd-deep); color: #fff; }
.btn-solid:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--verd-deep); color: var(--verd-deep); }
.btn-ghost:hover { background: var(--verd-deep); color: #fff; }
.btn-disabled { background: var(--stone); color: var(--muted); cursor: not-allowed; }

/* --- masthead ------------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.masthead-in {
  max-width: var(--wrap); margin-inline: auto; padding: .6rem var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--verdigris); display: block; flex: none; }
.brand-mark svg { display: block; width: 38px; height: 38px; }
.brand-name { font: 600 1.15rem/1 var(--serif); letter-spacing: -.01em; display: block; }
.brand-year { color: var(--verdigris); }
.brand-sub { font: 400 .75rem/1.3 var(--sans); color: var(--muted); display: block; margin-top: .2rem; }

.burger { display: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font: 500 .9rem/1 var(--sans); color: var(--ink-soft);
  background: none; border: 0; cursor: pointer;
  padding: .65rem .6rem; text-decoration: none; border-radius: var(--radius);
}
.nav-link:hover { color: var(--verd-deep); background: var(--verd-wash); }
.nav-link.is-active { color: var(--verd-deep); box-shadow: inset 0 -2px 0 var(--verdigris); }
.chev {
  width: .42em; height: .42em; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, -1px);
}
.sub {
  position: absolute; top: calc(100% + .3rem); left: 0; min-width: 13rem;
  list-style: none; margin: 0; padding: .35rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 8px 26px rgba(23, 32, 30, .1);
  display: none;
}
.nav-item.has-sub:hover .sub,
.nav-toggle[aria-expanded="true"] + .sub { display: block; }
.sub a {
  display: block; padding: .5rem .65rem; font-size: .9rem;
  color: var(--ink-soft); text-decoration: none; border-radius: var(--radius);
}
.sub a:hover { background: var(--verd-wash); color: var(--verd-deep); }
.sub a[aria-current="page"] { color: var(--verd-deep); font-weight: 500; }
.nav-cta { padding: .6em 1em; font-size: .875rem; }
.nav-cta-soon { font: 400 .8rem/1.2 var(--sans); color: var(--muted); font-style: italic; }

/* --- hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/tessellation.svg") center / cover no-repeat;
  opacity: .9;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--paper) 34%, rgba(251, 250, 247, .55) 68%, rgba(251, 250, 247, .2));
}
.hero-in { position: relative; z-index: 1; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-kicker { font: 500 .875rem/1.4 var(--sans); color: var(--verd-deep); margin: 0 0 .9rem; }
.hero h1 { margin: 0 0 .25em; max-width: 16ch; }
.hero h1 .yr { color: var(--verdigris); }
.hero-meta { font: 600 1.2rem/1.4 var(--sans); margin: 0 0 .25rem; }
.hero-place { color: var(--muted); margin: 0 0 1.8rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* --- key dates: a real sequence, so a timeline is warranted ---------------- */
.dates { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--stone); }
.dates h2 { margin-bottom: 1.5rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 1.5rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.tl-item:first-child { border-top: 1px solid var(--line); }
.tl-dot { position: relative; align-self: center; height: 100%; }
.tl-dot::before {
  content: ""; position: absolute; left: .3rem; top: 50%; transform: translateY(-50%);
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--verdigris);
}
.tl-item.is-set .tl-dot::before { background: var(--verdigris); }
.tl-label { font-weight: 500; }
.tl-when { font-variant-numeric: tabular-nums; text-align: right; }
.tl-when .tbc { font-size: .75rem; }

/* --- generic sections ----------------------------------------------------- */
.band { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.band + .band { border-top: 1px solid var(--line-soft); }
.band-tint { background: var(--verd-wash); }
.cols { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .cols-2 { grid-template-columns: 1fr 1fr; } }

.pagehead { background: var(--stone); border-bottom: 1px solid var(--line); padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.pagehead h1 { margin: 0; }
.standfirst { font-size: 1.15rem; color: var(--ink-soft); margin: .7rem 0 0; max-width: 58ch; }
.prose { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem); }

/* --- tables --------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--verd-deep); color: #fff; font: 500 .85rem/1.3 var(--sans); border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(236, 234, 226, .5); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- accordion (posters) -------------------------------------------------- */
.acc { border-top: 1px solid var(--line); margin: 1.5rem 0; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer; padding: 1rem .2rem; font: 600 1.05rem/1.3 var(--serif);
  list-style: none; display: flex; align-items: center; gap: .7rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before {
  content: ""; flex: none; width: .5em; height: .5em;
  border-right: 2px solid var(--verdigris); border-bottom: 2px solid var(--verdigris);
  transform: rotate(-45deg); transition: transform .18s ease;
}
.acc details[open] summary::before { transform: rotate(45deg); }
.acc .acc-body { padding: 0 .2rem 1.2rem 1.5rem; }
.acc .acc-count { margin-left: auto; font: 400 .85rem/1 var(--sans); color: var(--muted); }

/* --- sponsor tiers -------------------------------------------------------- */
.tiers { display: grid; gap: 0; margin: 1.75rem 0; border-top: 2px solid var(--verd-deep); }
.tier {
  display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: baseline;
  padding: 1rem .2rem; border-bottom: 1px solid var(--line);
}
.tier-name { font: 600 1.2rem/1 var(--serif); }
.tier-avail { color: var(--muted); font-size: .9rem; }
.tier-price { font: 600 1.15rem/1 var(--sans); font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) {
  .tier { grid-template-columns: 1fr auto; }
  .tier-avail { grid-column: 1 / -1; }
}

/* --- signup + footer ------------------------------------------------------ */
.signup { background: var(--verd-deep); color: #fff; padding: clamp(2.2rem, 4vw, 3.2rem) 0; }
.signup h2 { color: #fff; margin-bottom: .4rem; }
.signup p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 46ch; }
.signup a { color: #fff; }
.signup-in { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 54rem) { .signup-in { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.signup-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup-form input {
  flex: 1 1 14rem; min-width: 0; padding: .8rem .9rem; font: 400 1rem var(--sans);
  border: 1.5px solid rgba(255, 255, 255, .4); border-radius: var(--radius);
  background: rgba(255, 255, 255, .08); color: #fff;
}
.signup-form input::placeholder { color: rgba(255, 255, 255, .55); }
.signup-form .btn-solid { background: var(--paper); color: var(--verd-deep); }
.signup-form .btn-solid:hover { background: #fff; color: var(--ink); }
.signup-fallback p { font-size: .95rem; }

.foot { background: var(--ink); color: rgba(255, 255, 255, .78); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; font-size: .92rem; }
.foot a { color: #fff; }
.foot a:hover { color: #fff; text-decoration-color: var(--lignin); }
.foot-in { display: grid; gap: 2rem; }
@media (min-width: 50rem) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot p { margin: 0 0 .35rem; }
.foot-name { font-family: var(--serif); font-size: 1.1rem; color: #fff; margin-bottom: .6rem; }
.foot-h { color: #fff; font-weight: 600; margin-bottom: .5rem; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: .35rem; }
.foot .tbc-inline { color: rgba(255, 255, 255, .5); }
.foot-fine { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.foot-fine p { font-size: .82rem; color: rgba(255, 255, 255, .55); max-width: none; }

/* --- mobile nav ----------------------------------------------------------- */
@media (max-width: 62rem) {
  .burger {
    display: block; margin-left: auto; width: 2.75rem; height: 2.75rem;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    cursor: pointer; position: relative;
  }
  .burger-bars, .burger-bars::before, .burger-bars::after {
    content: ""; position: absolute; left: 50%; width: 1.2rem; height: 1.5px;
    background: var(--ink); transform: translateX(-50%);
  }
  .burger-bars { top: 50%; margin-top: -.75px; }
  .burger-bars::before { top: -6px; left: 0; transform: none; }
  .burger-bars::after { top: 6px; left: 0; transform: none; }
  .burger[aria-expanded="true"] .burger-bars { background: transparent; }
  .burger[aria-expanded="true"] .burger-bars::before { transform: rotate(45deg); top: 0; }
  .burger[aria-expanded="true"] .burger-bars::after { transform: rotate(-45deg); top: 0; }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.2rem; max-height: 78vh; overflow-y: auto;
    box-shadow: 0 14px 24px rgba(23, 32, 30, .08);
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav-link { width: 100%; justify-content: space-between; padding: .9rem .2rem; font-size: 1rem; }
  .nav-link.is-active { box-shadow: none; }
  .sub {
    position: static; display: none; box-shadow: none; border: 0;
    background: none; padding: 0 0 .7rem .9rem; min-width: 0;
  }
  .nav-item.has-sub:hover .sub { display: none; }
  .nav-toggle[aria-expanded="true"] + .sub { display: block; }
  .nav-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg) translate(-2px, -2px); }
  .nav-cta, .nav-cta-soon { margin-top: 1rem; align-self: flex-start; }
}

@media print {
  .masthead, .signup, .burger, .hero::before, .hero::after { display: none; }
  body { background: #fff; font-size: 11pt; }
}
