:root {
  color-scheme: light;
  --ink: #15120f;
  --paper: #f6f0e5;
  --porcelain: #fffaf2;
  --wine: #7a1631;
  --moss: #315f4b;
  --brass: #c28a30;
  --smoke: #e4ded3;
  --muted: #6d6256;
  --line: rgba(21, 18, 15, 0.16);
  --shadow: 0 20px 55px rgba(21, 18, 15, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

a {
  color: inherit;
}

main {
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 8px 32px;
  background: rgba(246, 240, 229, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(124px, 14vw, 168px);
  height: auto;
  max-height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--wine);
}

.hero {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-height: min(760px, 84svh);
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade,
.hero-copy {
  grid-area: 1 / 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 11, 9, 0.82), rgba(13, 11, 9, 0.42) 46%, rgba(13, 11, 9, 0.08)),
    linear-gradient(0deg, rgba(13, 11, 9, 0.38), rgba(13, 11, 9, 0.04) 38%);
}

.hero-copy {
  align-self: center;
  width: min(680px, calc(100% - 40px));
  margin-left: min(112px, max(20px, calc((100vw - 680px) / 2)));
  color: #fffaf2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.story-text h2,
.menu-section h2,
.photo-section h2,
.booking-intro h2,
.admin-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(4rem, 12vw, 9.5rem);
}

.hero-line {
  width: min(590px, 100%);
  margin: 20px 0 28px;
  color: rgba(255, 250, 242, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
}

.hero-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.hero-action,
.primary-button {
  padding: 0 20px;
  background: var(--wine);
  color: #fffaf2;
  font-weight: 800;
}

.hero-action:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: #5f1027;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.story-section,
.menu-section,
.photo-section,
.price-section,
.booking-section,
.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  padding: 80px 0 64px;
}

.story-text h2,
.menu-section h2,
.photo-section h2,
.price-section h2,
.booking-intro h2 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
}

.story-text p:not(.eyebrow),
.booking-intro p,
.price-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.principles {
  display: grid;
  gap: 14px;
}

.principles article,
.drink-card,
.admin-booking {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.62);
  box-shadow: 0 14px 40px rgba(21, 18, 15, 0.08);
}

.principles article {
  padding: 20px;
}

.principles span {
  color: var(--wine);
  font-size: 0.74rem;
  font-weight: 900;
}

.principles h3,
.drink-card h3 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.principles p,
.drink-card p {
  margin: 0;
  color: var(--muted);
}

.menu-section,
.photo-section,
.price-section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.price-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
}

.drink-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.drink-card {
  min-height: 240px;
  padding: 28px;
  background: var(--porcelain);
}

.drink-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 0 28px;
  border: 1px solid var(--moss);
  border-radius: 50%;
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.photo-grid figure {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--smoke);
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  padding: 76px 0 96px;
  border-top: 1px solid var(--line);
}

.booking-form,
.admin-login {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--porcelain);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

label,
legend {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(21, 18, 15, 0.22);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(122, 22, 49, 0.14);
}

.fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.segmented-control label {
  min-width: 0;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid rgba(21, 18, 15, 0.22);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--muted);
  cursor: pointer;
}

.segmented-control input:checked + span {
  border-color: var(--moss);
  background: rgba(49, 95, 75, 0.12);
  color: var(--moss);
}

.drink-choices {
  display: grid;
  gap: 12px;
}

.drink-choice {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.drink-note {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 600;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.price-summary {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(21, 18, 15, 0.14);
  border-radius: 8px;
  background: rgba(246, 240, 229, 0.72);
}

.price-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.price-summary span,
.price-summary p {
  color: var(--muted);
}

.price-summary strong {
  color: var(--ink);
}

.price-summary .price-total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.price-summary .price-total span,
.price-summary .price-total strong {
  color: var(--wine);
  font-size: 1.12rem;
}

.price-summary p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.price-summary p[data-tone="success"] {
  color: var(--moss);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-message[data-tone="success"] {
  color: var(--moss);
}

.form-message[data-tone="error"] {
  color: var(--wine);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  margin-left: 14px;
  color: var(--wine);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-logo {
  width: 104px;
  height: auto;
}

.admin-body {
  min-height: 100vh;
  background: #f3eee6;
}

.admin-shell {
  padding: 54px 0 90px;
}

.admin-heading h1 {
  font-size: clamp(2.8rem, 8vw, 5.8rem);
}

.admin-login {
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  margin-top: 24px;
  box-shadow: none;
}

.booking-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.admin-booking {
  padding: 22px;
}

.admin-booking-heading {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.admin-booking h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.admin-booking p {
  margin: 0;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  min-width: 92px;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(194, 138, 48, 0.18);
  color: #71500f;
}

.status-accepted {
  background: rgba(49, 95, 75, 0.18);
  color: var(--moss);
}

.status-rejected,
.status-canceled {
  background: rgba(122, 22, 49, 0.14);
  color: var(--wine);
}

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

.booking-details div {
  min-width: 0;
}

.booking-details dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

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

.secondary-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(21, 18, 15, 0.22);
  background: #fffdf8;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.empty-state {
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header {
    padding: 0 20px;
  }

  .hero {
    min-height: 80svh;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(13, 11, 9, 0.74), rgba(13, 11, 9, 0.18)),
      linear-gradient(90deg, rgba(13, 11, 9, 0.62), rgba(13, 11, 9, 0.18));
  }

  .hero-copy {
    align-self: end;
    margin: 0 auto 42px;
  }

  .story-section,
  .price-section,
  .booking-section,
  .admin-login {
    grid-template-columns: 1fr;
  }

  .drink-grid,
  .photo-grid,
  .booking-details {
    grid-template-columns: 1fr;
  }

  .photo-grid figure {
    aspect-ratio: 16 / 10;
  }

  .site-footer,
  .admin-booking-heading {
    flex-direction: column;
  }

  .site-footer a {
    display: inline-block;
    margin: 8px 0 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 66px;
    padding: 8px 16px;
  }

  .brand-logo {
    width: 118px;
    max-height: 50px;
  }

  nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 18vw, 5.6rem);
  }

  .story-section,
  .menu-section,
  .photo-section,
  .price-section,
  .booking-section,
  .admin-shell {
    width: min(100% - 28px, 1180px);
  }

  .booking-form,
  .admin-login {
    padding: 18px;
  }

  .drink-choice {
    grid-template-columns: 1fr;
  }

  .drink-note {
    grid-column: 1;
  }
}
