:root {
  --ink: #2b2426;
  --muted: #6d6265;
  --paper: #fffaf7;
  --cream: #f8efe7;
  --rose: #cc6b7a;
  --rose-dark: #8f3c4f;
  --sage: #6f8f80;
  --forest: #355f56;
  --gold: #c49a54;
  --blue: #637f9b;
  --line: rgba(43, 36, 38, 0.14);
  --shadow: 0 22px 70px rgba(54, 39, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-locked {
  min-height: 100vh;
  overflow: hidden;
}

.access-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  isolation: isolate;
}

.access-shell::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(43, 36, 38, 0.76), rgba(43, 36, 38, 0.38)),
    rgba(43, 36, 38, 0.35);
}

.access-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.access-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access-dialog {
  position: static;
  width: min(420px, 100%);
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.access-form,
.booking-form,
.secret-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 5vw, 34px);
  background: #fffaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.access-form {
  border-color: rgba(255, 255, 255, 0.56);
  box-shadow: 0 28px 90px rgba(43, 36, 38, 0.34);
}

.access-form h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.05;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  padding: clamp(26px, 5vw, 68px);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(43, 36, 38, 0.78), rgba(43, 36, 38, 0.34) 52%, rgba(43, 36, 38, 0.08)),
    linear-gradient(180deg, rgba(43, 36, 38, 0.05), rgba(43, 36, 38, 0.54));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero-content {
  align-self: center;
  width: min(720px, 100%);
  color: #fff;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 8vw, 6.5rem);
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
.formula-option:focus-within {
  outline: 3px solid rgba(196, 154, 84, 0.42);
  outline-offset: 3px;
}

.button.primary {
  color: #fff;
  background: var(--rose-dark);
  box-shadow: 0 14px 30px rgba(143, 60, 79, 0.28);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.1);
}

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

.button.danger {
  color: #fff;
  background: #9a303d;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.intro p:last-child,
.booking-copy p,
.secret-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

.formula-card {
  display: grid;
  gap: 16px;
  min-height: 330px;
  padding: clamp(22px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(54, 39, 38, 0.08);
}

.formula-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(99, 127, 155, 0.12), #fff 48%);
}

.formula-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(111, 143, 128, 0.16), #fff 48%);
}

.formula-card:nth-child(4) {
  background: linear-gradient(180deg, rgba(196, 154, 84, 0.16), #fff 48%);
}

.formula-number {
  color: var(--rose-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.formula-card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.formula-card p {
  margin: 0;
  color: var(--muted);
}

.formula-card .button {
  align-self: end;
  width: fit-content;
}

.booking-section {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100% - 1120px) / 2));
  background: var(--cream);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.booking-copy {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.booking-copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
}

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

.formula-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  background: #fffaf8;
  border: 1px solid rgba(43, 36, 38, 0.2);
  border-radius: 8px;
  cursor: pointer;
}

.formula-option input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--rose-dark);
}

.formula-option span {
  font-weight: 800;
}

.formula-option:has(input:checked) {
  border-color: var(--rose-dark);
  box-shadow: inset 0 0 0 1px var(--rose-dark);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fffaf8;
  border: 1px solid rgba(43, 36, 38, 0.2);
  border-radius: 8px;
  font: inherit;
}

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

.form-message.success {
  color: #2f6f4f;
}

.form-message.error {
  color: #9a303d;
}

.secret-section {
  padding-top: clamp(64px, 8vw, 102px);
}

.secret-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  padding: clamp(24px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(204, 107, 122, 0.08), rgba(111, 143, 128, 0.1)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(54, 39, 38, 0.1);
}

.secret-panel h2,
.modal-content h2,
.love-message h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.modal-dialog {
  width: min(560px, calc(100% - 28px));
  padding: clamp(24px, 5vw, 40px);
  color: var(--ink);
  background: #fffaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(43, 36, 38, 0.34);
}

.love-dialog {
  width: min(720px, calc(100% - 28px));
}

.easter-dialog {
  width: min(760px, calc(100% - 28px));
  padding: 10px;
  overflow: visible;
  background: #fff;
}

.easter-dialog img {
  width: 100%;
  max-height: min(78vh, 760px);
  object-fit: contain;
  border-radius: 6px;
}

.modal-dialog::backdrop {
  background: rgba(43, 36, 38, 0.58);
  backdrop-filter: blur(7px);
}

.modal-content,
.love-message {
  display: grid;
  gap: 16px;
}

.modal-content p,
.love-message p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.modal-cancel {
  color: var(--rose-dark);
  border-color: var(--line);
  background: #fff;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.footer {
  padding: 28px 18px 42px;
  color: var(--muted);
  text-align: center;
}

.footer a {
  color: var(--rose-dark);
  font-weight: 800;
}

.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(143, 60, 79, 0.12), rgba(53, 95, 86, 0.12)),
    var(--paper);
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(30px, 7vw, 74px) 0;
}

.admin-panel {
  padding: clamp(22px, 5vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.admin-home {
  color: var(--rose-dark);
  border-color: var(--line);
  background: #fff;
}

.admin-login {
  max-width: 430px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--rose-dark);
  background: var(--cream);
  font-size: 0.86rem;
  text-transform: uppercase;
}

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

.table-delete {
  min-height: 36px;
  padding: 0 12px;
  color: #9a303d;
  background: #fff;
  border: 1px solid rgba(154, 48, 61, 0.3);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.table-delete:hover {
  background: rgba(154, 48, 61, 0.08);
}

@media (max-width: 980px) {
  .formula-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .booking-layout,
  .secret-panel,
  .intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    max-width: 9ch;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .button,
  .formula-card .button {
    width: 100%;
  }

  .formula-grid,
  .formula-options,
  .booking-fields {
    grid-template-columns: 1fr;
  }
}
