:root {
  --cream: #f6efe4;
  --paper: #fffaf2;
  --ink: #211610;
  --muted: #6b5a4d;
  --line: #ded2c3;
  --cocoa: #2b1710;
  --wine: #8b3029;
  --gold: #c5964f;
  --shadow: 0 18px 48px rgba(41, 25, 16, 0.1);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  border-bottom: 1px solid rgba(255, 248, 237, 0.16);
  background: rgba(43, 23, 16, 0.96);
  color: #fff8ed;
  padding: 12px clamp(16px, 3vw, 38px);
}

.brand,
.route-nav,
.home-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--cocoa);
  font-size: 26px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #e9dac4;
}

.route-nav {
  gap: 8px;
  flex-wrap: wrap;
}

.route-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: #eadfce;
  padding: 0 12px;
}

.route-nav a.active,
.route-nav a:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.home-view {
  display: grid;
}

.home-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  padding: clamp(28px, 6vw, 74px);
  color: #fff8ed;
  background:
    linear-gradient(90deg, rgba(31, 14, 9, 0.9), rgba(31, 14, 9, 0.42)),
    url("https://images.unsplash.com/photo-1511920170033-f8396924c348?auto=format&fit=crop&w=2200&q=85");
  background-size: cover;
  background-position: center;
}

.home-copy {
  max-width: 820px;
}

.home-copy span,
.section-kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-copy h1 {
  margin: 12px 0 0;
  font-size: clamp(72px, 15vw, 156px);
  line-height: 0.88;
}

.home-copy p {
  max-width: 650px;
  margin: 20px 0 0;
  color: #efdfcb;
  font-size: 20px;
  line-height: 1.45;
}

.home-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  padding: 0 18px;
}

.primary-button {
  background: var(--wine);
  color: #fffaf2;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 560px;
}

.story-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(34px, 6vw, 86px);
}

.story-copy h2,
.section-heading h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.story-copy p,
.flavor-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.story-image {
  min-height: 420px;
  background:
    linear-gradient(rgba(58, 31, 23, 0.08), rgba(58, 31, 23, 0.08)),
    url("https://images.unsplash.com/photo-1541167760496-1628856ab772?auto=format&fit=crop&w=1400&q=85");
  background-position: center;
  background-size: cover;
}

.flavors {
  padding: clamp(34px, 6vw, 86px);
  background: var(--paper);
}

.section-heading {
  margin-bottom: 24px;
}

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

.flavor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.flavor-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.flavor-card div {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.flavor-card h3 {
  margin: 0;
  font-size: 22px;
}

.module-view {
  min-height: calc(100vh - 74px);
}

iframe {
  width: 100%;
  min-height: calc(100vh - 74px);
  display: block;
  border: 0;
  background: var(--paper);
}

.hidden {
  display: none;
}

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

  .story-band,
  .flavor-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 72vh;
  }
}
