:root {
  --bg: #efefed;
  --bg-soft: #f8f8f6;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-muted: rgba(18, 18, 18, 0.04);
  --text: #151515;
  --muted: #5d5d5d;
  --line: rgba(21, 21, 21, 0.12);
  --line-strong: rgba(21, 21, 21, 0.22);
  --brand: #17c2ea;
  --brand-strong: #0ca7cc;
  --brand-soft: rgba(23, 194, 234, 0.14);
  --danger: #b3423b;
  --success: #1d8b60;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.05);
  --shell: 1180px;
  --copy: 760px;
  --copy-wide: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top center, rgba(23, 194, 234, 0.1), transparent 24rem),
    linear-gradient(180deg, #f4f4f2 0%, var(--bg) 28%, #ebebe8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button {
  cursor: pointer;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(239, 239, 237, 0.96);
}

.header-top,
.footer-row,
.reservation-toolbar,
.section-heading,
.button-row,
.header-actions,
.admin-header,
.admin-anchor-nav,
.admin-list-row,
.user-summary {
  display: flex;
  align-items: center;
}

.header-top {
  position: relative;
  display: block;
  padding: 16px 0 10px;
  text-align: center;
}

.header-spacer {
  display: none;
}

.brand {
  display: inline-grid;
  margin: 0 auto;
  color: var(--text);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.brand-line {
  font-size: clamp(3.2rem, 6vw, 5.6rem);
}

.brand-line-shift {
  margin-top: -0.16em;
  margin-left: 1.6em;
}

.header-actions {
  position: absolute;
  top: 18px;
  right: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.header-actions form {
  margin: 0;
}

.header-nav-row {
  padding: 0 0 18px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(22px, 2.5vw, 52px);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  font-weight: 500;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--brand);
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.ghost-button,
.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.site-header .ghost-button {
  min-height: auto;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.primary-button,
.secondary-button,
.danger-button {
  border: 0;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  color: #071319;
  background: linear-gradient(135deg, var(--brand), #5cdcf4);
  box-shadow: 0 14px 24px rgba(23, 194, 234, 0.2);
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid var(--line-strong);
}

.ghost-button:hover,
.secondary-button:hover {
  border-color: rgba(23, 194, 234, 0.38);
  background: rgba(255, 255, 255, 0.72);
}

.site-header .ghost-button:hover {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.danger-button {
  color: #fff;
  background: var(--danger);
}

.full-width {
  width: 100%;
}

main {
  padding: 42px 0 88px;
}

.home-intro,
.home-feature,
.home-columns,
.contact-layout,
.team-layout,
.account-grid {
  display: grid;
  gap: 32px;
}

.home-hero,
.home-callout,
.home-editorial-columns {
  width: min(calc(100% - 40px), var(--copy-wide));
  margin-left: auto;
  margin-right: auto;
}

.home-hero {
  padding-top: 18px;
}

.editorial-copy {
  max-width: 980px;
}

.home-hero .editorial-copy {
  margin-left: auto;
  margin-right: auto;
}

.section-kicker,
.panel-label,
.meta,
.status {
  display: inline-flex;
  align-items: center;
}

.section-kicker,
.panel-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.3rem, 6vw, 5.5rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: -0.03em;
}

.lead-text,
.richtext,
.prose {
  line-height: 1.7;
}

.lead-text {
  max-width: 67rem;
  font-size: 1.2rem;
}

.richtext p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

.richtext a,
.section-heading a,
.footer-links a,
.contact-copy a,
.team-copy a {
  color: var(--brand-strong);
}

.richtext ul,
.richtext ol,
.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.richtext li + li,
.prose li + li {
  margin-top: 0.45rem;
}

.button-row {
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}

.hero-stat {
  min-width: 170px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-stat span {
  color: var(--muted);
}

.home-facts {
  align-self: start;
  padding: 0 0 0 28px;
  border-left: 1px solid var(--line);
}

.fact-list,
.hours-compact,
.news-list,
.news-feed,
.reservation-list,
.admin-sections,
.timeline-list {
  display: grid;
  gap: 18px;
}

.fact-list {
  margin-bottom: 24px;
}

.fact-item {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.fact-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.fact-item span,
.summary,
.muted,
.timeline-copy p,
.footer-brand p {
  color: var(--muted);
}

.home-callout,
.page-header,
.contact-copy,
.team-copy,
.reservation-toolbar,
.hours-board,
.news-feed,
.admin-login,
.admin-header {
  margin-top: 24px;
}

.home-callout,
.page-header,
.contact-copy,
.team-copy,
.reservation-toolbar {
  padding-top: 24px;
}

.home-divider {
  height: 1px;
  margin-bottom: 34px;
  background: var(--brand);
}

.spotlight-panel,
.section-card,
.form-card,
.hours-card,
.table-card,
.news-entry,
.admin-note,
.page-surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
}

.spotlight-panel,
.section-card,
.form-card,
.hours-card,
.table-card,
.news-entry,
.admin-note,
.page-surface {
  padding: 28px;
}

.hours-compact-item,
.hours-item,
.reservation-item,
.editorial-news-card {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hours-compact-item:last-child,
.hours-item:last-child,
.reservation-item:last-child,
.editorial-news-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hours-compact-item strong,
.timeline-date strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.hours-compact-item span,
.time-range,
.meta {
  color: var(--brand-strong);
  font-weight: 700;
}

.hours-compact-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.home-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 62px;
  margin-top: 56px;
}

.content-column {
  min-width: 0;
}

.section-heading {
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(23, 194, 234, 0.85);
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading a {
  white-space: nowrap;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 26px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:first-child {
  padding-top: 0;
}

.timeline-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-day {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px 7px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #151515;
}

.timeline-time {
  display: block;
  color: var(--brand-strong);
  font-size: 1rem;
  font-weight: 700;
}

.timeline-copy h3 {
  margin-bottom: 7px;
  font-size: 1.45rem;
}

.timeline-copy p {
  max-width: 26rem;
}

.editorial-news-list {
  gap: 0;
}

.editorial-news-card {
  padding-top: 16px;
}

.editorial-news-card:first-child {
  padding-top: 0;
}

.editorial-news-card h3 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.news-feed {
  gap: 24px;
}

.page-header {
  width: min(calc(100% - 40px), var(--copy));
  margin-left: auto;
  margin-right: auto;
}

.hours-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.team-layout {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.team-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: start;
}

.form-card,
.compact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-weight: 700;
}

input,
textarea,
select,
.editor-surface {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus,
.editor-surface:focus {
  outline: 2px solid rgba(23, 194, 234, 0.28);
  outline-offset: 2px;
  border-color: rgba(23, 194, 234, 0.52);
}

textarea {
  resize: vertical;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.reservation-toolbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.table-card {
  position: relative;
  overflow: hidden;
}

.table-card.state-reserved {
  border-color: rgba(179, 66, 59, 0.28);
}

.foosball-graphic {
  position: relative;
  height: 150px;
  margin-bottom: 18px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent 49.3%, rgba(255, 255, 255, 0.85) 49.3%, rgba(255, 255, 255, 0.85) 50.7%, transparent 50.7%),
    linear-gradient(135deg, #0c3a42, #17798b 58%, #1ab6d8 100%);
  border: 10px solid #202020;
}

.foosball-graphic::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
}

.foosball-graphic span {
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 5px;
  background: rgba(255, 255, 255, 0.82);
}

.foosball-graphic span:nth-child(1) { left: 18%; }
.foosball-graphic span:nth-child(2) { left: 35%; }
.foosball-graphic span:nth-child(3) { right: 35%; }
.foosball-graphic span:nth-child(4) { right: 18%; }

.table-content h2 {
  font-size: 1.5rem;
}

.status {
  width: fit-content;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.status.available {
  color: var(--success);
  background: rgba(29, 139, 96, 0.12);
}

.status.reserved {
  color: var(--danger);
  background: rgba(179, 66, 59, 0.1);
}

.status.mine {
  color: #046c87;
  background: var(--brand-soft);
}

.empty-state {
  padding: 24px 0;
}

.account-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-login,
.admin-header {
  margin-bottom: 24px;
}

.admin-header,
.admin-list-row {
  justify-content: space-between;
  gap: 18px;
}

.admin-anchor-nav {
  position: sticky;
  top: 124px;
  z-index: 10;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

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

.editor-card {
  gap: 18px;
}

.compact-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.compact-form h3,
.editor-card h3 {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.flash {
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.flash-success {
  color: var(--success);
  background: rgba(29, 139, 96, 0.12);
}

.flash-error {
  color: var(--danger);
  background: rgba(179, 66, 59, 0.1);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
}

.footer-row {
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.footer-brand strong {
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.wysiwyg-wrap {
  display: grid;
  gap: 10px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-toolbar button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.editor-surface {
  min-height: 220px;
  padding: 16px;
}

.wysiwyg-source {
  display: none;
}

@media (max-width: 1080px) {
  .home-editorial-columns,
  .home-intro,
  .home-feature,
  .home-columns,
  .contact-layout,
  .team-layout {
    grid-template-columns: 1fr;
  }

  .home-facts {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 920px) {
  .header-top,
  .footer-row,
  .reservation-toolbar,
  .admin-header,
  .admin-list-row,
  .hours-item,
  .reservation-item {
    flex-direction: column;
    align-items: stretch;
  }

  .header-top {
    padding-top: 18px;
  }

  .header-actions {
    position: static;
    justify-content: center;
    margin-top: 10px;
  }

  .main-nav {
    gap: 16px 22px;
  }
}

@media (max-width: 640px) {
  .shell,
  .page-header {
    width: min(calc(100% - 28px), var(--shell));
  }

  main {
    padding-top: 28px;
    padding-bottom: 68px;
  }

  .home-hero,
  .home-callout,
  .home-editorial-columns {
    width: min(calc(100% - 28px), var(--copy-wide));
  }

  .spotlight-panel,
  .section-card,
  .form-card,
  .hours-card,
  .table-card,
  .news-entry,
  .admin-note,
  .page-surface {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .brand-line {
    font-size: clamp(2.4rem, 14vw, 3.4rem);
  }

  .brand-line-shift {
    margin-left: 1.18em;
  }

  .hero-stats {
    gap: 18px;
  }

  .hero-stat {
    min-width: 140px;
  }

  .section-heading {
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
