/* Iri — walnut, copper and amber. Loaded after the structural stylesheet. */
:root {
  color-scheme: dark;
  --paper: #241b17;
  --paper-deep: #30231d;
  --ink: #f5e8d3;
  --muted: #c2ad96;
  --line: #66503d;
  --orange: #e39a57;
  --orange-dark: #efb575;
  --green: #323f31;
  --blue: #263e44;
  --pink: #483039;
  --purple: #443244;
  --yellow: #4c3e26;
  --iri-base: #211915;
  --iri-panel: #30231d;
  --iri-panel-raised: #382a22;
  --iri-gold-line: rgba(227, 154, 87, .36);
}

html,
body { background: var(--paper); color: var(--ink); }
body::before { opacity: .045; mix-blend-mode: soft-light; }
::selection { background: #e39a57; color: #241b17; }

.site-header {
  background: rgba(33, 25, 21, .96);
  border-color: #55402f;
}
.brand-mark,
.brand-type { color: var(--ink); }
.brand-caption,
.main-nav a { color: var(--muted); }
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: #efb575; }
.menu-toggle { color: var(--ink); }
.main-nav.is-open {
  background: #2b201a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

.eyebrow,
.accent,
.serif,
em,
.text-link,
.hero h1 em,
.hero-footer .foot-label { color: #efb575; }
.hero-lead,
.bio-body,
.dna-intro > p { color: #cdb9a2; }
.hero-footer { border-color: #66503d; }
.hero-note .icon,
.hero-footer .foot-word::before { color: #e39a57; }

.btn {
  background: transparent;
  border-color: #a38361;
  color: #f5e8d3;
}
.btn:hover {
  background: #463225;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, .24);
}
.btn-primary {
  background: #e39a57;
  border-color: #e39a57;
  color: #241b17;
}
.btn-primary:hover {
  background: #efb575;
  border-color: #efb575;
  color: #211915;
}
.text-link:hover { color: #ffce93; }
.skip { background: #e39a57; color: #211915; }

.hero {
  background: radial-gradient(ellipse at 78% 39%, rgba(150, 82, 35, .12), transparent 57%), #241b17;
}
.hero-art { isolation: isolate; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 9% 6%;
  border: 1px solid rgba(227, 154, 87, .3);
  border-radius: 48% 52% 46% 54%;
  box-shadow: 0 0 58px rgba(178, 101, 47, .09);
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero-image,
.about-art,
.portrait-mini img {
  mix-blend-mode: normal;
  border-radius: 24px;
}
.hero-image { position: relative; z-index: 1; }
.hero-art .orbit-label {
  z-index: 2;
  background: rgba(36, 27, 23, .95);
  color: #f5e8d3;
  border-color: #cf8b52;
}
.hero-art .little-tag {
  z-index: 2;
  background: #30231d;
  color: #efb575;
  border-color: #a5734b;
}
.hero-art .star { z-index: 2; color: #e39a57; }

.path-card,
.library-card {
  background: #30231d;
  border-color: #66503d;
  color: #f5e8d3;
}
.path-card:hover { background: #382a22; border-color: #d4945d; }
.path-card > .icon,
.library-card > .icon { color: #e6ad77; }
.path-card p,
.library-card p,
.value-card p { color: #c2ad96; }
.ecosystem-section {
  background: #211915;
  border-top-color: #55402f;
  border-bottom-color: #55402f;
}
.view-switch { background: #30231d; border-color: #66503d; }
.view-switch button { color: #d5c1aa; }
.view-switch button.active,
.tab.active {
  background: #e39a57;
  border-color: #e39a57;
  color: #241b17;
}
.tab { color: #d5c1aa; border-color: #775b43; }
.tab:not(.active):hover { background: #382a22; }

/* Direction colors are supplied by app.js and remain distinct. */
.map-node,
.related-card,
.direction-badge {
  background: var(--node-bg, #382a22);
  border-color: var(--node-border, #866447);
  color: #f5e8d3;
}
.map-node:hover,
.related-card:hover {
  box-shadow: 0 0 0 1px rgba(239, 181, 117, .28), 0 10px 25px rgba(0, 0, 0, .2);
}
.map-node .icon,
.related-card .icon,
.direction-badge .icon { color: #efbf8b; }
.map-node .node-tag,
.related-card p { color: #dfcab3; }
.map-center {
  background: #30231d;
  border-color: #c18b53;
  color: #f5e8d3;
  box-shadow: 0 0 0 8px #211915, 0 0 0 9px rgba(227, 154, 87, .45), 0 0 55px rgba(196, 123, 58, .1);
}
.map-center .brand-mark { color: #efb575; }
.map-center small { color: #d1baa0; }
.map-caption { color: #d4af7b; }
.map-lines {
  stroke: rgba(219, 177, 123, .62);
  filter: drop-shadow(0 0 3px rgba(227, 154, 87, .12));
}
.map-lines path[stroke] { stroke: rgba(204, 168, 123, .48); }
.map-lines .orange-line { stroke: #d99b61; }

.dna-wrap { background: #2b2920; border-color: #675f43; }
.dna-card {
  background: #323a2b;
  border-color: #72825b;
  color: #f5e8d3;
}
.dna-card:nth-child(2) { background: #483039; border-color: #986c7e; }
.dna-card:nth-child(3) { background: #3a3046; border-color: #8c75a3; }
.dna-card .icon,
.dna-card .dna-title { color: #efbf8b; }
.dna-card p,
.dna-card ul { color: #dfcab3; }
.quote-strip {
  background: #2b201a;
  border-top: 1px solid #55402f;
  border-bottom: 1px solid #55402f;
}
.quote-strip blockquote { color: #f5e8d3; }
.founder-preview { border-color: #66503d; }
.founder-preview .portrait-mini { background: #211915; }
.founder-copy { background: #2b201a; }
.founder-copy > p { color: #cdb9a2; }
.format-tag {
  background: #30231d;
  border-color: #866447;
  color: #e4cfb7;
}
.direction-context { background: #382a22; color: #d5c1aa; }
.direction-context h3 { color: #f5e8d3; }
.notice {
  background: #382a22;
  color: #d6c2ac;
  border-left-color: #e39a57;
}
.product-row .step-num,
.step-no,
.horizon strong { color: #efb575; }
.map-source { background: #30231d; border-color: #866447; }
.iri-section { background: #382a22; }
.iri-orbit {
  background: #30231d;
  border-color: #c18b53;
  box-shadow: 0 0 0 8px rgba(227, 154, 87, .04), 0 0 30px rgba(196, 123, 58, .1);
}
.iri-orbit strong,
.iri-orbit .icon { color: #efb575; }
.iri-orbit span { color: #d5c1aa; }

.cta-section { background: #211915; }
.skyline {
  filter: brightness(0) saturate(100%) invert(73%) sepia(29%) saturate(547%) hue-rotate(343deg) brightness(95%) contrast(87%);
  opacity: .86;
}
.site-footer { background: #211915; border-color: #55402f; }
.footer-nav { color: #dcc7af; }
.footer-note { color: #efb575; }

.modal {
  background: #30231d;
  color: #f5e8d3;
  border-color: #9b7752;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
}
.modal::backdrop { background: rgba(13, 9, 7, .78); }
.close-dialog { color: #f5e8d3; }
select,
textarea,
input {
  background: #211915;
  color: #f5e8d3;
  border-color: #9b7752;
  caret-color: #efb575;
}
select option { background: #211915; color: #f5e8d3; }
textarea::placeholder,
input::placeholder { color: #bba28b; opacity: 1; }
.form-field > span { color: #ead7bf; }
.brief-result pre { background: #211915; color: #ead7bf; }
.status { color: #b7d99b; }

@media (max-width: 650px) {
  .main-nav { background: #2b201a; box-shadow: 0 12px 25px rgba(0, 0, 0, .3); }
  .hero-image,
  .about-art,
  .portrait-mini img { border-radius: 18px; }
}
