:root {
  --color-primary: #d35400;
  --color-secondary: #e67e22;
  --color-accent: #c0392b;
  --color-bg: #fef5e7;
  --color-text: #3b2415;
  --color-text-light: #6b4a32;
  --color-border: #e8c9a8;
  --color-panel: #fff9f0;
  --color-band: #f3e0c8;
  --gbl-header-h: 72px;
  --gbl-page-w: 1120px;
  --font-display: "Bitter", Georgia, serif;
  --font-body: "Cabin", "Segoe UI", sans-serif;
}
@media (max-width: 1100px) { :root { --gbl-header-h: 56px; } }
@media (max-width: 480px) { :root { --gbl-header-h: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { scroll-padding-top: var(--gbl-header-h); }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  padding-top: var(--gbl-header-h);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(139, 90, 43, .06) 28px),
    radial-gradient(circle at 20% 10%, rgba(211,84,0,.05), transparent 40%);
}
.gbl-main, .gbl-header, .gbl-footer, .gbl-overlay, .gbl-drawer, .gbl-cookie { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }
a:hover { color: var(--color-accent); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; color: #4a2a12; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
p { margin: 0 0 1rem; }

.gbl-container { max-width: var(--gbl-page-w); margin: 0 auto; padding: 0 20px; }
.gbl-section { padding: 4rem 0; }
.gbl-section--band { background: var(--color-band); }
.gbl-section--bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(135deg, #f8e6cf, #f3d7b3 55%, #edd0a8);
  padding: 4.5rem 0;
}
.gbl-section--dark {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #5a2d0c;
  color: #fef5e7;
  padding: 4rem 0;
}
.gbl-section--dark h2, .gbl-section--dark a { color: #fff3e0; }
.gbl-kicker {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  padding: .2rem .55rem;
  margin-bottom: .75rem;
  background: var(--color-panel);
}

@media (prefers-reduced-motion: no-preference) {
  .gbl-section h2 { position: relative; }
  .gbl-section h2::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    margin-top: .45rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    animation: gbl-sweep .9s ease forwards;
  }
  @keyframes gbl-sweep { to { width: min(8rem, 40%); } }
}

.gbl-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  min-height: var(--gbl-header-h);
  background: #fef5e7;
  box-shadow: 0 2px 8px rgba(90, 45, 12, .12);
}
.gbl-header a, .gbl-header a:visited { color: #5a2d0c; text-decoration: none; }
.gbl-header a.gbl-btn--primary,
.gbl-header a.gbl-btn--primary:visited { color: #ffffff; }
.gbl-header a.gbl-btn--primary:hover,
.gbl-header a.gbl-btn--primary:focus-visible { color: #ffffff; background: #4a1c00; }
.gbl-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--gbl-header-h);
  position: relative;
}
.gbl-header__logo { flex: 0 0 auto; z-index: 2; line-height: 0; max-width: calc(100vw - 150px); }
.gbl-header__logo svg { width: 180px; height: 43px; display: block; }
.gbl-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: .85rem;
  justify-content: center;
  flex: 1 1 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(680px, calc(100% - 420px));
}
.gbl-nav__link { font-size: .92rem; font-weight: 600; white-space: nowrap; }
.gbl-nav__link.is-active { color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; }
.gbl-header__cta { margin-left: auto; z-index: 2; flex-shrink: 0; }

.gbl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid #5a2d0c;
  outline: 2px solid transparent;
  outline-offset: 3px;
  background: #fff9f0;
  color: #5a2d0c;
  cursor: pointer;
  box-shadow: 0 0 0 2px #fff9f0, 0 0 0 4px #5a2d0c;
  transition: background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.gbl-btn--primary {
  background: #7a3000;
  color: #ffffff;
  border-color: #4a1c00;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #4a1c00;
}
.gbl-btn--primary:hover, .gbl-btn--primary:focus-visible {
  background: #4a1c00;
  color: #ffffff;
  border-color: #2a1000;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2a1000;
}
.gbl-btn:hover, .gbl-btn:focus-visible {
  background: #5a2d0c;
  color: #ffffff;
  border-color: #3b1c08;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #3b1c08;
}
.gbl-section--dark .gbl-btn {
  background: #fff3e0;
  color: #3b1c08;
  border-color: #3b1c08;
  box-shadow: 0 0 0 2px #5a2d0c, 0 0 0 4px #fff3e0;
}
.gbl-section--dark .gbl-btn--primary {
  background: #ffffff;
  color: #3b1c08;
  border-color: #3b1c08;
  box-shadow: 0 0 0 2px #5a2d0c, 0 0 0 4px #ffffff;
}
.gbl-section--dark .gbl-btn:hover,
.gbl-section--dark .gbl-btn:focus-visible,
.gbl-section--dark .gbl-btn--primary:hover,
.gbl-section--dark .gbl-btn--primary:focus-visible {
  background: #3b1c08;
  color: #ffffff;
  border-color: #1a0c04;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1a0c04;
}

.gbl-burger, .gbl-overlay, .gbl-drawer { display: none; }
.gbl-burger {
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; padding: 0 11px;
  flex-shrink: 0; color: #5a2d0c; background: transparent; border: 0; cursor: pointer;
}
.gbl-burger span { display: block; flex: 0 0 2px; width: 100%; height: 2px; background: currentColor; border-radius: 1px; }

@media (max-width: 1180px) {
  .gbl-nav { display: none; }
  .gbl-header__cta { display: none !important; }
  .gbl-burger { display: flex; order: 99; margin-left: auto; }
  .gbl-header__row { justify-content: space-between; }
  .gbl-header__logo svg { width: 120px; height: 29px; }
  .gbl-overlay {
    display: block; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.45); opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }
  .gbl-drawer {
    display: block; position: fixed; z-index: 210;
    background: #fef5e7; overflow-y: auto; visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .gbl-drawer--wide {
    top: 0; right: 0; height: 100vh; height: 100dvh;
    width: min(85vw, 400px); padding: 72px 0 24px; transform: translateX(100%);
  }
  body.nav-open .gbl-drawer--wide { transform: translateX(0); visibility: visible; }
  body.nav-open .gbl-overlay { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .gbl-drawer a { display: block; padding: 14px 20px; color: #5a2d0c; text-decoration: none; font-weight: 600; }
  .gbl-drawer .gbl-btn { margin: 12px 20px; }
  .gbl-drawer__close {
    position: absolute; top: 12px; right: 16px; width: 44px; height: 44px;
    border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; color: #5a2d0c;
  }
}

.gbl-hero { padding: 3.5rem 0 2.5rem; }
.gbl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 22rem);
  gap: 2.5rem;
  align-items: center;
}
.gbl-device {
  margin: 0 auto;
  width: min(100%, 280px);
  background: #2b1a10;
  border-radius: 28px;
  padding: 14px 12px 18px;
  box-shadow: 0 18px 40px rgba(90,45,12,.28);
}
.gbl-device__notch {
  width: 36%; height: 8px; margin: 0 auto 10px; border-radius: 8px; background: #1a100a;
}
.gbl-device__screen {
  border-radius: 16px; overflow: hidden; background: #111;
  aspect-ratio: 9 / 16;
}
.gbl-device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.gbl-card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 24px 4px 24px 4px;
  box-shadow: 0 10px 24px rgba(90,45,12,.1);
  padding: 1.35rem;
  transition: transform .2s, box-shadow .2s;
}
.gbl-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(90,45,12,.16); }
.gbl-winner {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.gbl-winner img, .gbl-alt img {
  width: 96px; height: 96px; border-radius: 22%; object-fit: cover;
}
.gbl-alt {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}
.gbl-alt img { width: 72px; height: 72px; }
.gbl-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .55rem;
  background: #f6d7b8;
  color: #5a2d0c;
  border-radius: 999px;
  margin: .35rem .25rem .35rem 0;
}
.gbl-facts { display: grid; gap: .35rem; margin: 1rem 0; font-size: .95rem; }
.gbl-facts dt { font-weight: 700; display: inline; }
.gbl-facts dd { display: inline; margin: 0 0 0 .35rem; }
.gbl-facts div { margin-bottom: .25rem; }

.gbl-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.gbl-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.gbl-preview-card {
  border-top: 6px solid var(--color-primary);
  background: var(--color-panel);
  border-radius: 24px 4px 24px 4px;
  padding: 1.2rem;
  box-shadow: 0 8px 20px rgba(90,45,12,.08);
}
.gbl-preview-card:nth-child(2) { border-top-color: var(--color-secondary); }
.gbl-preview-card:nth-child(3) { border-top-color: var(--color-accent); }

.gbl-cta-panel { text-align: center; max-width: 40rem; margin: 0 auto; }
.gbl-footer {
  background: #4a2a12;
  color: #f8e6cf;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.gbl-footer a { color: #ffd7a8; }
.gbl-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.gbl-footer__title { font-size: 1rem; color: #fff; margin: 0 0 .8rem; }
.gbl-footer__list { list-style: none; padding: 0; margin: 0; }
.gbl-footer__list li { margin-bottom: .45rem; }
.gbl-footer__link {
  background: none; border: 0; padding: 0; color: #ffd7a8; cursor: pointer;
  font: inherit; text-decoration: underline;
}
.gbl-footer__note, .gbl-footer__copy { font-size: .88rem; color: #e8c9a8; }

.gbl-cookie {
  position: fixed;
  z-index: 110;
  right: 16px;
  bottom: 16px;
  width: min(360px, calc(100vw - 32px));
  display: none;
  flex-direction: column;
  gap: .75rem;
  background: #fff9f0;
  border: 1px solid var(--color-border);
  border-radius: 24px 4px 24px 4px;
  box-shadow: 0 12px 32px rgba(90,45,12,.2);
  padding: 1rem 1.1rem;
}
.gbl-cookie:not([hidden]) {
  display: flex;
}
.gbl-cookie__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.gbl-crumbs { font-size: .9rem; margin: 1.5rem 0 1rem; }
.gbl-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.gbl-crumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--color-text-light); }
.gbl-article { max-width: 760px; }
.gbl-sidefacts {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 24px 4px 24px 4px;
  padding: 1rem;
  margin: 1.5rem 0;
}
.gbl-series {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  margin: 2rem 0; padding: 1rem; border: 1px dashed var(--color-border);
}
.gbl-form { display: grid; gap: .9rem; max-width: 640px; }
.gbl-form label { display: grid; gap: .35rem; font-weight: 600; }
.gbl-form input, .gbl-form textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--color-border);
  border-radius: 8px; background: #fff;
}
.gbl-form textarea { min-height: 140px; resize: vertical; }
.gbl-form__ok { color: #1f6b3a; font-weight: 600; }
.gbl-dl { display: grid; gap: .8rem; }
.gbl-dl div { border-bottom: 1px solid var(--color-border); padding-bottom: .6rem; }
.gbl-dl dt { font-weight: 700; font-family: var(--font-display); }
.gbl-dl dd { margin: .2rem 0 0; }
.gbl-404 { text-align: center; padding: 4rem 0; }
.gbl-404__art {
  width: 120px; height: 120px; margin: 0 auto 1.5rem;
  background: radial-gradient(circle at 40% 40%, #e67e22, #d35400 60%, #5a2d0c);
  border-radius: 40% 60% 55% 45%;
  box-shadow: inset -10px -12px 0 rgba(0,0,0,.15);
}
.gbl-pin {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 2rem;
}
.gbl-list { list-style: none; padding: 0; margin: 0; }
.gbl-list li { padding: .9rem 0; border-bottom: 1px solid var(--color-border); }

@media (max-width: 900px) {
  .gbl-hero__grid { grid-template-columns: 1fr; }
  .gbl-device { order: -1; }
  .gbl-alt { grid-template-columns: 64px 1fr; }
  .gbl-alt .gbl-btn { grid-column: 1 / -1; }
  .gbl-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .gbl-section, .gbl-section--bleed, .gbl-section--dark { padding: 2.75rem 0; }
  .gbl-winner { grid-template-columns: 72px 1fr; }
  .gbl-winner img { width: 72px; height: 72px; }
}
