/* ─────────────────────────────────────────────────────────
   pushtomain.xyz — Joel Martinez
   Warm editorial · typography-led · Apfel Grotezk
   ───────────────────────────────────────────────────────── */

/* ── Type ── */
@font-face {
  font-family: "Apfel Grotezk";
  src: url("/fonts/ApfelGrotezk-Regular.woff2") format("woff2"),
       url("/fonts/ApfelGrotezk-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Apfel Grotezk";
  src: url("/fonts/ApfelGrotezk-Mittel.woff2") format("woff2"),
       url("/fonts/ApfelGrotezk-Mittel.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Apfel Grotezk";
  src: url("/fonts/ApfelGrotezk-Fett.woff2") format("woff2"),
       url("/fonts/ApfelGrotezk-Fett.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Apfel Grotezk Brukt";
  src: url("/fonts/ApfelGrotezk-Brukt.woff2") format("woff2"),
       url("/fonts/ApfelGrotezk-Brukt.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #ece5d6;
  --paper-2: #e4dcc9;
  --ink: #191712;
  --ink-2: #4a463c;
  --muted: rgba(25, 23, 18, 0.5);
  --green: #1b4d3e;
  --green-bright: #2f7a5f;
  --rule: rgba(25, 23, 18, 0.16);
  --max: 1180px;
  --pad: clamp(1.4rem, 5vw, 5rem);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Apfel Grotezk", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper grain for warmth/depth */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Shell ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

a { color: inherit; text-decoration: none; }

/* ── Top bar ── */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar .mark { font-family: "Apfel Grotezk Brukt", serif; letter-spacing: 0; font-size: 1rem; }
.topbar .avail { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-2); }
.topbar .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(47,122,95,0.5); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,122,95,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(47,122,95,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,122,95,0); }
}

/* ── Hero ── */
.hero {
  padding: clamp(3.5rem, 11vh, 8.5rem) 0 clamp(2.5rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.kicker {
  font-weight: 500; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-2);
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.display {
  font-weight: 700;
  font-size: clamp(3.2rem, 13vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.display .line2 { color: var(--green); display: block; }
.portrait {
  width: clamp(120px, 20vw, 232px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  border-radius: 3px;
  align-self: end;
}

/* ── Intro ── */
.intro {
  max-width: 44ch;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
  line-height: 1.5;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.intro p + p { margin-top: 1.1rem; }
.intro .lede { font-weight: 500; }

/* ── Section scaffolding ── */
section { border-top: 1px solid var(--rule); padding: clamp(2.2rem, 5vw, 3.4rem) 0; }
.label {
  font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.8rem;
}

/* ── Work rows ── */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0,1fr) auto;
  gap: clamp(0.8rem, 3vw, 2.4rem);
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.3s cubic-bezier(0.2,0.7,0.2,1);
}
a.row:hover { padding-left: 0.8rem; }
.row .num { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.row .body .name {
  font-weight: 700; font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1.1; letter-spacing: -0.02em;
}
a.row:hover .name { color: var(--green); }
.row .body .desc { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.3rem; max-width: 52ch; }
.row .meta {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.8rem; color: var(--muted); font-weight: 500; white-space: nowrap;
}
.tag {
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.24rem 0.55rem; border-radius: 999px; font-weight: 500;
}
.tag.live { background: var(--green); color: var(--paper); }
.tag.soon { border: 1px solid var(--rule); color: var(--ink-2); }
.row .arrow { transition: transform 0.3s cubic-bezier(0.2,0.7,0.2,1); }
a.row:hover .arrow { transform: translate(3px, -3px); }

/* ── Writing list ── */
.writing a {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  padding: 0.9rem 0; border-bottom: 1px solid var(--rule);
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem); font-weight: 500;
  transition: padding-left 0.3s cubic-bezier(0.2,0.7,0.2,1);
}
.writing a:hover { padding-left: 0.8rem; color: var(--green); }
.writing .src { font-size: 0.78rem; color: var(--muted); font-weight: 500; white-space: nowrap; }

/* ── Footer ── */
footer { border-top: 1px solid var(--rule); padding: clamp(2.5rem,6vw,4rem) 0 clamp(2rem,5vw,3rem); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 3rem; }
.foot-links { display: flex; gap: 1.6rem; flex-wrap: wrap; font-weight: 500; }
.foot-links a { position: relative; }
.foot-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px;
  background: var(--green); transition: width 0.25s ease;
}
.foot-links a:hover { color: var(--green); }
.foot-links a:hover::after { width: 100%; }
.colophon { color: var(--muted); font-size: 0.78rem; line-height: 1.7; max-width: 34ch; }
.colophon .wordmark { font-family: "Apfel Grotezk Brukt", serif; color: var(--ink-2); }

/* ── Load reveal ── */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.9s cubic-bezier(0.2,0.7,0.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1{animation-delay:.05s}.d2{animation-delay:.15s}.d3{animation-delay:.25s}
.d4{animation-delay:.38s}.d5{animation-delay:.5s}.d6{animation-delay:.62s}

/* ── Responsive ── */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .portrait { order: -1; width: clamp(110px, 34vw, 150px); }
  .row { grid-template-columns: 1.8rem 1fr; }
  .row .meta { grid-column: 2; margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .dot { animation: none; }
  html { scroll-behavior: auto; }
}
