@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Fraunces:opsz,wght,SOFT,WONK@9..144,600..800,70,1&display=swap");

:root {
  --ink: #181611;
  --paper: #f2dcc0;
  --porch: #ca9961;
  --porch-light: #e8c782;
  --porch-deep: #906634;
  --cardboard: #ceae8e;
  --cardboard-soft: #ead2b5;
  --fur: #674c2f;
  --fur-dark: #251c13;
  --leaf: #4b5844;
  --clay: #934832;
  --sky: #95c8f5;
  --sky-soft: #d7e8f1;
  --night: #251c13;
  --bone: #fff7e6;
  --gold: #ca9961;
  --line: rgba(24, 22, 17, 0.16);
  --shadow: 0 24px 70px rgba(24, 22, 17, 0.22);
  --display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --brand-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --plain: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(37, 28, 19, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 28, 19, 0.02) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--plain);
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 54px);
  background: linear-gradient(rgba(24, 22, 17, 0.64), rgba(24, 22, 17, 0.08), transparent);
  color: var(--bone);
  border-bottom: 0;
}

.brand {
  font-family: var(--brand-display);
  font-size: 27px;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
  opacity: 0.86;
}

nav a.active,
nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 112px clamp(18px, 5vw, 72px) 74px;
  background: var(--night);
  color: var(--bone);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(37, 28, 19, 0.80) 0%, rgba(37, 28, 19, 0.58) 32%, rgba(37, 28, 19, 0.14) 72%),
    linear-gradient(0deg, rgba(37, 28, 19, 0.82) 0%, rgba(37, 28, 19, 0.18) 46%, rgba(37, 28, 19, 0.10) 100%);
  pointer-events: none;
}

.hero-picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.94) contrast(1.04);
}

.hero-copy {
  width: min(810px, 100%);
  padding-bottom: clamp(20px, 5vh, 58px);
}

.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--porch-deep);
}

.hero .kicker {
  color: var(--porch);
}

.hero h1,
.page-head h1,
.friend-shell h1 {
  margin: 0;
  max-width: 830px;
  font-family: var(--display);
  font-size: clamp(48px, 9.1vw, 112px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.spell {
  margin: 24px 0 0;
  max-width: 560px;
  font-size: clamp(25px, 3.4vw, 44px);
  font-family: var(--display);
  font-weight: 600;
  color: #fff2d3;
  text-wrap: balance;
}

.hero-caption {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 28px;
  width: min(360px, calc(100% - 36px));
  padding-top: 14px;
  border-top: 1px solid rgba(255, 247, 230, 0.36);
  color: rgba(255, 247, 230, 0.84);
  font-size: 14px;
  font-weight: 750;
}

.manifesto-teaser {
  background:
    linear-gradient(135deg, rgba(255, 247, 230, 0.34), rgba(202, 153, 97, 0.16)),
    var(--cardboard-soft);
  border-top: 1px solid rgba(103, 76, 47, 0.18);
  border-bottom: 1px solid rgba(103, 76, 47, 0.18);
}

.text-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--fur-dark);
  font-family: var(--plain);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 12px 20px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.hero .button.primary {
  background: var(--porch);
  color: var(--ink);
  border-color: var(--porch);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

.hero .button.secondary {
  color: var(--bone);
  border-color: rgba(255, 247, 230, 0.72);
  background: rgba(255, 247, 230, 0.08);
  backdrop-filter: blur(10px);
}

.button.danger {
  border-color: #9d332c;
  color: #9d332c;
}

.wide {
  width: 100%;
}

.band {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.band.muted {
  background: var(--cardboard-soft);
}

.encounter-band {
  background:
    linear-gradient(90deg, rgba(255, 247, 230, 0.40), rgba(202, 153, 97, 0.12)),
    #e7bd73;
  color: var(--fur-dark);
}

.encounter-band .kicker,
.appearances-band .kicker {
  color: var(--clay);
}

.narrow {
  max-width: 760px;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

.split.top {
  align-items: start;
}

.body-copy {
  max-width: 790px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 560;
  line-height: 1.16;
}

.body-copy p {
  margin: 0 0 24px;
}

h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.narrow p,
.steps li {
  font-size: 20px;
}

.ritual-band {
  padding: 34px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(37, 28, 19, 0.92), rgba(76, 53, 33, 0.96)),
    var(--fur-dark);
  color: var(--bone);
}

.steps {
  max-width: none;
}

.steps ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(206, 174, 142, 0.34);
  border-bottom: 1px solid rgba(206, 174, 142, 0.34);
}

.steps li {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 34px);
  border-right: 1px solid rgba(206, 174, 142, 0.34);
  background: transparent;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.08;
}

.steps li:last-child {
  border-right: 0;
}

.steps span {
  display: block;
  margin-bottom: 18px;
  font-weight: 900;
  color: var(--porch);
  font-family: var(--plain);
  font-size: 13px;
}

.schedule-list {
  max-width: none;
  border-bottom: 1px solid rgba(37, 28, 19, 0.18);
}

.appearances-band {
  background:
    linear-gradient(180deg, rgba(149, 200, 245, 0.42), rgba(206, 174, 142, 0.34)),
    var(--sky-soft);
}

.event-row,
.session-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid rgba(37, 28, 19, 0.18);
  text-decoration: none;
}

.event-row h3,
.session-row strong {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.1;
}

.event-row h3 {
  font-family: var(--display);
  font-weight: 650;
}

.event-row time {
  color: var(--porch-deep);
  font-weight: 900;
}

.event-row p,
.session-row span,
.small-note {
  margin: 0;
  color: rgba(33, 31, 26, 0.68);
}

.privacy {
  background:
    linear-gradient(135deg, rgba(75, 88, 68, 0.96), rgba(103, 76, 47, 0.92)),
    var(--leaf);
  color: var(--bone);
}

.privacy .kicker {
  color: var(--porch-light);
}

.privacy .body-copy p {
  color: rgba(255, 247, 230, 0.88);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  background: var(--fur-dark);
  color: rgba(255, 247, 230, 0.84);
  border-top: 1px solid rgba(206, 174, 142, 0.22);
  font-size: 14px;
}

.page-head,
.admin-head {
  padding: 132px min(7vw, 88px) 24px;
}

.manifesto-hero {
  position: relative;
  overflow: hidden;
  padding: 142px clamp(20px, 7vw, 108px) 92px;
  background:
    linear-gradient(90deg, rgba(37, 28, 19, 0.92) 0%, rgba(37, 28, 19, 0.68) 32%, rgba(37, 28, 19, 0.08) 64%, rgba(37, 28, 19, 0) 100%),
    url("/static/img/arrowtree-hero.jpg") right center / contain no-repeat,
    var(--night);
  color: var(--bone);
}

.manifesto-hero.origin-hero {
  background:
    linear-gradient(90deg, rgba(37, 28, 19, 0.92) 0%, rgba(37, 28, 19, 0.68) 32%, rgba(37, 28, 19, 0.08) 64%, rgba(37, 28, 19, 0) 100%),
    url("/static/img/arrowtree-origin-hero.png") right center / contain no-repeat,
    var(--night);
}

.manifesto-hero.appearances-hero {
  background:
    linear-gradient(90deg, rgba(37, 28, 19, 0.92) 0%, rgba(37, 28, 19, 0.68) 32%, rgba(37, 28, 19, 0.08) 64%, rgba(37, 28, 19, 0) 100%),
    url("/static/img/arrowtree-appearances-hero.png") right center / contain no-repeat,
    var(--night);
}

.manifesto-hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 116px);
  font-weight: 700;
  line-height: 0.92;
  text-wrap: balance;
}

.manifesto-hero-lines {
  margin: 28px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.02;
  color: #ffe7ba;
}

.manifesto-hero-lines p,
.manifesto-subtitle {
  margin: 0;
}

.manifesto-subtitle {
  max-width: 650px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 247, 230, 0.34);
  color: rgba(255, 247, 230, 0.86);
  font-weight: 760;
}

.manifesto-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 108px) 22px clamp(78px, 10vw, 136px);
  font-family: var(--display);
  font-size: clamp(23px, 2.25vw, 31px);
  font-weight: 560;
  line-height: 1.42;
}

.manifesto-body main {
  background:
    linear-gradient(180deg, var(--cardboard-soft), #f3dfc6 48%, #e6c79b);
}

.manifesto-page p {
  margin: 1.2em 0;
}

.manifesto-page strong {
  font-weight: 700;
}

.manifesto-page .manifesto-lead {
  font-size: 1.12em;
  font-weight: 640;
  line-height: 1.3;
  margin-bottom: 1.4em;
}

.manifesto-page .manifesto-call {
  font-size: 1.18em;
  text-align: center;
  margin: 1.8em 0;
  color: var(--porch-deep);
}

.manifesto-page .small-break {
  margin: 3.2rem 0;
  text-align: center;
  color: var(--porch-deep);
  opacity: 0.74;
}

.manifesto-closing {
  margin-top: clamp(54px, 8vw, 86px);
  padding: clamp(28px, 5vw, 46px) 0 0;
  border-top: 1px solid rgba(103, 76, 47, 0.22);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}

.manifesto-closing p {
  margin: 0.2em 0;
}

.host-info-hero {
  background:
    linear-gradient(90deg, rgba(37, 28, 19, 0.92) 0%, rgba(37, 28, 19, 0.68) 32%, rgba(37, 28, 19, 0.08) 64%, rgba(37, 28, 19, 0) 100%),
    url("/static/img/arrowtree-performance-hero.jpg") right center / contain no-repeat,
    var(--night);
}

.host-info-tagline {
  max-width: 720px;
  margin: 26px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.04;
  color: #ffe7ba;
}

.host-info-invite {
  max-width: 620px;
  margin: 30px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 247, 230, 0.34);
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 640;
  line-height: 1.16;
  color: rgba(255, 247, 230, 0.92);
}

.host-info-invite p {
  margin: 0;
}

.host-info h2 {
  margin: 0.2em 0 0.4em;
  font-family: var(--display);
  font-size: 1.32em;
  font-weight: 700;
  line-height: 1.04;
  color: var(--porch-deep);
}

.host-info h3 {
  margin: 1.1em 0 0.3em;
  font-family: var(--display);
  font-size: 1.08em;
  font-weight: 700;
  line-height: 1.1;
}

.host-list {
  margin: 1em 0 1.2em;
  padding-left: 1.1em;
}

.host-list li {
  margin: 0.34em 0;
}

.host-list-columns {
  columns: 2;
  column-gap: 2.4em;
}

.host-info code {
  font-family: var(--plain);
  font-size: 0.82em;
  padding: 0.06em 0.34em;
  border-radius: 5px;
  background: rgba(103, 76, 47, 0.12);
}

.host-info-quote {
  margin: 1.2em 0;
  padding: 0.3em 0 0.3em 1.1em;
  border-left: 3px solid rgba(144, 102, 52, 0.55);
  font-style: italic;
  color: var(--fur);
}

.host-info-quote p {
  margin: 0.3em 0;
}

.host-spec {
  margin: 1.2em 0 1.4em;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 12px;
  border: 1px solid rgba(103, 76, 47, 0.22);
  background: rgba(255, 247, 230, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-family: var(--plain);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  line-height: 1.7;
  color: var(--fur-dark);
  white-space: pre-wrap;
  overflow-x: auto;
}

.host-contact {
  margin: 1.2em 0 0.6em;
}

.host-contact-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--clay);
  color: var(--bone);
  font-family: var(--plain);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}

.host-contact-btn:hover {
  transform: translateY(-1px);
  background: #a8543b;
}

.host-info-closing {
  text-align: center;
}

.host-info-footnote {
  margin-top: 0.2em;
  font-size: 0.5em;
  font-style: italic;
  font-weight: 560;
  color: var(--fur);
}

.page-intro {
  max-width: 720px;
  margin: 20px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 560;
  line-height: 1.15;
}

.friend-shell {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto 80px;
  padding-top: clamp(96px, 12vh, 132px);
  text-align: center;
}

.friend-shell h1 {
  margin-inline: auto;
}

.friend-image {
  width: min(620px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 20px;
  margin-bottom: 34px;
}

.mode-label,
.friend-type {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 560;
  margin: 16px auto 0;
}

.friend-text {
  display: grid;
  gap: 24px;
  margin-top: 44px;
  text-align: left;
}

.friend-text section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.friend-text h2 {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--clay);
}

.friend-text p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 560;
  line-height: 1.15;
}

.friend-feedback {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.friend-feedback-prompt {
  margin: 0 0 16px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clay);
}

.friend-feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.friend-feedback [hidden] {
  display: none !important;
}

.friend-feedback-btn {
  min-width: 64px;
  font-size: 28px;
  line-height: 1;
  padding: 12px 18px;
}

.friend-feedback-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.friend-feedback-thanks {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 560;
  color: var(--clay);
}

.admin-page main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 60px;
}

.feedback-tally {
  margin-bottom: 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feedback-tally h2 {
  margin: 0 0 14px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clay);
}

.feedback-tally-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-tally-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 14px;
}

.feedback-tally-label {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.feedback-tally-bar {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(33, 31, 26, 0.08);
  overflow: hidden;
}

.feedback-tally-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 0;
}

.feedback-tally-bar-fill.up {
  background: #4f9d69;
}

.feedback-tally-bar-fill.down {
  background: var(--clay);
}

.feedback-tally-value {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.feedback-tally-pct {
  font-family: var(--body, inherit);
  font-size: 13px;
  font-weight: 400;
  color: rgba(33, 31, 26, 0.68);
}

.feedback-tally-total {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(33, 31, 26, 0.68);
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-left: 0;
  padding-right: 0;
}

.admin-head h1,
.admin-auth h1 {
  margin: 0;
  font-size: 40px;
}

.admin-auth {
  width: min(460px, calc(100% - 28px));
  margin: 70px auto;
}

.panel,
.admin-form,
.next-step,
.danger-zone {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.admin-form,
.panel form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 760;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.check {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 650;
}

.check input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.session-list,
.status-grid,
.admin-columns,
.danger-zone {
  margin-top: 20px;
}

.session-row {
  grid-template-columns: 1fr auto;
}

.session-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
}

.session-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: rgba(33, 31, 26, 0.7);
  cursor: pointer;
}

.session-select-all input {
  width: 18px;
  height: 18px;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(37, 28, 19, 0.18);
}

.session-item .session-check {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.session-item .session-check input {
  width: 20px;
  height: 20px;
}

.session-item .session-row {
  flex: 1;
  border-top: 0;
}

.button.danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.status {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: rgba(33, 31, 26, 0.62);
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.status:hover {
  border-color: var(--leaf);
  color: var(--leaf);
}

.status.done {
  background: var(--leaf);
  color: white;
  border-color: var(--leaf);
}

.status.done:hover {
  color: white;
  opacity: 0.9;
}

.admin-columns .panel,
#panel-qr,
#panel-receipt {
  scroll-margin-top: 92px;
}

.ready {
  font-size: 22px;
  font-weight: 850;
  color: var(--leaf);
}

.admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.preview {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.qr {
  width: 180px;
  display: block;
}

.receipt {
  width: min(100%, 320px);
  border: 1px solid var(--line);
}

.copy-field {
  font-size: 14px;
}

.flash-wrap {
  position: fixed;
  z-index: 20;
  right: 16px;
  top: 78px;
  display: grid;
  gap: 8px;
}

.flash {
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flash.dismissing {
  opacity: 0;
  transform: translateX(16px);
}

.flash.error {
  background: #8d312b;
}

.flash.success {
  background: var(--leaf);
}

.flash.info {
  background: var(--clay);
}

/* Phone capture flow */
.capture-body {
  margin: 0;
  background: #000;
  overflow: hidden;
}

.capture-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: radial-gradient(circle at 50% 35%, #2a2620 0%, #000 75%);
}

.capture-status {
  position: relative;
  z-index: 1;
  margin: 0 16px 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(24, 22, 17, 0.62);
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(8px);
}

.capture-controls {
  position: relative;
  z-index: 1;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom));
}

.capture-btn {
  width: 100%;
  min-height: 30vh;
  border: 0;
  border-radius: 22px;
  font-family: var(--display);
  font-size: clamp(34px, 9vw, 60px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.capture-btn.start {
  background: var(--porch-light);
}

.capture-btn.stop {
  background: var(--clay);
  color: var(--bone);
}

.capture-btn:disabled {
  opacity: 0.7;
}

.capture-fallback {
  position: relative;
  z-index: 2;
  margin: auto 20px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(24, 22, 17, 0.82);
  color: var(--bone);
  text-align: center;
}

.capture-fallback p {
  margin: 0 0 16px;
  font-size: 20px;
}

.capture-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(13, 12, 9, 0.86);
}

/* `display: grid` above would otherwise override the UA [hidden] rule,
   leaving the overlay always on top and blocking the Begin button. */
.capture-overlay[hidden] {
  display: none;
}

.capture-overlay-text {
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(30px, 8vw, 54px);
  font-weight: 700;
  text-align: center;
  padding: 0 24px;
}

/* Receipt screen */
.receipt-stage {
  display: grid;
  place-items: center;
  margin-top: 20px;
}

.receipt-print img {
  width: min(100%, 384px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.receipt-actions {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.receipt-friend-status {
  margin: 0;
  color: rgba(33, 31, 26, 0.7);
  text-align: center;
}

.setting-options {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.setting-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.setting-option input {
  width: auto;
  margin: 0;
}

.event-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.event-table th,
.event-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(37, 28, 19, 0.18);
  vertical-align: middle;
}

.event-table th:first-child,
.event-table td:first-child {
  padding-left: 0;
  width: 100%;
}

.event-table th:last-child,
.event-table td:last-child {
  padding-right: 0;
}

.event-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(33, 31, 26, 0.6);
}

.event-table td:not(:first-child),
.event-table th:not(:first-child) {
  white-space: nowrap;
}

.event-title-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.event-table-actions {
  text-align: right;
  white-space: nowrap;
}

.event-table-actions .button {
  margin-left: 8px;
}

.button.small {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 14px;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(33, 31, 26, 0.55);
  z-index: 1000;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(440px, 100%);
  background: var(--paper, #fffdf8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal h2 {
  margin-top: 0;
}

.modal .button-row {
  margin-top: 20px;
  justify-content: flex-end;
}

.event-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: rgba(33, 31, 26, 0.7);
  white-space: nowrap;
}

.event-tag.current {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.event-tag.published {
  color: var(--leaf);
  border-color: var(--leaf);
}

.event-tag.hidden {
  opacity: 0.6;
}

@page {
  size: 80mm auto;
  margin: 0;
}

@media print {
  .site-header,
  .site-footer,
  .flash-wrap,
  .no-print {
    display: none !important;
  }

  html,
  body {
    background: #fff;
    margin: 0;
    padding: 0;
    width: 80mm;
  }

  .admin-page main {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .receipt-stage {
    margin: 0;
    padding: 0;
    display: block;
  }

  .receipt-print {
    margin: 0;
    padding: 0;
  }

  .receipt-print img {
    display: block;
    width: 80mm;
    max-width: 80mm;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 100svh;
    padding: 118px 20px 128px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(37, 28, 19, 0.88) 0%, rgba(37, 28, 19, 0.64) 45%, rgba(37, 28, 19, 0.14) 100%);
  }

  .hero-picture img {
    object-position: 64% center;
  }

  .manifesto-hero {
    padding: 0 20px 72px;
    background:
      linear-gradient(0deg, rgba(24, 22, 17, 0.92) 0%, rgba(24, 22, 17, 0.7) 30%, rgba(24, 22, 17, 0.1) 62%, rgba(24, 22, 17, 0) 100%),
      url("/static/img/arrowtree-hero.jpg") center top / contain no-repeat,
      var(--night);
  }

  .manifesto-hero.origin-hero {
    padding-top: 0;
    background:
      linear-gradient(0deg, rgba(24, 22, 17, 0.92) 0%, rgba(24, 22, 17, 0.7) 30%, rgba(24, 22, 17, 0.1) 62%, rgba(24, 22, 17, 0) 100%),
      url("/static/img/arrowtree-origin-hero.png") center top / contain no-repeat,
      var(--night);
  }

  .manifesto-hero.appearances-hero {
    padding-top: 0;
    background:
      linear-gradient(0deg, rgba(24, 22, 17, 0.92) 0%, rgba(24, 22, 17, 0.7) 30%, rgba(24, 22, 17, 0.1) 62%, rgba(24, 22, 17, 0) 100%),
      url("/static/img/arrowtree-appearances-hero.png") center top / contain no-repeat,
      var(--night);
  }

  .host-info-hero {
    padding-top: 0;
    background:
      linear-gradient(0deg, rgba(24, 22, 17, 0.92) 0%, rgba(24, 22, 17, 0.7) 30%, rgba(24, 22, 17, 0.1) 62%, rgba(24, 22, 17, 0) 100%),
      url("/static/img/arrowtree-performance-hero.jpg") center top / contain no-repeat,
      var(--night);
  }

  .manifesto-page {
    font-size: 22px;
    line-height: 1.45;
  }

  .host-list-columns {
    columns: 1;
  }

  .band {
    padding: 58px 20px;
  }

  .split,
  .steps ol,
  .event-row,
  .session-row,
  .admin-columns {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: 130px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 247, 230, 0.24);
  }

  .steps li:last-child {
    border-bottom: 0;
  }

  .hero-caption {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .friend-shell {
    padding-top: 132px;
  }
}
