/* ===========================================================
   LEVELS RUN CLUB — a Sunday morning printed on paper.
   Riso-poster system: sand stock, ink type, one sunrise gradient.
   =========================================================== */

:root {
  --sand: #f4eada;
  --chalk: #fdf8f0;
  --dune: #e8d9c2;
  --ink: #14100e;
  --bark: #453c35;
  --grit: #6e635a;
  --dawn: #ffc542;
  --ember: #ff7a29;
  --blush: #ff4f7e;
  --peak: #d62a8c;
  --berry: #a81a5f;
  --white: #fff;

  --sunrise: linear-gradient(102deg, #ffc542 0%, #ff7a29 38%, #ff4f7e 72%, #d62a8c 100%);

  --shell: min(1180px, 100% - 2.5rem);
  --r: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
main, header, footer { position: relative; z-index: 2; }

h1, h2, h3, .display, .stamp, .ticker {
  font-family: "Big Shoulders", Impact, sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.92;
  margin: 0;
}

p { margin: 0 0 1rem; color: var(--bark); }
a { color: var(--berry); }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: "Big Shoulders", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  color: var(--berry);
  margin: 0 0 0.75rem;
}
.rule { height: 4px; width: 84px; background: var(--sunrise); border: 0; margin: 0 0 1.5rem; }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.bars i { width: 9px; background: var(--ink); display: block; }
.bars i:nth-child(1) { height: 35%; }
.bars i:nth-child(2) { height: 58%; }
.bars i:nth-child(3) { height: 80%; }
.bars i:nth-child(4) { height: 100%; background: var(--ember); }

/* Sunday stamp: the SEO payload, made visible */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 2px solid var(--ink);
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  transform: rotate(-1.2deg);
  background: var(--chalk);
}
.stamp span { white-space: nowrap; }
.stamp b { color: var(--berry); font-weight: 700; }

.btn {
  display: inline-block;
  font-family: "Big Shoulders", sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r);
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sunrise); color: var(--white); border-color: transparent; }
.btn-primary:hover { filter: saturate(1.15) brightness(0.97); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--sand); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dune);
}
.site-head .shell { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.disc {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--dune);
  display: grid; place-items: center; text-align: center;
  flex-shrink: 0;
  border: 1px solid rgba(20,16,14,.15);
}
.disc span {
  font-family: "Big Shoulders", sans-serif;
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; line-height: 1;
}
.brand-name { font-family: "Big Shoulders", sans-serif; text-transform: uppercase; font-weight: 800; font-size: 1.35rem; line-height: 1; }
.brand-tag { font-size: 0.6rem; letter-spacing: 0.28em; color: var(--grit); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.94rem; }
.nav a:hover { color: var(--berry); }
.nav .btn { font-size: 0.98rem; padding: 0.55rem 1.1rem; }
@media (max-width: 860px) { .nav .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(3rem, 9vw, 6.4rem); letter-spacing: -0.02em; }
.hero h1 .gr {
  background: var(--sunrise);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 46ch; margin-top: 1.4rem; color: var(--bark); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; }
.hero-meta div { border-left: 3px solid var(--ink); padding-left: 0.8rem; }
.hero-meta dt { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grit); }
.hero-meta dd { margin: 0; font-family: "Big Shoulders", sans-serif; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }

/* sun disc art */
.sun-wrap { position: relative; display: grid; place-items: center; }
.sun {
  width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%;
  background: var(--dune);
  display: grid; place-items: center; text-align: center;
  position: relative;
  border: 2px solid var(--ink);
}
.sun::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: var(--sunrise); z-index: -1;
}
.sun .mark { font-family: "Big Shoulders", sans-serif; font-weight: 800; font-size: clamp(3.2rem, 9vw, 5rem); letter-spacing: 0.03em; line-height: 0.9; }
.sun .sub { font-size: 0.62rem; letter-spacing: 0.42em; color: var(--bark); text-transform: uppercase; margin-top: 0.5rem; }

/* ---------- ink block ---------- */
.ink { background: var(--ink); color: var(--sand); }
.ink h2 { color: var(--sand); }
.ink p { color: #cabfb3; }
.ink .eyebrow { color: var(--dawn); }

/* ---------- kilometre ticker ---------- */
.ticker-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 2.5rem; border-top: 1px solid rgba(244,234,218,.28); }
.ticker-row > div { padding: 1.4rem 1rem 0; border-right: 1px solid rgba(244,234,218,.28); }
.ticker-row > div:last-child { border-right: 0; }
.ticker-row .k { font-family: "Big Shoulders", sans-serif; font-weight: 800; font-size: 2rem; color: var(--dawn); line-height: 1; }
.ticker-row h3 { font-size: 1.15rem; margin: 0.5rem 0 0.35rem; color: var(--sand); }
.ticker-row p { font-size: 0.9rem; margin: 0; }
@media (max-width: 820px) { .ticker-row { grid-template-columns: 1fr 1fr; } .ticker-row > div { border-bottom: 1px solid rgba(244,234,218,.28); } }
@media (max-width: 480px) { .ticker-row { grid-template-columns: 1fr; } }

/* ---------- the wall ---------- */
.wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.card {
  background: var(--chalk);
  border: 1px solid var(--dune);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}
.card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 0.6rem; }
.card p:last-child { margin-bottom: 0; }
.c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; }
.c-6 { grid-column: span 6; } .c-12 { grid-column: span 12; }
.c-4 { grid-column: span 4; }
@media (max-width: 860px) { .c-7, .c-5, .c-6, .c-4 { grid-column: span 12; } }

/* quote framed by L brackets */
.quote { position: relative; padding: 1.6rem 1.2rem; }
.quote::before, .quote::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--ember);
}
.quote::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.quote::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.quote p { font-family: "Big Shoulders", sans-serif; text-transform: uppercase; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.05; color: var(--ink); margin: 0; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--dune); }
.faq details { border-bottom: 1px solid var(--dune); padding: 1.15rem 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; gap: 1rem; align-items: baseline;
  font-family: "Big Shoulders", sans-serif; text-transform: uppercase; font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--berry); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq .num { color: var(--grit); font-size: 0.85rem; letter-spacing: 0.1em; }
.faq .a { padding: 0.7rem 0 0 2.6rem; max-width: 72ch; }
.faq .a p { margin-bottom: 0; }
@media (max-width: 600px) { .faq .a { padding-left: 0; } }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #cabfb3; padding: 3.5rem 0 2rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-foot a { color: var(--dawn); }
.site-foot .brand-name, .site-foot h3 { color: var(--sand); }
.foot-bottom { border-top: 1px solid rgba(244,234,218,.2); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.82rem; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- photography ---------- */
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  width: 100%; height: auto; display: block;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  aspect-ratio: 1; object-fit: cover;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 12px -12px -12px 12px;
  background: var(--sunrise); border-radius: var(--r); z-index: -1;
}
.hero-photo figcaption {
  font-family: "Big Shoulders", sans-serif; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.7rem; color: var(--grit);
  margin-top: 0.7rem; text-align: right;
}


/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } }
.founder-photo { margin: 0; position: relative; max-width: 380px; }
.founder-photo img {
  width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.founder-photo::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  background: var(--sunrise); z-index: -1;
}
.founder-handle { margin: 0 0 1rem; }
.founder-handle a {
  font-family: "Big Shoulders", sans-serif; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.85rem; text-decoration: none;
}

/* ---------- moving gallery (marquee) ---------- */
.marquee-wrap { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  will-change: transform;
  animation: slide var(--marquee-duration, 70s) linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0); }
}

.m-item {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(190px, 23vw, 290px);
}
.m-item img, .m-item video {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--dune);
}
.m-item video { cursor: pointer; }

.marquee-note {
  width: var(--shell); margin: 0.9rem auto 0;
  font-family: "Big Shoulders", sans-serif; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.7rem; color: var(--grit);
}

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ---------- blog ---------- */
.shell-narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.post h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); max-width: 20ch; }
.post h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 2.4rem 0 0.8rem; }
.post .lede { font-size: 1.12rem; color: var(--ink); }
.post p { margin-bottom: 1.1rem; }
.post ul { margin: 0 0 1.3rem; padding-left: 1.1rem; color: var(--bark); }
.post li { margin-bottom: 0.45rem; }
.post .eyebrow a { text-decoration: none; }
.post .faq { margin-top: 1rem; }

.post-cta {
  margin-top: 3rem; padding: 1.8rem; border: 2px solid var(--ink);
  border-radius: var(--r); background: var(--chalk);
}
.post-cta-text { font-family: "Big Shoulders", sans-serif; text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.05; color: var(--ink); margin-bottom: 1.2rem; }

.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.post-card {
  display: block; text-decoration: none; padding: 1.6rem;
  border: 1px solid var(--dune); border-radius: var(--r); background: var(--chalk);
  transition: border-color .2s ease, transform .2s ease;
}
.post-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-card h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 1rem 0 0.5rem; color: var(--ink); }
.post-card p { font-size: 0.92rem; margin-bottom: 0.9rem; }
.post-more { font-family: "Big Shoulders", sans-serif; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.8rem; color: var(--berry); }

/* marquee on phones: fewer, larger cards read far better than a row of slivers */
@media (max-width: 700px) {
  .m-item { width: 66vw; max-width: 300px; }
  .marquee-track { gap: 0.7rem; }
  .marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  }
  .marquee-note { width: min(100% - 2.5rem, 100%); }
}
