/* ==========================================================================
   AWOOGA — Lineage page styles
   The TooT TooT family tree, archive plates, and inherited-DNA grid.
   Reuses the shared system (.story, .story-figure, .next-links, .on-navy).
   ========================================================================== */

/* ---------- Hero --------------------------------------------------------- */
.lin-hero {
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(201,162,39,0.20), transparent 55%),
    linear-gradient(165deg, var(--navy-800), var(--navy-900));
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.lin-hero h1 { color: var(--cream); font-size: clamp(2.4rem, 5.5vw, 4rem); }
.lin-hero h1 em { font-style: normal; color: var(--brass-lt); }
.lin-hero .lead { margin-inline: auto; color: rgba(247,241,227,0.86); }
.lin-hero .eyebrow { color: var(--brass-lt); }

/* ---------- Family tree -------------------------------------------------- */
.lin-tree {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  margin-top: 2.4rem;
}
.lin-node {
  flex: 1 1 0;
  max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.3rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lin-node:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.lin-node__gen {
  display: inline-block;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--wood-dk);
  margin-bottom: 0.6rem;
}
.lin-node__emoji { display: block; font-size: 2.4rem; line-height: 1; margin-bottom: 0.4rem; }
.lin-node__name { font-size: 1.5rem; margin: 0 0 0.2rem; }
.lin-node__meta { font-size: 0.82rem; color: var(--wood-dk); font-weight: 600; margin: 0 0 0.7rem; }
.lin-node__note { font-size: 0.9rem; color: var(--text-soft); margin: 0; line-height: 1.5; }

/* The current boat gets a brass spotlight; the future one fades to a sketch. */
.lin-node--current {
  border-color: var(--brass);
  box-shadow: 0 14px 40px rgba(201,162,39,0.22);
  background: linear-gradient(180deg, #fffdf6, #fff);
}
.lin-node--current::before {
  content: "You are here";
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--brass); color: var(--navy-900);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 999px; white-space: nowrap;
}
.lin-node--future {
  border-style: dashed;
  border-color: rgba(12,32,52,0.28);
  background: transparent;
  box-shadow: none;
}
.lin-node--future .lin-node__name,
.lin-node--future .lin-node__emoji { opacity: 0.62; }

/* The rope connecting the generations */
.lin-tree__rope {
  flex: 0 0 44px;
  align-self: center;
  height: 3px;
  background-image: linear-gradient(90deg, var(--wood) 0 60%, transparent 60% 100%);
  background-size: 14px 3px;
  border-radius: 3px;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .lin-tree { flex-direction: column; align-items: center; }
  .lin-node { max-width: 340px; width: 100%; }
  .lin-tree__rope {
    flex-basis: 28px; width: 3px; height: 28px;
    background-image: linear-gradient(180deg, var(--wood) 0 60%, transparent 60% 100%);
    background-size: 3px 14px;
  }
}

/* ---------- Long-lost sister call-out ----------------------------------- */
.lin-sister {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 2.4rem auto 0;
  max-width: 880px;
  background: linear-gradient(180deg, #fffdf6, #fff);
  border: 1px dashed var(--brass);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.8rem;
}
.lin-sister__emoji { font-size: 2.2rem; line-height: 1; flex: 0 0 auto; }
.lin-sister__body { flex: 1 1 auto; }
.lin-sister__body h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }
.lin-sister__body p { margin: 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.55; }
.lin-sister .btn { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 640px) {
  .lin-sister { flex-direction: column; text-align: center; }
  .lin-sister .btn { width: 100%; }
}

/* ---------- Story tweaks ------------------------------------------------- */
.lin-cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.6rem; }

/* A smaller, centered story image (e.g. the Chapter IV hull-skins shot) */
.lin-fig-sm { max-width: 440px; margin-inline: auto; }

/* Two story photos side by side (e.g. the 2022 "TooT TooT today" pair) */
.lin-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.lin-duo .story-figure { margin: 0; }
@media (max-width: 600px) {
  .lin-duo { grid-template-columns: 1fr; }
}

/* ---------- Inherited DNA grid ------------------------------------------- */
.lin-ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.lin-trait {
  position: relative;
  background: linear-gradient(155deg, rgba(247,241,227,0.09), rgba(247,241,227,0.03));
  border: 1px solid rgba(227,195,90,0.22);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.lin-trait:hover {
  transform: translateY(-5px);
  border-color: rgba(227,195,90,0.55);
  box-shadow: 0 22px 50px rgba(12,32,52,0.45);
}
.lin-trait__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  font-size: 1.5rem; line-height: 1; margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(227,195,90,0.22), rgba(201,162,39,0.1));
  border: 1px solid rgba(227,195,90,0.3);
}
@media (prefers-reduced-motion: reduce) { .lin-trait { transition: none; } }
.lin-trait h3 { color: var(--cream); font-size: 1.18rem; margin: 0 0 0.35rem; }
.lin-trait p { color: rgba(247,241,227,0.78); font-size: 0.92rem; margin: 0; line-height: 1.55; }

/* ---------- Next-steps link cards ---------------------------------------- */
/* Self-contained here so the page doesn't depend on about.css being loaded. */
.next-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.next-link { padding: 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.next-link h3 { font-size: 1.15rem; margin: 0; }
.next-link p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }
.next-link .xcard__arrow { color: var(--red); font-weight: 700; font-size: 0.9rem; margin-top: 0.6rem; }
