@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

:root {
  --bg: #0f0a07;
  --card: #231811;
  --text: #f4ebe2;
  --muted: #b4a190;
  --accent: #ff9d3d;
  --accent2: #ff4d6d;
  --line: rgba(255, 255, 255, .09);
  --grad: linear-gradient(135deg, #ff9d3d, #ff4d6d);
  --serif: "Playfair Display", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, Arial, sans-serif; line-height: 1.75; font-size: 18px;
  background-image:
    radial-gradient(900px 500px at 85% -5%, rgba(255, 77, 109, .18), transparent 60%),
    radial-gradient(800px 500px at 0% 10%, rgba(255, 157, 61, .16), transparent 60%);
  background-repeat: no-repeat;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.wide { max-width: 1120px; }

/* reading progress bar (article pages) */
@keyframes grow { to { transform: scaleX(1); } }
body.is-article::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100;
  background: var(--grad); transform: scaleX(0); transform-origin: 0 50%;
  animation: grow linear both; animation-timeline: scroll(root);
}

/* header */
header {
  position: sticky; top: 0; z-index: 50; background: rgba(15, 10, 7, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--serif); font-weight: 900; font-size: 1.5rem; letter-spacing: -.5px; color: var(--text); text-decoration: none; }
.logo::before { content: "⚡ "; }
nav { font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
nav a:hover { color: var(--accent); }
nav a.nav-cta { color: #1a0d05; background: var(--grad); padding: 8px 18px; border-radius: 99px; font-weight: 800; }
nav a.nav-cta:hover { color: #1a0d05; filter: brightness(1.1); }

/* hero */
.hero { text-align: center; padding: 90px 0 40px; position: relative; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .5;
  animation: float 9s ease-in-out infinite alternate;
}
.hero::before { width: 320px; height: 320px; background: #ff9d3d; left: 4%; top: 40px; }
.hero::after { width: 280px; height: 280px; background: #ff4d6d; right: 6%; top: 100px; animation-delay: -4s; }
@keyframes float { to { transform: translate(40px, 30px) scale(1.15); } }
.kicker {
  display: inline-block; padding: 6px 16px; border-radius: 99px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
}
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1.02; letter-spacing: -2px; margin: 22px 0 18px; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.hero p { max-width: 580px; margin: 0 auto; color: var(--muted); font-size: 1.15rem; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 99px; border: 0; cursor: pointer; font: inherit;
  background: var(--grad); color: #1a0d05; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 40px -8px rgba(255, 110, 80, .6); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 50px -8px rgba(255, 110, 80, .8); }
.hero .btn { margin-top: 30px; }

/* pills */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 10px; }
.pills a { padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 600; background: rgba(255,255,255,.03); transition: all .2s; }
.pills a:hover, .pills a.on { background: var(--accent); color: #1a0d05; border-color: var(--accent); }

.section-title { font-family: var(--serif); font-size: 1.8rem; margin: 54px 0 22px; display: flex; align-items: center; gap: 14px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* featured + cards */
.featured { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 28px; overflow: hidden; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.featured:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -20px rgba(255, 110, 80, .35); }
.featured .art { min-height: 340px; font-size: 8rem; }
.featured .body { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.featured h2 { font-family: var(--serif); font-size: 2.1rem; line-height: 1.15; margin: 12px 0; }
.featured p { color: var(--muted); margin: 0 0 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-8px) rotate(-.4deg); border-color: rgba(255,157,61,.5); box-shadow: 0 26px 60px -22px rgba(255, 110, 80, .45); }
.card .art { height: 170px; font-size: 4.6rem; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin: 10px 0 8px; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.art { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.art span { filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); transition: transform .4s; position: relative; z-index: 1; }
.card:hover .art span, .featured:hover .art span { transform: scale(1.18) rotate(-6deg); }
.tag { align-self: flex-start; padding: 4px 12px; border-radius: 99px; font-size: .7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; background: rgba(255,157,61,.14); color: var(--accent); text-decoration: none; }
.meta { color: var(--muted); font-size: .82rem; font-weight: 500; }

@supports (animation-timeline: view()) {
  @keyframes rise { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: none; } }
  .card, .gear-item, .featured { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}

/* article page */
main { padding: 30px 0 20px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-top: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
article h1 {
  font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -1.5px; margin: 18px 0 16px;
  background: linear-gradient(120deg, #fff 30%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
article .meta { padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.disclosure { font-size: .8rem; color: var(--muted); background: rgba(255,255,255,.04); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 6px; margin-bottom: 28px; }
.prose > p:first-child { font-size: 1.3rem; line-height: 1.65; color: #fff; }
.prose > p:first-child::first-letter { font-family: var(--serif); font-weight: 900; float: left; font-size: 4.6rem; line-height: .85; padding: 6px 12px 0 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose p, .prose li { color: #dccfc2; }
.prose h2 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; margin: 2.6rem 0 .8rem; padding-left: 18px; position: relative; color: var(--text); }
.prose h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 4px; background: var(--grad); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .4rem 0; }
.prose li::marker { color: var(--accent); font-weight: 800; }
.prose strong { color: #fff; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #dccfc2; }
.prose th { color: var(--accent); font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; }
.back { display: inline-block; margin-top: 30px; padding: 12px 26px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.back:hover { background: var(--accent); color: #1a0d05; }

/* plain pages */
.page h1 { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 4rem); margin: 40px 0 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.page h2 { font-family: var(--serif); font-size: 1.5rem; margin: 2rem 0 .5rem; }
.page p, .page li { color: #dccfc2; }

/* footer */
footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 50px 0 40px; color: var(--muted); font-size: .88rem; background: rgba(0,0,0,.25); }
footer .wrap { max-width: 1120px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured .art { min-height: 220px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 30px; }
  nav { gap: 14px; }
  nav .hide-m { display: none; }
  .featured .body { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* images */
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .art img, .featured:hover .art img { transform: scale(1.08); }
.art { background: #2a1d14; }
.card .art { height: 200px; }
.cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; margin: 0 0 34px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); }
footer .pills { margin: 0 0 22px; }
.copy { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; }
.copy a { color: var(--muted); }
