@import url("https://heyitsmejosh.com/tokens.css");

:root {
  --accent: #b8730a;
  --accent-ink: #ffb020;
  --accent-soft: #fdf5e7;
  --bg: #ffffff;
  --bg2: #f7f7f8;
  --text: #1c1d22;
  --text2: #5c5f6a;
  --border: #e6e7ea;
  --nib: #161412;
  --font-body: -apple-system, system-ui, "Inter", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #ffb020;
    --accent-soft: #1d1810;
    --bg: #121316;
    --bg2: #1a1b1f;
    --text: #ececf0;
    --text2: rgba(236,236,240,0.62);
    --border: rgba(236,236,240,0.12);
    --nib: #ffb020;
  }
}
:root[data-theme="dark"] {
  --accent: #ffb020;
  --accent-soft: #1d1810;
  --bg: #121316;
  --bg2: #1a1b1f;
  --text: #ececf0;
  --text2: rgba(236,236,240,0.62);
  --border: rgba(236,236,240,0.12);
  --nib: #ffb020;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-ink); color: #161412; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--accent-soft); padding: 5.5rem 0 4.5rem; text-align: center;
}
.hero .container { position: relative; z-index: 2; }

/* a slow-drifting wall of headline cards, built in the inline script below */
.hero-wall {
  position: absolute; inset: -8%; z-index: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px;
  opacity: 0.6; pointer-events: none; user-select: none;
}
.wall-col { display: flex; min-width: 0; flex-direction: column; gap: 10px; }
.wall-col div {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.6rem 0.7rem; font-size: 0.72rem; line-height: 1.35;
  color: var(--text2); text-align: left;
}
.wall-col b { display: block; color: var(--text); font-weight: 600; font-size: 0.78rem; }
.wall-col.up   { animation: wall-up   var(--dur) linear infinite; }
.wall-col.down { animation: wall-down var(--dur) linear infinite; }
@keyframes wall-up   { from { transform: translateY(0); }    to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wall-col { animation: none; } }

/* scrim: keeps the headline readable over the cards, in either theme */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 50% 45%, var(--accent-soft) 20%, transparent 80%),
    linear-gradient(var(--accent-soft), transparent 30%, transparent 62%, var(--accent-soft) 96%),
    color-mix(in srgb, var(--accent-soft) 55%, transparent);
}
.hero-icon { width: 88px; height: 88px; margin: 0 auto 1.75rem; display: block; }
.hero h1 {
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 0.85rem;
}
.hero p {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text2);
  max-width: 34rem;
  margin: 0 auto 2.25rem;
}

.buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--nib); color: var(--bg); }
.btn-primary:hover { opacity: 0.88; }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--bg); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

section { padding: 4rem 0; }
.features h2, .closing h2, .shot h2 {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.25rem;
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}
.feature h3 { font-size: 1rem; font-weight: 650; margin-bottom: 0.4rem; }
.feature p { font-size: 0.93rem; color: var(--text2); }

.shot { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shot figure { text-align: center; }
.shot img {
  width: 100%;
  max-width: 300px;
  border-radius: 28px;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
}
.shot figcaption {
  color: var(--text2);
  font-size: 0.92rem;
  margin-top: 1.25rem;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

.closing { text-align: center; }
.closing p { color: var(--text2); max-width: 34rem; margin: 0 auto 1.75rem; }

footer { padding: 2.5rem 0 3.5rem; text-align: center; font-size: 0.9rem; color: var(--text2); border-top: 1px solid var(--border); }
footer p + p { margin-top: 0.35rem; }

/* Prose pages (privacy, support) */
.page-head { background: var(--accent-soft); padding: 3.5rem 0 2.75rem; text-align: center; }
.page-head h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 0.5rem;
}
.page-head .meta { color: var(--text2); font-size: 0.92rem; }
.back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.92rem; }

.prose { padding: 3.5rem 0 1rem; }
.prose h2 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
}
.prose h2:first-of-type { margin-top: 0; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose .lede { font-size: 1.08rem; color: var(--text2); margin-bottom: 2rem; }
.prose .note {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  color: var(--text2);
}
.prose .note p:last-child { margin-bottom: 0; }
