:root {
  color-scheme: dark;
  --paper: #090710;
  --surface: #14101e;
  --ink: #fff7ff;
  --muted: #c0b5ca;
  --accent: #ff5de2;
  --blue: #57eaff;
  --line: #342440;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.shell { max-width: 1180px; width: calc(100% - 64px); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: 1rem; transform: translateY(-250%); z-index: 3; background: var(--surface); padding: 8px 15px; }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 780; line-height: 1.18; white-space: nowrap; }
.brand-caption { display: block; font: 650 10px/1.25 var(--mono); letter-spacing: .10em; color: var(--accent); margin-top: 5px; }
.site-header nav { display: flex; gap: 5px; align-items: center; }
.site-header nav a { border-radius: 7px; font-size: 13px; font-weight: 680; color: var(--muted); text-decoration: none; padding: 8px 11px; }
.site-header nav a:hover { color: var(--accent); background: #2c1939; }
.site-header nav a[aria-current] { color: var(--accent); background: #321935; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #56305a;
  border-radius: 14px;
  min-height: 273px;
  background:
    radial-gradient(ellipse at 88% 76%, #4a14534d, transparent 55%),
    radial-gradient(ellipse at 20% 20%, #17374b57, transparent 56%),
    #100b1b;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: linear-gradient(#72dbff0c 1px, transparent 1px), linear-gradient(90deg, #72dbff0c 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(100deg, transparent, #000 68%);
}
.hero-inner { padding: 31px 0 31px 34px; }
.hero-art { display: grid; place-items: center; align-self: stretch; padding: 20px 28px; }
.hero-art img {
  width: min(100%, 330px);
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 15px #ff5de23d);
}
.eyebrow { font: 650 11px/1.4 var(--mono); letter-spacing: .105em; }
.accent { color: var(--accent); }
.hero-eyebrow { color: var(--blue); }
h1 { font-size: clamp(2.45rem, 5.6vw, 4.5rem); font-weight: 800; line-height: .99; letter-spacing: -.06em; margin-top: 13px; }
.hero-copy { color: var(--muted); margin-top: 14px; max-width: 470px; font-size: clamp(.95rem, 2vw, 1.1rem); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; }
.hero-meta span { background: #130e20; border: 1px solid var(--line); padding: 5px 9px; border-radius: 4px; }
.hero-meta span:first-child { font-family: var(--mono); letter-spacing: .045em; color: var(--blue); }

.shift-rhythm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 15px; margin-top: 11px; }
.shift-rhythm .eyebrow { color: var(--blue); }
.shift-rhythm p { color: var(--muted); font-size: 13px; }
.shift-rhythm strong { color: var(--ink); }
.shift-rhythm p span { color: var(--accent); margin-inline: 4px; }

#content { padding-block: 33px 54px; min-height: 280px; }
.state-panel { background: var(--surface); border: 1px solid var(--line); padding: 23px; border-radius: 11px; }
.state-panel h2 { font-size: clamp(1.45rem, 5vw, 2.05rem); letter-spacing: -.04em; margin-block: 5px; }
.state-panel p:not(.eyebrow) { color: var(--muted); }
.state-panel > button { margin-top: 12px; }
.access-form { max-width: 505px; margin-top: 18px; }
.access-form label, .volunteer-filter label { display: block; color: var(--muted); font-weight: 650; font-size: 12px; margin-bottom: 5px; }
.access-fields { display: flex; align-items: stretch; gap: 8px; }
.access-fields input, .volunteer-filter select { width: 100%; color: var(--ink); background: var(--surface); border: 1px solid #513a60; border-radius: 7px; min-height: 42px; padding: 7px 11px; }
.access-fields input { min-width: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 7px 13px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 675; font-size: 14px; white-space: nowrap; text-decoration: none; }
.button:hover { background: #281d35; }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.button-primary:hover { background: #ff8cea; }
.access-form .form-error { color: var(--accent); margin-top: 8px; font-weight: 650; }

.calendar-top { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-intro h2, .section-intro h3 { font-size: clamp(1.7rem, 4.2vw, 2.55rem); letter-spacing: -.05em; line-height: 1.1; margin-top: 4px; }
.section-intro h3 { font-size: 1.5rem; }
.section-intro p:not(.eyebrow) { color: var(--muted); margin-top: 7px; font-size: 14px; }
.volunteer-filter { min-width: 198px; }
.volunteer-filter select { font-size: 14px; }
.day-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.day { text-align: left; display: flex; align-items: center; gap: 10px; min-height: 65px; padding: 7px 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 9px; }
.day:hover { border-color: #9c549c; }
.day[aria-pressed="true"] { background: #2c1636; border-color: #be56a8; color: var(--ink); }
.day-date { font-size: 25px; font-weight: 760; line-height: 1.2; letter-spacing: -.06em; }
.day-copy { display: grid; gap: 1px; }
.day-copy strong { font-size: 14px; }
.day-copy span { font: 620 9px var(--mono); letter-spacing: .08em; color: var(--muted); }
.day-heading { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-top: 24px; margin-bottom: 8px; }
.day-heading h3 { font-size: 18px; letter-spacing: -.025em; }
.day-heading > span { color: var(--muted); font-size: 13px; }
.time-row { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.time-label h3 { color: var(--blue); font: 680 13px/1.45 var(--mono); margin-top: 5px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.assignment { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; min-height: 91px; padding: 10px 11px; background: var(--surface); border-radius: 8px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.assignment strong { font-size: 14px; line-height: 1.22; }
.role-tag { display: inline-block; font-size: 10px; font-weight: 750; line-height: 1.25; padding: 3px 6px; border-radius: 4px; background: var(--tag, #2d2239); color: var(--tag-ink, #eee2fa); }
.tone-0 { --tag: #412238; --tag-ink: #ffafea; }
.tone-1 { --tag: #49213d; --tag-ink: #ffb5df; }
.tone-2 { --tag: #362550; --tag-ink: #dfc4ff; }
.tone-3 { --tag: #173b3e; --tag-ink: #a7f7e5; }
.tone-4 { --tag: #1b3349; --tag-ink: #a9e6ff; }
.tone-5 { --tag: #422c24; --tag-ink: #ffdbab; }
.tone-6 { --tag: #2e2d4b; --tag-ink: #d7d7ff; }
.tone-7 { --tag: #49213d; --tag-ink: #ffb5df; }
.location { color: var(--muted); font-size: 11px; }
.tentative { display: inline-flex; align-items: center; gap: 4px; padding: 1px 5px; border: 1px dashed #b58546; border-radius: 4px; background: #2c2219; color: #ffdda7; font-size: 10px; font-weight: 720; }
.empty-day { display: flex; align-items: start; gap: 11px; padding: 17px; border: 1px dashed #523953; border-radius: 9px; }
.empty-icon { display: grid; place-items: center; background: #2d1c36; border-radius: 6px; width: 32px; height: 32px; flex: 0 0 32px; color: var(--accent); }
.empty-day h3 { font-size: 15px; }
.empty-day p { font-size: 14px; color: var(--muted); }
.openings { margin-top: 14px; padding: 18px; border: 1px solid #694073; border-radius: 10px; background: #1b1025; }
.opening-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 13px 0 0; padding: 0; }
.opening-cards li { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.opening-time { color: var(--blue); font: 660 12px/1.4 var(--mono); }
.opening-cards strong { font-size: 14px; }
.availability { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 18px; margin-top: 18px; }
.availability ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; padding: 0; margin: 12px 0 0; list-style: none; }
.availability li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); }
.periods { display: flex; flex-wrap: wrap; gap: 4px; }
.periods span { background: #2a1c36; border-radius: 4px; padding: 2px 6px; color: #e6d6f0; font-size: 11px; }
.roles { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 23px; }
.role-directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.role-directory article { border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: var(--surface); }
.role-directory h3 { font-size: 14px; margin-top: 6px; }
.role-directory p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 14px 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font: 610 10px/1.4 var(--mono); letter-spacing: .06em; }
.site-footer a { color: var(--accent); }

@media (max-width: 900px) {
  .cards, .role-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 63px; gap: 5px; }
  .brand { font-size: 13px; gap: 5px; }
  .brand img { width: 30px; height: 30px; }
  .brand-caption { font-size: 8px; }
  .site-header nav { gap: 0; }
  .site-header nav a { font-size: 12px; padding: 7px 6px; }
  .hero { margin-top: 14px; min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-inner { padding: 22px 16px 0; }
  .hero-art { justify-items: start; padding: 0 12px 10px; }
  .hero-art img { width: 162px; }
  .hero-meta { margin-top: 13px; }
  .shift-rhythm { padding: 9px 10px; }
  #content { padding-block: 24px 36px; }
  .calendar-top { flex-wrap: wrap; gap: 11px; }
  .volunteer-filter { min-width: 0; width: 100%; }
  .day-nav { gap: 5px; }
  .day { gap: 5px; padding: 6px; min-height: 55px; }
  .day-date { font-size: 20px; }
  .day-copy strong { font-size: 12px; }
  .day-copy span { font-size: 8px; }
  .time-row { grid-template-columns: 1fr; gap: 7px; }
  .time-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 9px; }
  .time-label h3 { margin-top: 0; }
  .cards, .role-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .availability ul, .opening-cards { grid-template-columns: 1fr; }
}
