/* aygono.com magazine. Poster look: black, off-white, red. Headlines in Anton (OFL, shipped in fonts/).
 * Phone first; 16px gutter; no sideways page scroll. No runtime CDN fonts. */

@font-face {
  font-family: "Anton";
  src: url("/static-landing/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0b;
  --bg-2: #151515;
  --fg: #f2efe9;
  --red: #e10600;          /* large fills and big type only */
  --red-text: #ff3b30;     /* small red text: passes 4.5:1 on --bg */
  --gray: #a8a6a1;
  --rule: rgba(242, 239, 233, 0.16);
  --display: "Anton", "Bebas Neue", Oswald, Impact, "Arial Narrow Bold", "Helvetica Neue Condensed", sans-serif-condensed, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }

:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--red);
  color: var(--fg);
  padding: 12px 16px;
  font-weight: 700;
}
.skip:focus { top: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-text);
  font-weight: 700;
}
.label a { text-decoration: none; }
.label a:hover { text-decoration: underline; }

/* ---------- Header: utility bar, masthead, sticky navbar ---------- */

.utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
  max-width: 1440px;
  margin: 0 auto;
}
.utility .flags { gap: 2px; }
.util-sub {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  background: var(--red);
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.util-sub:hover, .util-sub:focus-visible { background: var(--fg); color: var(--bg); }

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 14px var(--gutter) 12px;
  text-align: center;
}
.logo-word {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 12vw, 132px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.logo-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
  margin-top: 4px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s;
}
.navbar.is-scrolled { border-bottom-color: var(--red); }
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}
.navbar-logo {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
  margin-right: auto;
}
.nav { display: none; }

.flags { display: flex; gap: 4px; }
.flag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  opacity: 0.55;
}
.flag-link:hover, .flag-link[aria-pressed="true"] { opacity: 1; }
.flag-link img { width: 18px; height: 12px; border: 1px solid rgba(242, 239, 233, 0.35); }
.flag-link[aria-pressed="true"] img { outline: 1px solid var(--red-text); outline-offset: 2px; }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--fg);
}
.burger-bars { position: relative; display: block; width: 24px; height: 2px; background: var(--fg); }
.burger-bars::before, .burger-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--fg);
}
.burger-bars::before { top: -7px; }
.burger-bars::after { top: 7px; }

@media (min-width: 960px) {
  .navbar-logo { display: none; }
  .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
    gap: clamp(14px, 2.2vw, 30px);
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
  }
  .nav a:hover { color: var(--red-text); }
  .nav .nav-sub {
    min-height: 36px;
    padding: 0 14px;
    border: 2px solid var(--red-text);
    color: var(--red-text);
  }
  .nav .nav-sub:hover { background: var(--red-text); color: var(--bg); }
  .burger { display: none; }
}

/* Full-screen mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu-bar { justify-content: space-between; }
.menu-bar { display: flex; align-items: center; min-height: 72px; padding: 8px var(--gutter); }
.menu-close {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  background: none;
  border: 2px solid var(--fg);
  color: var(--fg);
  font: 700 14px var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-close:hover { border-color: var(--red-text); color: var(--red-text); }
.menu-nav {
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 16px;
  border-top: 1px solid var(--red);
  margin-top: 8px;
}
.menu-nav a {
  display: flex;
  align-items: center;
  min-height: 60px;
  font-family: var(--display);
  font-size: clamp(40px, 11vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.menu-nav a:hover, .menu-nav a:focus-visible { color: var(--red-text); }
.menu-nav .menu-sub {
  justify-content: center;
  margin-top: 18px;
  border: 2px solid var(--red-text);
  color: var(--red-text);
}
.menu-nav .menu-sub:hover, .menu-nav .menu-sub:focus-visible { background: var(--red-text); color: var(--bg); }
.menu-flags { padding: 16px var(--gutter); }
body.menu-open { overflow: hidden; }

/* ---------- Covers: photo or generated halftone ---------- */

.cov-img, .hero-media img, .post-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gcov {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  overflow: hidden;
  --dot: var(--red);
  --rot: 0deg;
  --dir: to bottom;
}
.gcov[data-cat="culture"], .gcov[data-cat="events"] { --dot: var(--fg); --rot: 45deg; }
.gcov[data-cat="video"] { --rot: 15deg; --dir: to top right; }
.gcov[data-cat="music"] { --rot: 30deg; --dir: to right; }
.gcov::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(circle, var(--dot) 0 45%, transparent 46%);
  background-size: 14px 14px;
  transform: rotate(var(--rot));
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(var(--dir), #000 0%, transparent 85%);
  mask-image: linear-gradient(var(--dir), #000 0%, transparent 85%);
}
.gcov::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 11, 11, 0.9));
}
.gcov-word {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 1;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 120px);
  line-height: 0.85;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
  opacity: 0.35;
  white-space: nowrap;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.15) 0%, rgba(11, 11, 11, 0.55) 45%, rgba(11, 11, 11, 0.96) 100%);
  pointer-events: none;
}

/* ---------- Home lead: big lead story (left) and the latest list (right) ---------- */

.hero {
  display: block;
  min-height: auto;
  border-bottom: 1px solid var(--rule);
}
.hero-lead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 70vh;
  min-height: 70svh;
  display: flex;
  align-items: flex-end;
  background: var(--bg);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-lead::after {
  /* film grain */
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 96px var(--gutter) 40px;
}
.hero-label { margin-bottom: 14px; }
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 18px;
  padding-bottom: 0.04em;
}
.hero-title a { text-decoration: none; }
.hero-title a:hover { color: var(--red-text); }
.hero-excerpt { font-size: clamp(17px, 2vw, 22px); max-width: 40ch; margin-bottom: 14px; }
.hero-date, .card-date { font-size: 13px; color: var(--gray); }
.hero-empty .hero-lead { min-height: 60vh; min-height: 60svh; }
.hero-empty .hero-inner { padding-top: 160px; }

/* Outlined category word: bottom right of the lead, behind the text, out of the label's way */
.hero .gcov-word {
  top: auto;
  bottom: -0.12em;
  right: 12px;
  left: auto;
  z-index: 0;
  font-size: clamp(80px, 16vw, 260px);
  line-height: 0.8;
  opacity: 0.22;
}

.eq {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30vh;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: clamp(3px, 0.7vw, 8px);
  padding: 0 var(--gutter);
  pointer-events: none;
  opacity: 0.45;
}
.eq span {
  flex: 1 1 0;
  height: 100%;
  background: var(--red);
  transform-origin: bottom;
  transform: scaleY(var(--p, 0.6));
  animation-name: eq;
  animation-duration: var(--d, 1.2s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
@keyframes eq {
  from { transform: scaleY(0.12); }
  to { transform: scaleY(var(--p, 0.6)); }
}

.latest { padding: 0 var(--gutter) 24px; }
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { border-bottom: 1px solid var(--rule); }
.latest-list a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
}
.latest-list a:hover .latest-title { color: var(--red-text); }
.num {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  color: var(--red-text);
  min-width: 46px;
}
.latest-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.latest-title {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  }
  .hero-inner { padding: 120px 40px 48px; }
  .hero-empty .hero-inner { padding-top: 160px; }
  .latest { padding: 24px 28px 40px; border-left: 1px solid var(--rule); }
}

/* ---------- Section heads, empty states ---------- */

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--fg);
  padding: 28px 0 10px;
  margin-bottom: 24px;
}
.sec-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
}
.see-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--red-text);
}
.see-all:hover { text-decoration: underline; }

.empty { color: var(--gray); padding: 16px 0 40px; font-size: 16px; }
.coming-soon {
  font-family: var(--display);
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.95;
  text-transform: uppercase;
  padding: 8px 0 48px;
}
.coming-wrap { padding-bottom: 48px; }

/* ---------- Ticker ---------- */

.ticker-wrap { background: var(--red); color: var(--fg); overflow: hidden; padding: 16px 0; }
.ticker { overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; width: max-content; animation: tick 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-copy { display: inline-flex; flex-shrink: 0; }
.ticker-word {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  padding-right: 0.5em;
}
.ticker-word::after { content: "\2022"; padding-left: 0.5em; }
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Cards ---------- */

.more { padding-top: 32px; padding-bottom: 16px; }
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 0;
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.card-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.card:hover .card-title { color: var(--red-text); }
.card-excerpt { color: var(--gray); font-size: 15px; }
.card-big .card-title { font-size: clamp(48px, 6vw, 84px); }
.card-big .card-excerpt { font-size: 17px; }

.grid-4 { display: grid; gap: 24px; grid-template-columns: 1fr; padding-bottom: 24px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Video band: dark band, its own section */
.video-band {
  background: var(--bg-2);
  border-top: 2px solid var(--red);
  padding-top: 8px;
  padding-bottom: 40px;
}
.video-band .sec-head { border-bottom-color: var(--fg); }

/* Category rows: horizontal rail on phone, three columns on desktop */
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.rail .card { flex: 0 0 78%; scroll-snap-align: start; }
.cat-row { padding-bottom: 24px; }
@media (min-width: 800px) {
  .rail { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; padding-bottom: 0; }
  .rail .card { flex: none; }
}

.grid-cards { display: grid; gap: 24px; grid-template-columns: 1fr; padding-bottom: 32px; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 72px;
  color: var(--gray);
  font-size: 14px;
}
.pager a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--fg);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.pager a:hover { border-color: var(--red-text); color: var(--red-text); }

.cat-page { padding-top: 48px; }
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.92;
  text-transform: uppercase;
  margin: 8px 0 16px;
}
.cat-lede { color: var(--gray); margin-bottom: 32px; max-width: 60ch; }

/* Shop and Subscribe posters */
.poster { padding-top: 120px; padding-bottom: 120px; min-height: 70vh; min-height: 70svh; }
.poster-title {
  font-family: var(--display);
  font-size: clamp(64px, 16vw, 220px);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 12px 0 24px;
  overflow-wrap: anywhere;
}
.poster-text { font-size: clamp(18px, 2vw, 24px); max-width: 36ch; margin-bottom: 32px; color: var(--gray); }

/* ---------- Post page ---------- */

.post-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 72vh;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  background: var(--bg);
}
.post-media { position: absolute; inset: 0; z-index: 0; }
.post-hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 120px;
  padding-bottom: 48px;
  width: 100%;
}
.post-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 11vw, 168px);
  line-height: 0.92;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  margin: 14px 0 18px;
}
.post-hero-inner .wrap { padding: 0 var(--gutter); }
.post-excerpt { font-size: clamp(18px, 2vw, 24px); max-width: 38ch; margin-bottom: 16px; }
.post-meta { font-size: 14px; color: var(--gray); }

.prose {
  max-width: 70ch;
  margin: 56px 0 24px;
  font-size: 18px;
  line-height: 1.65;
}
.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 2.2em 0 0.6em;
}
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--red-text); }
.prose strong { color: var(--fg); }
.prose code { font-size: 0.92em; background: rgba(242, 239, 233, 0.08); padding: 0 4px; }
.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 22px;
  border-left: 6px solid var(--red);
  font-family: var(--display);
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.02;
  text-transform: uppercase;
}
.prose blockquote p { margin: 0; }

.alt-lang { max-width: 70ch; margin: 0 0 56px; font-size: 15px; }
.alt-lang a { color: var(--red-text); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

.related { padding-bottom: 72px; }

.not-found { padding-top: 160px; padding-bottom: 120px; }
.not-found p { margin-bottom: 24px; max-width: 50ch; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--red);
  color: var(--fg);
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  text-decoration: none;
}
.btn:hover, .btn:focus-visible { background: var(--fg); color: var(--bg); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  padding: 72px 0 32px;
  border-top: 2px solid var(--red);
}
.foot-mark {
  font-family: var(--display);
  font-size: clamp(56px, 17vw, 260px);
  line-height: 0.85;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
  margin-bottom: 40px;
}
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}
.foot-links { display: flex; flex-direction: column; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 14px;
}
.foot-links a:hover { color: var(--red-text); }
.foot-links .members { color: var(--gray); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13px; }
.foot-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--gray);
}
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); }
.foot-legal a:hover { color: var(--red-text); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eq span { animation: none; transform: scaleY(var(--p, 0.6)); }
  .ticker-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; white-space: normal; }
  .ticker-copy[aria-hidden="true"] { display: none; }
  .ticker { white-space: normal; text-align: center; }
}
