/* NH AI event site. Navy on cream, one red accent, thin rules. */
:root {
  --navy: #10284a;
  --cream: #f3efe4;
  --paper: #faf8f2;
  --accent: #9a2b2b;
  --ink-dim: #3e4d63;
  --rule: #10284a;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

/* Grid and flex rules below would otherwise override the hidden attribute. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.5rem 0.75rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; color: var(--cream); }

/* Masthead */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0 1rem;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Type */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 7vw, 2.9rem); letter-spacing: -0.005em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
p { margin: 0 0 1rem; }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.lede { font-size: 1.2rem; line-height: 1.55; }
.dim { color: var(--ink-dim); }

/* Sections and double rules */
main section { padding: 2.5rem 0; }
.double {
  border: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  height: 4px;
  margin: 0;
}

.hero { padding-top: 3rem; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
}
.facts li::before { content: "\2014\00a0"; color: var(--accent); }

.button {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--navy);
  color: var(--cream);
  border: 1px solid var(--navy);
  padding: 0.8rem 1.4rem;
  font: 600 1rem var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.button[disabled] { opacity: 0.65; cursor: progress; }

/* When / where notice */
.notice {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.25rem 1.25rem 0.5rem;
  margin: 0;
}
.notice div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(16, 40, 74, 0.25);
}
.notice div:last-child { border-bottom: 0; }
.notice dt {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 0.2rem;
}
.notice dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}
.notice dd.tba { font-style: italic; color: var(--ink-dim); }
.notice-note { margin-top: 1rem; font-size: 0.95rem; }

/* Example builds */
.builds { list-style: none; padding: 0; margin: 0; counter-reset: b; }
.builds li {
  counter-increment: b;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  padding: 1rem 0;
  border-top: 1px solid rgba(16, 40, 74, 0.25);
}
.builds li:last-child { border-bottom: 1px solid rgba(16, 40, 74, 0.25); }
.builds li::before {
  content: counter(b, upper-roman) ".";
  font-family: var(--serif);
  color: var(--accent);
  font-weight: 600;
}
.builds p { margin: 0; }

/* "What you will see" stage (see.js). The one dark panel on the page: it stands for the screen
   at the front of the room. With the script running, the plain list above is the fallback only. */
.has-stage .builds, .has-stage .builds-intro { display: none; }
.see-more { display: none; margin-top: 1.5rem; }
.has-stage .see-more { display: block; }
.wrap.wide { max-width: 62rem; }

/* "What you will see": six cards. The 1px gap over navy draws the rules between them. */
.cards {
  list-style: none; padding: 0; margin: 0.75rem 0 0;
  counter-reset: c;
  display: grid; gap: 1px;
  background: var(--navy); border: 1px solid var(--navy);
}
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards li { counter-increment: c; background: var(--paper); padding: 1.4rem 1.3rem 1.5rem; }
.cards .card-k {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--accent); margin: 0 0 0.6rem;
}
.cards .card-k::before { content: counter(c) "\00a0\00a0"; color: var(--ink-dim); }
.cards h3 { font-size: 1.4rem; line-height: 1.18; margin: 0 0 0.6rem; text-wrap: balance; }
.cards li > p:last-child { margin: 0; color: var(--ink-dim); font-size: 0.98rem; line-height: 1.5; }
.cards-note { margin: 1.5rem 0 0; }

.see-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 0.75rem; }
@media (min-width: 40rem) { .see-tabs { grid-template-columns: repeat(4, 1fr); } }
.see-tabs button {
  font: 600 0.95rem var(--sans);
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--navy);
  margin: 0 -1px -1px 0;
  padding: 0.7rem 0.5rem;
  border-radius: 0;
  cursor: pointer;
}
.see-tabs button:hover { color: var(--accent); }
.see-tabs button[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.see-tabs button:focus-visible { position: relative; z-index: 1; }

.stage { background: var(--navy); color: var(--cream); border: 1px solid var(--navy); }
.stage-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 1.1rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.stage-clock { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; font-size: 0.95rem; }
.stage-meter { height: 2px; background: rgba(243, 239, 228, 0.22); }
.stage-meter i { display: block; height: 100%; background: var(--cream); transform: scaleX(0); transform-origin: left; }

.stage-grid { display: grid; gap: 1.5rem; padding: 1.25rem 1.1rem 0.5rem; }
@media (min-width: 52rem) {
  .stage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem; padding: 1.75rem 1.75rem 0.75rem; }
}
.stage-h {
  font: 600 0.78rem var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.7);
  margin: 0 0 0.7rem;
}

.paper {
  background: var(--paper);
  color: var(--navy);
  padding: 1.1rem 1.1rem 0.6rem;
  font-size: 0.98rem;
  line-height: 1.55;
}
.paper-label { font-size: 0.8rem; color: var(--ink-dim); margin: 0 0 0.7rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(16, 40, 74, 0.25); }
.paper .ln { margin: 0 0 0.6rem; }
.paper .ln.meta { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 0.25rem; }
.paper-receipt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.86rem; max-width: 21rem; }
.paper-receipt .ln { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.35rem; }
.paper-receipt .ln.shop { font-weight: 700; }
.paper-receipt .ln.sum { border-top: 1px dashed var(--navy); padding-top: 0.4rem; margin-top: 0.5rem; font-weight: 700; }
.paper-receipt .ln.meta { letter-spacing: 0; text-transform: none; font-size: inherit; }

/* A fact in the source. Marked the moment it is read, and it stays marked. */
.paper mark {
  background: linear-gradient(rgba(154, 43, 43, 0.16), rgba(154, 43, 43, 0.16)) no-repeat left / 0% 100%;
  color: inherit;
  box-shadow: inset 0 -2px 0 transparent;
  transition: background-size 0.4s ease-out, box-shadow 0.4s;
}
.paper mark.on { background-size: 100% 100%; box-shadow: inset 0 -2px 0 var(--accent); }
.paper mark.now { background-image: linear-gradient(rgba(154, 43, 43, 0.34), rgba(154, 43, 43, 0.34)); }

.result { margin: 0; }
.result .r {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(243, 239, 228, 0.22);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.result .r.on { opacity: 1; transform: none; }
.result .r.long { grid-template-columns: 1fr; gap: 0.2rem; }
.result dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: rgba(243, 239, 228, 0.7); padding-top: 0.25rem; }
.result dd { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.4; overflow-wrap: anywhere; }
.result .r.long dd { font-size: 1rem; line-height: 1.5; border-left: 2px solid var(--cream); padding-left: 0.8rem; margin: 0.2rem 0 0.3rem; }
.result .w { opacity: 0; transition: opacity 0.18s; }
.result .w.on { opacity: 1; }

.stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px solid rgba(243, 239, 228, 0.22);
  margin-top: 0.75rem;
}
@media (min-width: 52rem) { .stage-foot { padding: 1rem 1.75rem 1.25rem; } }
.stage-foot p { margin: 0; font-size: 0.86rem; color: rgba(243, 239, 228, 0.78); flex: 1 1 18rem; }
.stage-again {
  font: 600 0.9rem var(--sans);
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--cream);
  padding: 0.5rem 0.9rem;
  border-radius: 0;
  cursor: pointer;
}
.stage-again:hover { background: var(--cream); color: var(--navy); }
.stage :focus-visible { outline-color: var(--cream); }

/* On a phone the two halves stack, so keep the source short enough that the first results show
   under it while it plays. */
@media (max-width: 39.99rem) {
  .see-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .see-tabs::-webkit-scrollbar { display: none; }
  .see-tabs button { flex: 1 0 auto; padding: 0.65rem 0.9rem; white-space: nowrap; }
  .stage-grid { gap: 1rem; padding-top: 0.9rem; }
  .stage-h { margin-bottom: 0.45rem; }
  .paper { font-size: 0.88rem; line-height: 1.45; padding: 0.8rem 0.85rem 0.3rem; }
  .paper-label { margin-bottom: 0.5rem; padding-bottom: 0.4rem; }
  .paper .ln { margin-bottom: 0.45rem; }
  .result .r { grid-template-columns: 6.25rem 1fr; padding: 0.4rem 0; }
  .result dd { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  .paper mark, .result .r, .result .w { transition: none; }
}

/* "Why this year": the one place the page presses. Kept to a headline and two sentences. */
.now .wrap { border-left: 3px solid var(--accent); padding-left: 1.25rem; margin-left: auto; }
.now h2 { font-size: clamp(1.6rem, 5.5vw, 2.1rem); }
.now .source { font-size: 0.82rem; color: var(--ink-dim); margin-bottom: 0; }
@media (max-width: 46rem) { .now .wrap { margin: 0 1.25rem; padding-right: 0; } }

/* Common questions: plain text on the page, mirrored word for word in the FAQPage data. */
.faq { margin: 0; }
.faq > div { padding: 1rem 0; border-top: 1px solid rgba(16, 40, 74, 0.25); }
.faq > div:last-child { padding-bottom: 0; }
.faq dt { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.3rem; }
.faq dd { margin: 0; }

/* Form */
form { margin-top: 1.5rem; }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
label .opt { font-weight: 400; color: var(--ink-dim); }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: 0;
  padding: 0.65rem 0.7rem;
}
select { appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2310284a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 0.75rem;
  padding-right: 2rem;
}
textarea { min-height: 5.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }
.row { display: grid; gap: 0 1rem; }
@media (min-width: 38rem) { .row { grid-template-columns: 1fr 1fr; } }

.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-msg {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.75rem;
  margin: 1rem 0 0;
  color: var(--accent);
  background: var(--paper);
}
.consent { font-size: 0.88rem; margin-top: 1rem; color: var(--ink-dim); }

.confirm {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.5rem 1.25rem;
  margin-top: 1.5rem;
}
.confirm p { margin: 0; font-family: var(--serif); font-size: 1.25rem; }

/* Policy page */
.policy .double { margin: 1.75rem 0 0; }
.policy h2 { font-size: 1.25rem; margin-top: 2rem; }
.policy ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.policy li { margin-bottom: 0.35rem; }

/* Footer */
.site-foot {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
}
.site-foot p { margin-bottom: 0.6rem; }
.site-foot .indep { font-weight: 600; }

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .skip, .button, form, .consent, .form-msg { display: none !important; }
  a { color: #000; }
  .notice, .confirm { background: #fff; }
  main section { padding: 1rem 0; break-inside: avoid; }
  .site-foot a[href]::after { content: " (" attr(href) ")"; }
}
