/* ====== Fan Guide 2026 — layout.css ====== */

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand:hover { color: inherit; }
.brand__mark {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--sky-500), var(--sky-700));
  box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__name { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; font-size: 1.18rem; line-height: 1; color: var(--ink); }
.brand__name b { color: var(--maple-600); }
.brand__sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav__menu { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.nav__link {
  display: inline-block; padding: .55rem .8rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
}
.nav__link:hover { background: var(--paper-3); color: var(--sky-700); }
.nav__link[aria-current="page"] { color: var(--maple-600); background: var(--sky-50); }

.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---- Footer ---- */
.site-footer {
  background:
    radial-gradient(800px 380px at 90% -20%, rgba(31,143,255,.22), transparent 60%),
    var(--sky-900);
  color: rgba(255,255,255,.78);
  padding-block: 56px 28px;
  margin-top: auto;
}
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
.footer__brand .brand__name { color: #fff; }
.footer__brand p { color: rgba(255,255,255,.66); margin-top: 14px; max-width: 32ch; font-size: .95rem; }
.footer__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin: .5rem 0; }
.footer__social { display: flex; gap: .6rem; margin-top: 16px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.footer__social a:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .88rem; color: rgba(255,255,255,.6);
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Generic grids ---- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }

/* Page intro band */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 460px at 85% -20%, rgba(31,143,255,.30), transparent 60%),
    radial-gradient(760px 420px at -10% 120%, rgba(226,31,43,.22), transparent 55%),
    var(--sky-900);
  color: #fff; padding-block: clamp(56px, 8vw, 104px);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.84); }
.page-hero .crumbs a { color: rgba(255,255,255,.7); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero__deco { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.4px, transparent 1.6px);
  background-size: 26px 26px; mask-image: radial-gradient(70% 70% at 70% 10%, #000, transparent); }

.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .9rem; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs span { opacity: .55; }

/* Article layout */
.article { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 48px; align-items: start; }
.article__aside { position: sticky; top: 92px; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .article__aside { position: static; }
}
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: #fff; padding: 16px 22px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s;
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: .85rem .9rem; font-size: 1.05rem; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
}
