:root {
  color-scheme: dark;
  --ink: #080706;
  --carbon: #15120f;
  --carbon-light: #211b16;
  --gold: #c9a45b;
  --brass: #e3c477;
  --ivory: #f5efe4;
  --muted: #c7bfb2;
  --rose: #d98fa3;
  --lavender: #9a8bb7;
  --danger: #ffb4ab;
  --radius: 0.45rem;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--ink);
  color: var(--ivory);
}

* {
  box-sizing: border-box;
}
html {
  min-width: 20rem;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, #332c5c66, transparent 34rem), var(--ink);
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 24vh;
  opacity: 0.16;
  background:
    linear-gradient(
      135deg,
      transparent 35%,
      var(--rose) 35% 36%,
      transparent 36%
    ),
    linear-gradient(
      90deg,
      var(--carbon) 8%,
      transparent 8% 12%,
      var(--carbon) 12% 22%,
      transparent 22% 27%,
      var(--carbon) 27% 43%,
      transparent 43% 47%,
      var(--carbon) 47% 62%,
      transparent 62% 69%,
      var(--carbon) 69% 84%,
      transparent 84%
    );
  clip-path: polygon(
    0 64%,
    8% 64%,
    8% 39%,
    19% 39%,
    19% 57%,
    29% 57%,
    29% 20%,
    43% 20%,
    43% 48%,
    55% 48%,
    55% 30%,
    70% 30%,
    70% 59%,
    84% 59%,
    84% 43%,
    100% 43%,
    100% 100%,
    0 100%
  );
}
a {
  color: var(--brass);
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--ivory);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
:focus-visible {
  outline: 0.2rem solid var(--brass);
  outline-offset: 0.22rem;
}
[hidden] {
  display: none !important;
}

.site-header {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid #c9a45b55;
  background: #080706e8;
}
.identity {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  line-height: 1.1;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.identity span {
  display: block;
  margin-top: 0.28rem;
  color: var(--gold);
  font-family: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.auth-controls,
.signed-in {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.signed-in {
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 0.65rem 1.1rem;
  color: var(--ink);
  background: var(--brass);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  color: var(--ink);
  background: var(--ivory);
  border-color: var(--ivory);
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.button-small {
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
}
.button-quiet,
.button-google {
  color: var(--ivory);
  background: transparent;
  border-color: #e3c47788;
}

.booking-shell {
  width: min(100% - 2rem, 68rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 6rem) 0;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
}
.booking-heading {
  max-width: 35rem;
}
.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 500;
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.booking-heading > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}
.booking-form,
.auth-panel,
.admin-panel {
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid #c9a45b4d;
  border-radius: 0.8rem;
  background: linear-gradient(145deg, #211b16e8, #15120ff2);
  box-shadow: 0 1.5rem 5rem #0008;
}
.field-grid {
  display: grid;
  gap: 1.2rem;
}
label {
  display: grid;
  gap: 0.42rem;
  color: var(--ivory);
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #c7bfb266;
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  color: var(--ivory);
  background: #080706cc;
}
textarea {
  resize: vertical;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--gold);
}
input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: var(--danger);
}
.help,
.privacy-note {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
}
.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
}
.checkbox input {
  width: 1.35rem;
  min-height: 1.35rem;
  margin-top: 0.15rem;
  accent-color: var(--gold);
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.employee-field {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.employee-retry {
  justify-self: start;
}
.turnstile {
  min-height: 4.5rem;
  margin: 1.25rem 0;
}
.submit-button {
  width: 100%;
}
.status {
  min-height: 1.6rem;
  color: var(--brass);
  font-weight: 700;
}
.status[data-error="true"],
.error-note {
  color: var(--danger);
}

.auth-shell,
.admin-main {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
}
.auth-shell {
  max-width: 42rem;
}
.auth-shell > h1,
.admin-main > h1 {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
}
.auth-panel,
.admin-panel {
  margin: 1.25rem 0;
}
.auth-panel form,
.admin-form {
  display: grid;
  gap: 1rem;
}
.auth-panel .button-google {
  width: 100%;
  margin-top: 1rem;
}
#mfa-qr {
  display: block;
  width: min(100%, 14rem);
  height: auto;
  margin: 1rem 0;
  background: white;
}
code {
  overflow-wrap: anywhere;
}

.admin-main {
  max-width: 76rem;
}
.admin-panel {
  box-shadow: none;
}
.record-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}
.record {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #c7bfb238;
  border-radius: var(--radius);
  background: #08070688;
}
.record .checkbox {
  align-self: end;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pagination button {
  min-height: 2.75rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  color: var(--ivory);
  background: transparent;
}

@media (min-width: 48rem) {
  .booking-shell {
    grid-template-columns: minmax(16rem, 0.8fr) minmax(28rem, 1.2fr);
    align-items: start;
  }
  .booking-heading {
    position: sticky;
    top: 2rem;
  }
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field-wide {
    grid-column: 1 / -1;
  }
  .record {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media (forced-colors: active) {
  .button {
    border: 2px solid ButtonText;
  }
  input,
  select,
  textarea,
  .booking-form,
  .auth-panel,
  .admin-panel {
    border: 1px solid CanvasText;
  }
}
