:root {
  --brown: #4b2c1a;
  --brown-deep: #2f1a0f;
  --gold: #c59b35;
  --gold-soft: #e4c989;
  --beige: #f4ede4;
  --beige-2: #efe5d8;
  --ink: #1c120c;
  --muted: #765b48;
  --card: #ffffff;
  --accent: var(--gold);
  --radius: 14px;
  --shadow: 0 20px 60px rgba(31, 21, 15, 0.1);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--beige);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.page {
  background: radial-gradient(circle at 16% 18%, rgba(197, 155, 53, 0.08), transparent 28%), radial-gradient(circle at 86% 8%, rgba(75, 44, 26, 0.07), transparent 30%), var(--beige);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: var(--brown);
  text-decoration: none;
}

body.logged-out [data-protected] {
  display: none !important;
}

.hero,
.topbar {
  padding: 24px clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(75, 44, 26, 0.06), rgba(197, 155, 53, 0.06) 50%, rgba(244, 237, 228, 0.9));
}

.hero {
  flex-direction: column;
  align-items: stretch;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 12px 0 8px;
}

.hero-img {
  max-width: 440px;
  width: 100%;
  filter: drop-shadow(var(--shadow));
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 12px;
  margin-bottom: 8px;
}

.headline {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--brown-deep);
}

.lede {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--brown), var(--brown-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 20px rgba(47, 26, 15, 0.25), 0 0 0 4px rgba(197, 155, 53, 0.18);
}

.logo-title {
  font-size: 20px;
}

.logo-sub {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 12px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(197, 155, 53, 0.12);
  color: var(--brown);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(197, 155, 53, 0.2);
  color: var(--brown-deep);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--brown), var(--gold));
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 26, 15, 0.22);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.small {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brown), var(--gold));
  color: #fff;
  box-shadow: 0 14px 26px rgba(47, 26, 15, 0.25);
}

.btn.ghost {
  background: #fff;
  color: var(--brown);
  border: 2px solid rgba(197, 155, 53, 0.45);
}

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

.btn:active {
  transform: translateY(0);
}

main {
  padding: 20px clamp(20px, 4vw, 60px) 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  background: linear-gradient(145deg, #fff, var(--beige-2));
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(75, 44, 26, 0.08);
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

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

.switcher {
  display: inline-flex;
  background: rgba(197, 155, 53, 0.12);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid rgba(75, 44, 26, 0.08);
}

.switch-btn {
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.switch-btn.active {
  background: #fff;
  color: var(--brown);
  box-shadow: var(--shadow);
  border: 1px solid rgba(197, 155, 53, 0.4);
}

.logo-mark {
  background-image: url('images/Espresso.jpg');
  background-size: cover;
  background-position: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.32);
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
}

.field input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(75, 44, 26, 0.2);
  background: #fff;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
}

.hidden {
  display: none;
}

.status {
  margin-top: 10px;
  font-weight: 600;
  color: var(--brown);
}

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

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

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

.gap-lg {
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(75, 44, 26, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.card-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(197, 155, 53, 0.12), rgba(75, 44, 26, 0.12));
  border-radius: 50%;
  padding: 6px;
  margin: 0 auto;
  display: block;
  box-shadow: 0 10px 24px rgba(47, 26, 15, 0.12);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pill {
  background: rgba(197, 155, 53, 0.16);
  color: var(--brown);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: center;
}

.about-img {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

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

body.logged-in #account {
  display: none;
}

@media (max-width: 640px) {

  .hero,
  .topbar {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-link {
    flex: 1 1 auto;
    text-align: center;
  }
}