:root {
  --am-stone: #efead8;
  --am-ink: #2f2a22;
  --am-gold: #b8944e;
  --am-deep: #4b4336;
  --am-sand: #f8f3e5;
  --am-border: #c9b78b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Libre Franklin", sans-serif;
  color: var(--am-ink);
  background:
    radial-gradient(circle at 12% 0%, #fff7df 0, transparent 30%),
    radial-gradient(circle at 88% 8%, #f4e0b8 0, transparent 24%),
    linear-gradient(180deg, #f5efdd 0%, #ece2cb 100%);
}

.am-shell {
  width: min(1500px, 97vw);
  margin: 0 auto;
}

.am-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(52, 45, 35, 0.94);
  border-bottom: 2px solid #8c7342;
}

.am-header .am-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.am-logo img {
  width: 236px;
  max-width: 74vw;
}

.am-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #d8ba72;
  background: #5c4f3f;
  color: #fff6db;
  font-size: 1.1rem;
}

.am-nav {
  display: flex;
  gap: 0.6rem;
}

.am-nav a {
  text-decoration: none;
  color: #f5e8c8;
  border: 1px solid #8d7a55;
  border-radius: 999px;
  padding: 0.43rem 0.79rem;
  font-weight: 700;
}

.am-nav a[aria-current="page"],
.am-nav a:hover {
  background: #d1b06c;
  color: #3e2f17;
  border-color: #d1b06c;
}

.am-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-top: 1rem;
}

.am-block,
.am-side,
.am-chip,
.am-legal {
  border: 1px solid var(--am-border);
  border-radius: 14px;
  background: rgba(255, 253, 246, 0.88);
  padding: 1rem;
}

h1,
h2,
h3 {
  font-family: "Cinzel", serif;
  margin-top: 0;
  color: var(--am-deep);
}

.am-flags {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.am-flags article {
  border: 1px dashed #bba676;
  border-radius: 10px;
  background: #fff9eb;
  padding: 0.7rem;
}

.am-embed {
  margin-top: 1rem;
  border: 4px solid #b79a5a;
  border-radius: 14px;
  overflow: hidden;
}

.am-embed iframe {
  width: 100%;
  height: min(78vh, 720px);
  border: 0;
  display: block;
}

.am-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.am-footer {
  margin-top: 2rem;
  background: #3a3329;
  color: #f7ebcb;
  border-top: 2px solid #9b8050;
}

.am-footer .am-shell {
  padding: 1rem 0 1.5rem;
}

.am-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.am-links a {
  color: #e9cf95;
}

.am-gate {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(33, 29, 22, 0.84);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.am-gate[hidden] {
  display: none;
}

.am-gate-sheet {
  width: min(520px, 96vw);
  border-radius: 14px;
  background: #fff8e7;
  border: 2px solid #c4a968;
  padding: 1rem;
}

.am-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.am-actions button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.am-pass {
  background: #b8944e;
  color: #fff;
}

.am-fail {
  background: #5e513f;
  color: #fff4db;
}

@media (max-width: 980px) {
  .am-hero {
    grid-template-columns: 1fr;
  }

  .am-flags,
  .am-grid {
    grid-template-columns: 1fr;
  }

  .am-hamburger {
    display: inline-block;
  }

  .am-nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 2vw;
    width: min(280px, 92vw);
    flex-direction: column;
    background: #5a4c3a;
    border: 1px solid #c7aa68;
    border-radius: 12px;
    padding: 0.6rem;
  }

  .am-nav.open {
    display: flex;
  }
}