/* ============================================================
   Techne Vision — Shared Styles
   Used by /vision/, /vision/craft/, /vision/common/
   ============================================================ */

:root {
  --void: #08080a;
  --ink: #0f0f12;
  --charcoal: #1a1a1f;
  --graphite: #2a2a30;
  --slate: #3a3a42;
  --cream: #ebe7df;
  --bone: #d8d3c8;
  --stone: #9a958a;
  --ember: #c2512a;
  --warm: #c4956a;
  --warm-dim: #8a6a4a;
  --sage: #4a5f4a;
  --sage-light: #6b836b;
  --teal: #7ccfb8;
  --teal-dim: #5a9a8a;
  --font-display: 'Cormorant', serif;
  --font-body: 'Source Serif 4', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-code: 'JetBrains Mono', monospace;

  /* Craft colors */
  --c-code:  #8bbfff;
  --c-word:  #a6ed2a;
  --c-form:  #d4a0e8;
  --c-sound: #fbbf24;
  --c-earth: #4a8c6f;
  --c-body:  #e8927c;
  --c-fire:  #ef4444;
  --c-water: #7ccfb8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--bone);
  line-height: 1.8;
  font-size: 17px;
  font-weight: 400;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  background-color: var(--void);
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
}

.hero-content {
  max-width: 720px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.4s forwards;
}

.hero-etymology {
  margin-bottom: 2.5rem;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.6s forwards;
}

.hero-etymology-origin {
  font-family: var(--font-code);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--warm);
  margin-bottom: 0.5rem;
}

.hero-etymology-def {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.7s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ LAYOUT ============ */
.frame {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
  text-align: center;
}

section + section {
  border-top: 1px solid var(--graphite);
}

.section-mark {
  font-family: var(--font-code);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-dim);
  margin-bottom: 2rem;
  text-align: center;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--cream);
  margin: 2.5rem 0 1rem;
  text-align: center;
}

p {
  color: var(--stone);
  margin: 0 auto 1.25rem;
  max-width: 62ch;
  line-height: 1.8;
  text-align: center;
}

.lead {
  font-size: 1.1rem;
  color: var(--bone);
  line-height: 1.85;
}

strong { color: var(--cream); font-weight: 500; }
em { font-style: italic; color: var(--warm); }

/* ============ LEFT-ALIGNED BLOCKS ============
   Cards and structured content stay left-aligned
   for readability. Only prose and headings center. */

.callout {
  margin: 2.5rem auto;
  padding: 2rem 2.5rem;
  max-width: 62ch;
  border-left: 2px solid var(--warm-dim);
  background: linear-gradient(135deg, rgba(196, 149, 106, 0.04) 0%, transparent 100%);
  text-align: left;
}

.callout p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1.7;
  margin: 0;
  max-width: none;
  text-align: left;
}

/* ============ GRIDS ============ */
.layer-grid,
.archetype-grid,
.node-grid,
.synthesis-grid,
.network-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2.5rem 0;
  text-align: left;
}

.layer-grid      { grid-template-columns: 1fr 1fr; }
.archetype-grid  { grid-template-columns: 1fr 1fr; }
.node-grid       { grid-template-columns: 1fr 1fr; }
.synthesis-grid  { grid-template-columns: 1fr 1fr; }
.network-grid    { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 640px) {
  .layer-grid,
  .archetype-grid,
  .node-grid,
  .synthesis-grid,
  .network-grid { grid-template-columns: 1fr; }
}

/* Generic card base */
.layer-card,
.archetype-card,
.node-card,
.synthesis-card,
.network-card {
  padding: 1.75rem;
  border: 1px solid var(--graphite);
  background: var(--ink);
  transition: border-color 0.2s;
  text-align: left;
}

.layer-card:hover,
.archetype-card:hover,
.node-card:hover,
.synthesis-card:hover,
.network-card:hover { border-color: var(--slate); }

.layer-card p,
.archetype-card p,
.node-card p,
.synthesis-card p,
.network-card p {
  text-align: left;
  margin: 0 0 0.5rem;
  max-width: none;
}

.layer-card p:last-child,
.archetype-card p:last-child,
.node-card p:last-child,
.synthesis-card p:last-child,
.network-card p:last-child { margin-bottom: 0; }

/* Card headers */
.layer-card h4,
.archetype-card h4,
.node-card h4,
.synthesis-card h4,
.network-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  text-align: left;
}

/* Card labels */
.layer-num,
.node-type,
.archetype-formula {
  font-family: var(--font-code);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-dim);
  margin-bottom: 0.75rem;
}

/* Card text sizes */
.layer-card p,
.node-card p,
.synthesis-card p { font-size: 0.88rem; line-height: 1.7; color: var(--stone); }
.archetype-card p { font-size: 0.85rem; line-height: 1.7; color: var(--stone); }
.network-card p { font-size: 0.82rem; line-height: 1.65; color: var(--stone); }
.network-card { text-align: center; }
.network-card p { text-align: center; }
.network-card h4 { text-align: center; }

/* ============ CRAFT GRID ============ */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}

@media (max-width: 700px) {
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
}

.craft-card {
  padding: 1.5rem;
  border: 1px solid var(--graphite);
  background: var(--ink);
  text-align: center;
  transition: border-color 0.2s;
}

.craft-card:hover { border-color: var(--slate); }

.craft-symbol {
  font-family: var(--font-code);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.craft-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
  text-align: center;
}

.craft-domain {
  font-family: var(--font-code);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
}

.craft-card p {
  font-size: 0.82rem;
  color: var(--stone);
  margin: 0;
  line-height: 1.65;
  max-width: none;
  text-align: center;
}

/* ============ NODE CRAFTS LABEL ============ */
.node-crafts {
  font-family: var(--font-code);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
}

/* ============ GUILD LIST ============ */
.guild-list {
  margin: 2.5rem 0;
  list-style: none;
  text-align: left;
}

.guild-item {
  display: grid;
  grid-template-columns: 50px 140px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--graphite);
  align-items: start;
}

.guild-item:last-child { border-bottom: none; }

@media (max-width: 500px) {
  .guild-item { grid-template-columns: 40px 1fr; }
  .guild-item .guild-name { grid-column: 2; }
  .guild-item .guild-desc { grid-column: 1 / -1; }
}

.guild-symbol {
  font-family: var(--font-code);
  font-size: 1.3rem;
  text-align: center;
  line-height: 1;
  padding-top: 0.15rem;
}

.guild-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.4;
}

.guild-desc {
  font-size: 0.85rem;
  color: var(--stone);
  line-height: 1.7;
}

/* ============ DIMENSION CARDS (common page) ============ */
.dimension-card {
  margin: 2.5rem 0;
  padding: 2.5rem;
  border: 1px solid var(--graphite);
  background: var(--ink);
  position: relative;
  transition: border-color 0.2s;
  text-align: left;
}

.dimension-card:hover { border-color: var(--slate); }

.dimension-accent {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
}

.dimension-label {
  font-family: var(--font-code);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.dimension-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 1rem;
  text-align: left;
}

.dimension-card .lead {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: left;
  max-width: none;
}

.dimension-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  text-align: left;
  max-width: none;
}

.dimension-card p:last-child { margin-bottom: 0; }

.dimension-example {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--graphite);
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.7;
}

.dimension-example strong { font-size: 0.88rem; }

/* ============ FRAMEWORK MAP (common page) ============ */
.framework-row {
  display: grid;
  grid-template-columns: 60px 120px 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--graphite);
  align-items: start;
  text-align: left;
}

.framework-row:last-child { border-bottom: none; }

@media (max-width: 500px) {
  .framework-row { grid-template-columns: 40px 1fr; }
  .framework-row .fw-engelbart { display: none; }
}

.fw-letter {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--cream);
  text-align: center;
  line-height: 1;
}

.fw-engelbart {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--stone);
  line-height: 1.6;
  padding-top: 0.35rem;
}

.fw-commons {
  font-size: 0.9rem;
  color: var(--bone);
  line-height: 1.7;
}

.fw-commons strong { font-size: 0.9rem; }

/* ============ SUBSTRATE BLOCK ============ */
.substrate-block {
  margin: 2.5rem auto;
  padding: 2.5rem;
  max-width: 62ch;
  border: 1px solid var(--sage);
  background: linear-gradient(135deg, rgba(74, 95, 74, 0.06) 0%, transparent 100%);
  position: relative;
  text-align: left;
}

.substrate-label {
  font-family: var(--font-code);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1rem;
}

.substrate-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  text-align: left;
}

.substrate-block p {
  font-size: 0.92rem;
  color: var(--bone);
  margin: 0;
  line-height: 1.75;
  max-width: none;
  text-align: left;
}

/* ============ PHASE TRACK ============ */
.phase-track {
  margin: 2.5rem 0;
  position: relative;
  padding-left: 2rem;
  text-align: left;
}

.phase-track::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--warm) 0%, var(--teal) 50%, var(--graphite) 100%);
}

.phase {
  padding: 1.5rem 0 2rem 2rem;
  position: relative;
}

.phase::before {
  content: '';
  position: absolute;
  left: -2.35rem; top: 1.85rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--warm);
  background: var(--void);
}

.phase:nth-child(2)::before { border-color: var(--teal); }
.phase:nth-child(3)::before { border-color: var(--stone); }

.phase-label {
  font-family: var(--font-code);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.phase:nth-child(1) .phase-label { color: var(--warm); }
.phase:nth-child(2) .phase-label { color: var(--teal); }
.phase:nth-child(3) .phase-label { color: var(--stone); }

.phase h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.75rem;
  text-align: left;
}

.phase p {
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.75;
  text-align: left;
  max-width: none;
}

.phase-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bone);
  margin-top: 3rem;
  max-width: 55ch;
  line-height: 1.7;
  text-align: left;
}

/* ============ PRINCIPLE LIST ============ */
.principle-list {
  margin: 2rem 0;
  list-style: none;
  text-align: left;
}

.principle-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--graphite);
}

.principle-list li:last-child { border-bottom: none; }

.principle-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.principle-desc {
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.75;
  max-width: 55ch;
}

/* ============ CLOSING ============ */
.closing {
  padding: 5rem 0;
  border-top: 1px solid var(--graphite);
  text-align: center;
}

.closing h2 {
  font-weight: 300;
  margin-bottom: 1.5rem;
  text-align: center;
}

.closing p {
  max-width: 540px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.closing-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--warm);
  margin-top: 2.5rem;
}

/* ============ FOOTER ============ */
footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--graphite);
}

footer p {
  font-family: var(--font-code);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--graphite);
  max-width: none;
  margin: 0;
}

footer a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--warm); }

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .callout { padding: 1.5rem; }
  .dimension-card { padding: 1.5rem; }
  .substrate-block { padding: 1.5rem; }
}
