/* urbanherak.com
   One column. Near-black room, white type, one signature. */

:root {
  --paper: #0e0e0e;
  --ink: #f2f2f2;
  --body: #b4b4b4;
  --grey: #7d7d7d;
  --soft: #4a4a4a;
  --line: #222222;
  --card: #141414;
  --sans: "Geist", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --col: 680px;
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, fieldset, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.col { max-width: calc(var(--col) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */

.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.label b { color: var(--ink); font-weight: 400; }

/* Header: the signature is the logo */

.top { position: sticky; top: 0; z-index: 10; background: rgba(14,14,14,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.mark { display: block; width: 92px; }
.mark img { width: 100%; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--grey); transition: color .2s; }
.top nav a:hover { color: var(--ink); }
.top nav .cta { color: var(--ink); border: 1px solid #333; border-radius: 999px; padding: 7px 14px; }
.top nav .cta:hover { border-color: var(--ink); }

/* Intro */

.intro { padding-top: clamp(64px, 11vw, 120px); }
.avatar { width: 128px; height: 128px; border-radius: 22px; object-fit: cover; background: #fff; }
.intro .label { margin: 26px 0 18px; }
.intro h1 { font-size: clamp(32px, 5.2vw, 46px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; }
.intro h1 span { color: var(--grey); }
.lede { margin-top: 22px; font-size: clamp(19px, 2.4vw, 22px); line-height: 1.45; letter-spacing: -0.015em; color: var(--body); }
.lede a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--soft); }
.lede a:hover { text-decoration-color: var(--ink); }

.links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 36px; }
.links a { text-decoration: none; }
.links b { display: block; font-size: 16px; font-weight: 500; }
.links span { display: block; margin-top: 2px; }
.links a:hover b { text-decoration: underline; text-underline-offset: 0.2em; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 20px 0; }
.stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dt { font-size: 28px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stats dd { margin-top: 8px; }

/* Sections: numbered chapters */

.sec { padding-top: clamp(88px, 13vw, 136px); }
.chap { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chap .n { color: var(--ink); }
.title { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; margin-bottom: 22px; }
.title span { color: var(--grey); }

.text p { font-size: 18px; line-height: 1.6; letter-spacing: -0.01em; color: var(--body); }
.text p + p { margin-top: 1em; }
.text strong { color: var(--ink); font-weight: 500; }

/* Pull quote */

.pull { padding-top: clamp(88px, 13vw, 136px); }
.pull blockquote { font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 500; }
.pull blockquote span { color: var(--soft); }

/* Offer grid */

.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.offer li { background: var(--paper); padding: 26px 24px 28px; display: flex; flex-direction: column; min-height: 220px; transition: background .3s; }
.offer li:hover { background: var(--card); }
.offer .label { margin-bottom: auto; }
.offer h3 { margin-top: 36px; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.offer p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--body); }
.offer .tags { margin-top: 14px; margin-bottom: 0; }

/* How I work */

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.how h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-top: 10px; }
.how p { margin-top: 6px; font-size: 15px; color: var(--body); }

.principles { margin-top: 44px; }
.principles li { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li span { color: var(--grey); }
.principles em { font-style: normal; color: var(--grey); }

/* Moonshot */

.moon__title { font-size: clamp(52px, 10vw, 96px); line-height: .95; letter-spacing: -0.055em; font-weight: 500; }
.moon__text { margin-top: 20px; font-size: clamp(21px, 2.6vw, 25px); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); }
.moon__body { margin-top: 20px; }
.moon__img { display: block; margin-top: 36px; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.moon__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.moon__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }
.moon__meta a { text-decoration: none; color: var(--grey); }
.moon__meta a:hover { color: var(--ink); }

/* Work with me */

.choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px;
  border: 1px solid #333; border-radius: 999px; font-size: 15px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.choice span:hover { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.field { display: block; width: 100%; min-height: 120px; padding: 14px 16px; border: 1px solid #333; border-radius: 14px; font: inherit; font-size: 16px; color: var(--ink); resize: vertical; background: rgba(255,255,255,.02); }
.field::placeholder { color: #626262; }
.field:focus { outline: none; border-color: var(--ink); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn:hover { background: #d6d6d6; }
.send .label a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; }

/* Footer: the full signature */

.foot { padding: clamp(110px, 16vw, 170px) 0 40px; }
.foot__sign { width: min(100%, 420px); }
.foot__sign img { width: 100%; }
.foot__name { margin-top: 18px; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot__bar nav { display: flex; gap: 20px; }
.foot__bar a { text-decoration: none; }
.foot__bar a:hover { color: var(--ink); }

/* Quiet entrance */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s cubic-bezier(.2,.7,.1,1), transform .9s cubic-bezier(.2,.7,.1,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Scroll motion helpers */
.split .w, .split-words .w { display: inline-block; }
.split .w { overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .wi { display: inline-block; will-change: transform; }

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

@media (max-width: 640px) {
  .top nav a:not(.cta) { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stats div:nth-child(4) { border-top: 1px solid var(--line); }
  .offer, .how { grid-template-columns: minmax(0, 1fr); }
  .offer li { min-height: 0; }
  .text p { font-size: 17px; }
  .avatar { width: 112px; height: 112px; border-radius: 20px; }
}
