/* ============================================================
   / (root) — neutral, type-driven, light surface.
   Cyber-Flora continuity = typography only (Fira Code body,
   one Orbitron display element). Single neon signal: a hairline
   gold-dim rule under the hero name + cyan link color.
   ============================================================ */

body.root {
  background: var(--root-bg);
  color: var(--root-ink);
  font-family: var(--font-mono);
  font-size: var(--type-body-s);
  line-height: 1.6;
}

.root .shell {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) var(--gutter) 88px;
}

/* ============================================================
   Hero band — dark Cyber-Flora "front door" (full-bleed, sits
   ABOVE .shell). Radial gold/cyan washes, corner brackets,
   gold-warm gradient name, glowing chamfered sigil. The page
   drops to the paper reading surface immediately below.
   ============================================================ */
.root .hero-band {
  background: var(--deep-void);
  background-image:
    radial-gradient(ellipse 70% 60% at 28% 0%, rgba(255, 215, 0, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
  border-bottom: 1px solid var(--cyber-border-hairline);
  color: var(--text-primary);
}
.root .hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 40px) var(--gutter) clamp(40px, 7vw, 64px);
}
.root .hero-inner::before,
.root .hero-inner::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--cyber-border);
  top: 14px;
}
.root .hero-inner::before { left: var(--gutter);  border-right: 0; border-bottom: 0; }
.root .hero-inner::after  { right: var(--gutter); border-left: 0;  border-bottom: 0; }

/* ---------- Header / nav (inside the dark band) ---------- */
.root .topnav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--type-label-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: clamp(36px, 7vw, 64px);
}
.root .topnav .mark {
  color: var(--text-primary);
  letter-spacing: 0.1em;
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
}
.root .topnav .mark .sigil-glyph { color: var(--neon-gold-warm); }
.root .topnav .meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
}

/* ---------- Hero (inside the dark band) ---------- */
.root .hero-grid {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

.root .hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.4vw, 45px);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.04;
  margin-bottom: 16px;
  /* gold-warm gradient fill on the name */
  background: var(--gold-warm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.root .hero .one-liner {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.4vw, 21px);
  color: var(--text-secondary);
  line-height: 1.4;
}

.root .hero-rule {
  margin: 24px 0 0;
  height: 2px;
  width: 96px;
  border: 0;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--neon-gold) 0%, var(--neon-gold-glow) 60%, transparent 100%);
  box-shadow: 0 0 8px var(--neon-gold-glow);
}

/* chamfered sigil slot with glow — echo of /tsvetok .sigil-slot */
.root .sigil-mark {
  width: 108px; height: 108px;
  background: var(--panel-dark);
  border: 1px solid var(--cyber-border);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    13px 0%, calc(100% - 13px) 0%, 100% 13px,
    100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%,
    0% calc(100% - 13px), 0% 13px
  );
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.12);
}
.root .sigil-mark img { width: 84%; height: 84%; object-fit: contain; }

/* ---------- Section blocks ---------- */
.root section {
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--root-rule);
}
.root section:first-of-type { border-top: 0; padding-top: 0; }

.root .section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}
.root .section-head h2 {
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--root-ink);
}
.root .section-head .ord {
  font-family: var(--font-mono);
  font-size: var(--type-label-xs);
  color: var(--root-accent);  /* gold micro-label */
  letter-spacing: 0.08em;
}

/* ---------- Bio ---------- */
.root .bio p {
  font-family: var(--font-prose);
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.5;
  color: var(--root-ink);
  max-width: 58ch;
}
.root .bio p + p { margin-top: 14px; }

/* ---------- Lists (writing, projects, contact) ---------- */
.root .list { display: flex; flex-direction: column; }
.root .list-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--root-rule);
  font-family: var(--font-mono);
  font-size: var(--type-body-s);
}
.root .list-row:last-child { border-bottom: 0; }
.root .list-row .meta {
  color: var(--root-ink-mute);
  font-size: var(--type-label-xs);
  letter-spacing: 0.04em;
}
.root .list-row .title { color: var(--root-ink); }
.root .list-row .ext  {
  color: var(--root-ink-mute);
  font-size: var(--type-label-xs);
  letter-spacing: 0.04em;
}
.root .list-row[data-coming] .title { color: var(--root-ink-soft); }
.root .list-row[data-coming] .ext {
  color: var(--root-accent);
  letter-spacing: 0.06em;
}

/* link affordance */
.root a.linkable { transition: color var(--dur-quick) var(--ease-out); }
.root a.linkable:hover, .root a.linkable:focus-visible {
  color: var(--root-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ============================================================
   Projects — dark Cyber-Flora mini-cards embedded in the light
   page. Flat panel, gold top-border, hairline borders, lift-only
   hover. The card descriptions use the prose family so multi-line
   copy stays readable on the dark surface.
   ============================================================ */
.root .projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.root .pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel-dark);
  border: 1px solid var(--cyber-border-hairline);
  border-top: 2px solid var(--neon-gold);
  padding: 20px 20px 18px;
  min-height: 150px;
  color: var(--text-secondary);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.root a.pcard:hover,
.root a.pcard:focus-visible {
  border-color: var(--cyber-border);
  border-top-color: var(--neon-gold);
  transform: translateY(-2px);
}
.root .pcard .pmeta {
  font-family: var(--font-mono);
  font-size: var(--type-label-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-gold-warm);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.root .pcard .pmeta .status { color: var(--text-muted); }
.root .pcard .pname {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.root .pcard .pdesc {
  font-family: var(--font-prose);
  font-size: var(--type-body-s);
  line-height: 1.45;
  color: var(--text-secondary);
  flex: 1;
}
.root .pcard .pgo {
  font-family: var(--font-mono);
  font-size: var(--type-label-xs);
  letter-spacing: 0.06em;
  color: var(--neon-cyan);
  margin-top: 14px;
}
/* reserved / future card — quiet, dashed, paper-side */
.root .pcard.future {
  background: transparent;
  border: 1px dashed var(--root-rule);
  border-top: 1px dashed var(--root-rule);
  color: var(--root-ink-mute);
  justify-content: center;
  align-items: center;
  min-height: 150px;
  text-align: center;
}
.root .pcard.future .pname {
  font-family: var(--font-mono);
  font-size: var(--type-body-s);
  letter-spacing: 0.04em;
  color: var(--root-ink-mute);
  margin: 0;
}
.root .pcard.future .pmeta { color: var(--root-ink-mute); }

/* ---------- Contact ---------- */
.root .contact-rows .list-row .title a { color: var(--root-ink); }
.root .contact-rows .list-row .title a:hover,
.root .contact-rows .list-row .title a:focus-visible {
  color: var(--root-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Footer ---------- */
.root footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--root-rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--type-label-xs);
  color: var(--root-ink-mute);
  letter-spacing: 0.05em;
}
.root footer .sigil-glyph { color: var(--root-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .root .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .root .hero-grid { grid-template-columns: 1fr; }
  .root .sigil-mark { order: -1; }
  .root .list-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .root .list-row .ext { padding-top: 2px; }
}

/* tokens.css clamps transition durations under reduced-motion;
   also suppress the card lift so no transform is applied on hover. */
@media (prefers-reduced-motion: reduce) {
  .root a.pcard:hover,
  .root a.pcard:focus-visible { transform: none; }
}

/* ============================================================
   S272 design-review implementation — nav spine, offer section,
   link affordance. Appended block; built only from existing tokens.
   ============================================================ */

/* ---------- Nav spine (links in the dark hero topnav) ---------- */
.root .topnav .mark a { color: inherit; text-decoration: none; }
.root .topnav .navlinks { display: flex; gap: 22px; }
.root .topnav .navlinks a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease-out);
}
.root .topnav .navlinks a:hover,
.root .topnav .navlinks a:focus-visible { color: var(--neon-gold-warm); }

/* ---------- Link affordance for list rows (writing + contact) ----------
   Fixes the dead `.linkable` class: the writing links had no resting
   underline, no hover, no focus color — indistinguishable from text. */
.root .list-row .title a {
  color: var(--root-ink);
  text-decoration: underline;
  text-decoration-color: var(--root-rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-quick) var(--ease-out),
              text-decoration-color var(--dur-quick) var(--ease-out);
}
.root .list-row .title a:hover,
.root .list-row .title a:focus-visible {
  color: var(--root-accent);
  text-decoration-color: currentColor;
}

/* ---------- 02 · The work (offer section) ---------- */
.root .offer .offer-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 32px);
  letter-spacing: 0.01em;
  color: var(--root-ink);
  margin-bottom: 14px;
}
.root .offer .offer-problem {
  font-family: var(--font-prose);
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.5;
  color: var(--root-ink);
  max-width: 58ch;
  margin-bottom: 20px;
}
.root .offer .offer-deliverables {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  max-width: 62ch;
}
.root .offer .offer-deliverables li {
  position: relative;
  font-family: var(--font-prose);
  font-size: var(--type-body-m);
  line-height: 1.45;
  color: var(--root-ink-soft);
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--root-rule);
}
.root .offer .offer-deliverables li:last-child { border-bottom: 0; }
.root .offer .offer-deliverables li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--root-accent);
}
.root .offer .offer-price {
  font-family: var(--font-mono);
  font-size: var(--type-body-s);
  color: var(--root-ink-soft);
  margin-bottom: 24px;
}
.root .offer .offer-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.root .offer .cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--type-label-m);
  letter-spacing: 0.03em;
  color: var(--deep-void);
  background: var(--gold-warm-gradient);
  padding: 12px 22px;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.root .offer .cta:hover,
.root .offer .cta:focus-visible { transform: translateY(-2px); }
.root .offer .cta-link {
  font-family: var(--font-mono);
  font-size: var(--type-label-s);
  color: var(--root-ink);
  text-decoration: underline;
  text-decoration-color: var(--root-rule);
  text-underline-offset: 4px;
  transition: color var(--dur-quick) var(--ease-out);
}
.root .offer .cta-link:hover,
.root .offer .cta-link:focus-visible {
  color: var(--root-accent);
  text-decoration-color: currentColor;
}

@media (max-width: 560px) {
  .root .topnav { flex-wrap: wrap; gap: 12px; }
  .root .offer .offer-actions { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .root .offer .cta:hover,
  .root .offer .cta:focus-visible { transform: none; }
}

/* ---------- S284 — drop decorative hero corner brackets on phones ----------
   The offer page (body.root, no cyber-flora) keeps root.css's hero-inner
   brackets; hide them on small screens so they don't crowd the toggle. */
@media (max-width: 560px) {
  .root .hero-inner::before,
  .root .hero-inner::after { display: none; }
}
