:root {
  --bg: #f4efe6;
  --panel: #fffaf1;
  --panel-strong: #fff3dd;
  --text: #251d18;
  --muted: #6f6258;
  --accent: #8d3f24;
  --accent-dark: #632816;
  --border: #e2d4c4;
  --shadow: 0 18px 50px rgba(64, 36, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(141, 63, 36, 0.14), transparent 34rem),
    linear-gradient(135deg, #f7f0e6 0%, #ece1d3 100%);
}

a {
  color: inherit;
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.card,
.auth-card {
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(28px, 6vw, 64px);
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(38px, 7vw, 74px);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

p {
  line-height: 1.7;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 22px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 13px;
  color: var(--accent-dark);
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.menu-card,
.link-card {
  display: block;
  min-height: 170px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(64, 36, 18, 0.08);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.menu-card:hover,
.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 63, 36, 0.4);
  box-shadow: 0 16px 40px rgba(64, 36, 18, 0.14);
}

.menu-card h2,
.link-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

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

.instruction-list,
.checklist {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}

.instruction-list li,
.checklist li {
  margin: 0.35rem 0;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.65rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}

.lock-label {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card {
  padding: clamp(24px, 4vw, 40px);
}

.stack {
  display: grid;
  gap: 18px;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn.secondary {
  color: var(--accent-dark);
  background: var(--panel-strong);
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(37, 29, 24, 0.72);
  backdrop-filter: blur(8px);
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px;
}

.auth-card h2 {
  margin-bottom: 10px;
}

.auth-error {
  min-height: 22px;
  color: #a32727;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(141, 63, 36, 0.12), transparent 22rem),
      linear-gradient(135deg, #f7f0e6 0%, #ece1d3 100%);
  }

  .page {
    width: min(100% - 20px, 1080px);
    padding: 14px 0 32px;
  }

  .hero,
  .card,
  .auth-card {
    border-radius: 20px;
  }

  .hero,
  .card {
    padding: 22px;
  }

  h1 {
    font-size: clamp(34px, 13vw, 48px);
    letter-spacing: -0.055em;
  }

  h2 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .lead {
    font-size: 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 14px;
  }

  .brand {
    font-size: 20px;
  }

  .pill {
    width: 100%;
    justify-content: center;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .menu-card,
  .link-card {
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
  }

  .menu-card h2,
  .link-card h3 {
    font-size: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .btn,
  button.btn {
    width: 100%;
  }

  .auth-backdrop {
    align-items: end;
    padding: 10px;
  }

  .auth-card {
    padding: 22px;
  }
}
