:root {
  --ink: #fffaf4;
  --text: #1b1a1c;
  --muted: #6e6671;
  --bg: #101010;
  --surface: #fffaf4;
  --surface-2: #f3eee7;
  --line: rgba(27, 26, 28, 0.16);
  --pink: #e8428a;
  --teal: #00a89e;
  --gold: #f0b84b;
  --violet: #6945c7;
  --red: #d63e4a;
  --max: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip,
.sr-only {
  height: 1px;
  left: -999px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.skip:focus {
  background: var(--gold);
  color: #151515;
  height: auto;
  left: 12px;
  padding: 10px 12px;
  top: 12px;
  width: auto;
  z-index: 200;
}

.site-header {
  align-items: center;
  background: rgba(16, 16, 16, 0.96);
  border-bottom: 1px solid rgba(255, 250, 244, 0.16);
  color: var(--ink);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr;
  min-height: 78px;
  padding: 10px max(18px, calc((100% - var(--max)) / 2));
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  height: 54px;
  object-fit: contain;
  width: 54px;
}

.nav-menu {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}

.nav-menu a {
  border-radius: 6px;
  font-weight: 800;
  padding: 9px 10px;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(255, 250, 244, 0.12);
  outline: none;
}

.nav-toggle {
  background: transparent;
  border: 1px solid rgba(255, 250, 244, 0.24);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: none;
  height: 42px;
  margin-left: auto;
  padding: 8px;
  width: 46px;
}

.nav-toggle span:not(.sr-only) {
  background: currentColor;
  display: block;
  height: 2px;
  margin: 5px 0;
}

.notice-band {
  align-items: center;
  background: var(--gold);
  color: #17110a;
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 11px 18px;
  text-align: center;
}

.notice-band strong {
  white-space: nowrap;
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.96), rgba(16, 16, 16, 0.88)),
    #101010;
  color: var(--ink);
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
  overflow: hidden;
  padding: 54px max(20px, calc((100% - var(--max)) / 2)) 26px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 12vw, 7.8rem);
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

h4 {
  font-size: 1.08rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

p {
  line-height: 1.55;
}

.hero-copy p:not(.eyebrow) {
  color: rgba(255, 250, 244, 0.84);
  font-size: 1.16rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--pink);
  border: 1px solid var(--pink);
  color: #fff;
}

.button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 250, 244, 0.42);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.hero-logo-wrap {
  align-items: center;
  background: #050505;
  border: 1px solid rgba(255, 250, 244, 0.16);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 310px;
  padding: 18px;
}

.hero-logo-wrap img {
  max-height: 420px;
  object-fit: contain;
}

.hero-points {
  border-top: 1px solid rgba(255, 250, 244, 0.2);
  color: rgba(255, 250, 244, 0.8);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  padding-top: 18px;
}

.hero-points span,
.card-top span,
.event-meta span,
.admin-pill {
  border: 1px solid currentColor;
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  min-height: 30px;
  padding: 6px 9px;
}

.quick-band {
  background: var(--surface-2);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  padding: 1px;
}

.quick-band div {
  background: var(--surface);
  padding: 22px max(20px, calc((100vw - var(--max)) / 2 + 20px));
}

.quick-band div:nth-child(2) {
  padding-left: 22px;
  padding-right: 22px;
}

.quick-band span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.quick-band strong {
  display: block;
  line-height: 1.25;
}

.section {
  padding: 70px max(20px, calc((100% - var(--max)) / 2));
}

.section-dark {
  background: var(--bg);
  color: var(--ink);
}

.section-head {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  margin-bottom: 28px;
}

.section-head .eyebrow {
  margin-top: 8px;
}

.specials-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-list {
  display: grid;
  gap: 12px;
}

.special-card,
.event-card,
.admin-card,
.contact-form,
.login-card,
.hours-list,
.hours-panel {
  border-radius: 8px;
}

.special-card {
  background: rgba(255, 250, 244, 0.08);
  border: 1px solid rgba(255, 250, 244, 0.16);
  padding: 18px;
}

.card-top,
.event-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-top span {
  color: var(--gold);
}

.card-top strong {
  color: #fff;
  font-size: 1.05rem;
}

.special-card p,
.event-card p {
  margin-bottom: 0;
}

.event-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 18px;
}

.event-card time {
  color: var(--violet);
  display: block;
  font-weight: 900;
  margin-bottom: 14px;
}

.event-meta {
  color: var(--muted);
  margin-bottom: 0;
  margin-top: 18px;
}

.event-meta a {
  color: var(--pink);
  font-weight: 900;
}

.section-split {
  background: #151515;
  color: var(--ink);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

.hours-panel {
  background: #222;
  border: 1px solid rgba(255, 250, 244, 0.16);
  padding: 24px;
}

.hours-panel address {
  color: rgba(255, 250, 244, 0.82);
  font-style: normal;
  line-height: 1.5;
  margin: 18px 0;
}

.hours-list {
  background: #fff;
  color: var(--text);
  overflow: hidden;
}

.hours-list div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 15px 18px;
}

.hours-list div:last-child {
  border-bottom: 0;
}

.hours-list span {
  color: var(--muted);
  font-weight: 850;
}

.contact-section {
  background: var(--surface-2);
}

.contact-form {
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: #312d32;
  display: grid;
  font-weight: 850;
  gap: 7px;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid rgba(27, 26, 28, 0.22);
  border-radius: 6px;
  color: var(--text);
  min-height: 44px;
  padding: 10px 11px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 158, 0.16);
  outline: none;
}

.hidden-field {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.form-success,
.form-error,
.admin-message {
  border-radius: 6px;
  font-weight: 850;
  padding: 12px 14px;
}

.form-success,
.admin-message.success {
  background: rgba(0, 168, 158, 0.12);
  color: #075f59;
}

.form-error,
.admin-message.error {
  background: rgba(214, 62, 74, 0.12);
  color: #8e1e27;
}

.footer {
  align-items: center;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  gap: 12px;
  padding: 24px max(20px, calc((100% - var(--max)) / 2));
}

.footer img {
  height: 48px;
  width: 48px;
}

.footer span {
  color: rgba(255, 250, 244, 0.72);
  display: block;
}

.kateWidget {
  bottom: 18px;
  position: fixed;
  right: 18px;
  z-index: 120;
}

.kateWidget__panel {
  background: #fffdf8;
  border: 1px solid rgba(16, 16, 16, 0.18);
  border-radius: 8px;
  bottom: 72px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  color: var(--text);
  display: none;
  flex-direction: column;
  height: min(560px, calc(100vh - 104px));
  min-height: 380px;
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(372px, calc(100vw - 28px));
}

.kateWidget.isOpen .kateWidget__panel {
  display: flex;
}

.kateWidget__header {
  align-items: center;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.kateWidget__identity {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.kateWidget__avatar,
.kateWidget__launcherMark {
  background: var(--teal);
  border-radius: 8px;
  color: #001d1b;
  display: grid;
  font-weight: 950;
  place-items: center;
}

.kateWidget__avatar {
  height: 36px;
  width: 36px;
}

.kateWidget__name {
  font-weight: 900;
  line-height: 1.1;
}

.kateWidget__status {
  color: rgba(255, 250, 244, 0.68);
  font-size: 12px;
  line-height: 1.25;
}

.kateWidget__close {
  background: rgba(255, 250, 244, 0.08);
  border: 1px solid rgba(255, 250, 244, 0.22);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  height: 34px;
  width: 34px;
}

.kateWidget__log {
  background: #fffdf8;
  flex: 1;
  overflow: auto;
  padding: 13px 12px;
}

.kateWidget__row {
  display: flex;
  margin: 0 0 10px;
}

.kateWidget__row--user {
  justify-content: flex-end;
}

.kateWidget__bubble {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(16, 16, 16, 0.06);
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  max-width: 86%;
  overflow-wrap: anywhere;
  padding: 10px 11px;
  white-space: pre-wrap;
}

.kateWidget__row--user .kateWidget__bubble {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
}

.kateWidget__typing {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.kateWidget__typing span {
  animation: kateWidgetPulse 1.1s infinite;
  background: var(--muted);
  border-radius: 4px;
  height: 5px;
  opacity: 0.45;
  width: 5px;
}

.kateWidget__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.kateWidget__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes kateWidgetPulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
}

.kateWidget__form {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 10px;
}

.kateWidget__inputRow {
  align-items: flex-end;
  display: flex;
  gap: 8px;
}

.kateWidget__input {
  flex: 1;
  font-size: 14px;
  height: 42px;
  max-height: 92px;
  min-width: 0;
  resize: none;
}

.kateWidget__send {
  background: var(--pink);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 900;
  min-height: 42px;
  width: 70px;
}

.kateWidget__send:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.kateWidget__launcher {
  align-items: center;
  background: #fffdf8;
  border: 1px solid rgba(16, 16, 16, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 16, 16, 0.24);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px 0 10px;
}

.kateWidget.isOpen .kateWidget__launcher {
  display: none;
}

.kateWidget__launcherMark {
  height: 34px;
  width: 34px;
}

.admin-body {
  background: var(--surface-2);
}

.admin-shell {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1220px;
  padding: 24px 18px 70px;
}

.admin-top {
  align-items: center;
  background: var(--bg);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 18px;
}

.admin-top h1 {
  color: var(--ink);
  font-size: 2rem;
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions a,
.admin-actions button,
.mini-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  min-height: 38px;
  padding: 8px 12px;
  text-decoration: none;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

.admin-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 18px;
}

.admin-card h2 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.admin-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-grid .wide,
.admin-card .wide {
  grid-column: 1 / -1;
}

.repeat-list {
  display: grid;
  gap: 12px;
}

.repeat-row {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 0.5fr 1fr 0.6fr 1.5fr 0.7fr 0.5fr;
  padding: 12px;
}

.repeat-row.hours-row {
  grid-template-columns: 1fr 2fr;
}

.repeat-row.events-row {
  grid-template-columns: 0.6fr 0.7fr 0.6fr 1fr 1.5fr 0.8fr 1fr 0.5fr;
}

.repeat-row label {
  font-size: 0.86rem;
}

.admin-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1fr) minmax(220px, 0.6fr);
  padding: 14px;
}

.admin-table-row:last-child {
  border-bottom: 0;
}

.admin-table-row small {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  margin-top: 4px;
}

.admin-log {
  display: grid;
  gap: 10px;
}

.log-entry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.log-entry pre {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.login-wrap {
  align-items: center;
  background: var(--surface-2);
  display: grid;
  min-height: 100vh;
  padding: 18px;
}

.login-card {
  background: #fff;
  border: 1px solid var(--line);
  margin: 0 auto;
  max-width: 430px;
  padding: 22px;
  width: 100%;
}

.login-card img {
  height: 88px;
  margin-bottom: 14px;
  width: 88px;
}

.login-card h1 {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2rem;
  line-height: 1.05;
}

.muted {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .hero,
  .specials-grid,
  .section-split,
  .section-head,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

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

  .repeat-row,
  .repeat-row.events-row,
  .admin-table-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    border: 1px solid rgba(255, 250, 244, 0.14);
  }

  .hero {
    padding-top: 32px;
  }

  .hero-logo-wrap {
    min-height: 220px;
  }

  .quick-band,
  .event-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quick-band div,
  .quick-band div:nth-child(2) {
    padding: 18px 20px;
  }

  .section {
    padding-bottom: 46px;
    padding-top: 46px;
  }

  .kateWidget {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .kateWidget__panel {
    bottom: 68px;
    right: 0;
    width: 100%;
  }

  .kateWidget__launcher {
    margin-left: auto;
  }
}
