/* 4nh8r — self-contained static styles (inspired by prototype tokens) */

:root {
  --color-bg: #0c0b0a;
  --color-bg-elevated: #161412;
  --color-bg-subtle: #1e1b18;
  --color-fg: #ece7df;
  --color-fg-muted: #9a948a;
  --color-fg-subtle: #6f6a63;
  --color-accent: #cfc6b8;
  --color-accent-fg: #0c0b0a;
  --color-border: rgba(236, 231, 223, 0.12);
  --color-border-strong: rgba(236, 231, 223, 0.22);

  --font-sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-display: "Instrument Serif", "Times New Roman", serif;

  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --text-hero: clamp(4.25rem, 8vw + 2.2rem, 11.5rem);

  --radius-xl: 28px;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  background: var(--color-bg);
  color: var(--color-fg);
}

body {
  font-family: var(--font-sans);
  letter-spacing: -0.011em;
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: inherit;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.page {
  position: relative;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-fg);
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 40rem) {
  .shell {
    padding-inline: 2rem;
  }
}

/* Grain */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--color-border);
  background: rgba(12, 11, 10, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  height: 3.5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-fg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-fg-muted);
}

.nav a {
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--color-fg);
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100dvh - 3.5rem);
  padding-block: 2.5rem;
}

@media (min-width: 40rem) {
  .hero {
    padding-block: 3.5rem;
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

.hero-mid {
  padding-block: 2.5rem;
}

@media (min-width: 40rem) {
  .hero-mid {
    padding-block: 1rem;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-style: italic;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--color-fg);
}

.hero-lead {
  margin-top: 2rem;
  max-width: 28rem;
  font-size: var(--text-base);
  line-height: 1.625;
  color: var(--color-fg-muted);
}

@media (min-width: 40rem) {
  .hero-lead {
    font-size: var(--text-lg);
  }
}

.hero-cta {
  margin-top: 2.5rem;
}

.btn-yes {
  display: inline-flex;
  height: 2.75rem;
  min-width: 7rem;
  align-items: center;
  justify-content: center;
  padding-inline: 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-fg);
  color: var(--color-accent-fg);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.15s ease-out, background-color 0.15s ease-out;
}

.btn-yes:hover {
  background: var(--color-accent);
}

.btn-yes:active {
  transform: scale(0.96);
}

.btn-yes.is-same {
  background: var(--color-bg-elevated);
  color: var(--color-accent);
  border-color: var(--color-border-strong);
  cursor: default;
}

.btn-yes.is-same:hover {
  background: var(--color-bg-elevated);
}

.btn-yes.is-same:active {
  transform: none;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-aside {
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-fg-subtle);
}

.scroll-link {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  transition: color 0.15s ease;
}

.scroll-link:hover {
  color: var(--color-fg);
}

@media (min-width: 40rem) {
  .scroll-link {
    display: inline;
  }
}

/* Hairline */
.hairline {
  height: 1px;
  background: var(--color-border);
  padding-inline: 0;
}

/* Sections */
.section {
  padding-block: 5rem;
}

@media (min-width: 40rem) {
  .section {
    padding-block: 7rem;
  }
}

.section-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.notes-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 40rem) {
  .notes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.note-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  padding: 1.5rem;
}

@media (min-width: 40rem) {
  .note-card {
    padding: 1.75rem;
  }
}

.note-mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--color-fg-subtle);
}

.note-title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  letter-spacing: -0.02em;
}

.note-body {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-fg-muted);
}

/* Here */
.here-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 64rem) {
  .here-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
}

.here-title {
  max-width: 36rem;
}

.here-body {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: var(--text-base);
  line-height: 1.625;
  color: var(--color-fg-muted);
}

.quote-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  padding: 1.75rem;
}

.quote-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.375;
  letter-spacing: -0.02em;
}

.quote-sign {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-fg-subtle);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 2rem;
  font-size: 0.875rem;
  color: var(--color-fg-subtle);
}

@media (min-width: 40rem) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Reveal */
.reveal {
  animation: rise 0.72s var(--ease-out-soft) both;
}

.reveal-d1 {
  animation-delay: 80ms;
}

.reveal-d2 {
  animation-delay: 0.16s;
}

.reveal-d3 {
  animation-delay: 0.24s;
}

.reveal-d4 {
  animation-delay: 0.34s;
}

@keyframes rise {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
