/* ============================================================
   ArchnaCode · archnacode.com landing
   Single static page. No build step, no JavaScript,
   no third-party requests. Self-hosted Geist + Geist Mono.
   Deep near-black canvas · indigo-violet lead.
   ============================================================ */

/* ---- Self-hosted fonts (latin, variable) -------------------
   Google's variable woff2s, one face per family covers every
   weight. No third-party font request. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  /* surfaces — deep near-black, faint cool violet */
  --bg:        oklch(0.170 0.016 280);
  --surface:   oklch(0.218 0.020 280);
  --surface-2: oklch(0.262 0.022 280);

  /* text — cool near-white ramp */
  --ink:     oklch(0.972 0.005 285);
  --ink-2:   oklch(0.892 0.008 285);
  --muted:   oklch(0.745 0.012 285);
  --muted-2: oklch(0.628 0.014 285);

  /* hairlines */
  --line:   oklch(1 0 0 / 0.09);
  --line-2: oklch(1 0 0 / 0.15);

  /* brand: indigo-violet lead */
  --accent:        oklch(0.715 0.165 285);
  --accent-bright: oklch(0.800 0.130 288);
  --accent-soft:   oklch(0.715 0.165 285 / 0.14);
  --accent-line:   oklch(0.715 0.165 285 / 0.34);

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace;

  --r-lg: 18px;
  --r-md: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 580px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Ambient brand glow ----------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(64% 50% at 50% -14%, oklch(0.715 0.165 285 / 0.20), transparent 70%),
    radial-gradient(40% 38% at 86% 116%, oklch(0.715 0.165 285 / 0.10), transparent 72%),
    radial-gradient(34% 28% at 14% 6%,  oklch(0.800 0.130 288 / 0.07), transparent 70%),
    var(--bg);
}

/* ---- Layout ----------------------------------------------- */
.stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vh, 96px) clamp(22px, 5vw, 40px) clamp(28px, 5vh, 56px);
}

.hero {
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero > * { max-width: 100%; }

/* ---- Wordmark --------------------------------------------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  box-shadow: 0 8px 26px oklch(0.715 0.165 285 / 0.32);
}
.wordmark-text {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---- Studio chip ------------------------------------------ */
.chip {
  margin: clamp(30px, 5.5vh, 48px) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
}

/* ---- Headline --------------------------------------------- */
.headline {
  margin: 22px 0 0;
  max-width: min(17ch, 100%);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.95rem, 8vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.headline .accent { color: var(--accent); }

/* ---- Lede ------------------------------------------------- */
.lede {
  margin: 20px 0 0;
  max-width: min(50ch, 100%);
  color: var(--ink-2);
  font-size: clamp(1rem, 2.2vw, 1.075rem);
  line-height: 1.66;
  font-weight: 400;
  text-wrap: pretty;
}

/* ---- Ledger (now building / contact) ---------------------- */
.ledger {
  margin: clamp(34px, 6vh, 52px) 0 0;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: oklch(0.218 0.020 280 / 0.45);
  overflow: hidden;
  text-align: left;
}
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  text-decoration: none;
  color: var(--ink);
}
.row + .row { border-top: 1px solid var(--line); }

.row-label {
  flex: none;
  width: 92px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.row-value {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.row-name {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  word-break: break-word;
}
.row-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.row-arrow {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.row-link { transition: background-color .2s var(--ease); }
.row-link:hover,
.row-link:focus-visible {
  background: var(--surface);
}
.row-link:hover .row-arrow,
.row-link:focus-visible .row-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.row-link:hover .row-name,
.row-link:focus-visible .row-name {
  color: var(--accent-bright);
}

/* ---- Footer ----------------------------------------------- */
.foot {
  position: relative;
  z-index: 1;
  padding: 0 clamp(22px, 5vw, 40px) clamp(26px, 5vh, 40px);
  text-align: center;
}
.foot-legal {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.foot-note {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted-2);
}

/* ---- Focus ------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}
.row-link:focus-visible { outline-offset: -2px; }

/* ---- Small screens ---------------------------------------- */
@media (max-width: 420px) {
  .row { gap: 12px; padding: 16px 17px; }
  .row-label { width: 78px; }
}

/* ---- Motion: a calm, staggered entrance ------------------- */
/* Content is fully visible by default; motion is added only
   when the visitor welcomes it. */
@media (prefers-reduced-motion: no-preference) {
  .hero > *,
  .foot {
    animation: rise .7s var(--ease) both;
  }
  .wordmark { animation-delay: .04s; }
  .chip     { animation-delay: .12s; }
  .headline { animation-delay: .20s; }
  .lede     { animation-delay: .30s; }
  .ledger   { animation-delay: .40s; }
  .foot     { animation-delay: .50s; }

  .chip-dot { animation: pulse 2.8s var(--ease) infinite; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(13px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-line); }
  50%      { box-shadow: 0 0 0 4px oklch(0.715 0.165 285 / 0); }
}
