/* Sunny Iri — warm evening light, soft surfaces, and the full terrace scene.
   This overlay follows styles.css and theme-iri.css. */
:root {
  --paper: #33271f;
  --paper-deep: #403127;
  --ink: #fff1da;
  --muted: #d8c0a3;
  --line: #795e47;
  --orange: #e6ac61;
  --orange-dark: #efbd7e;
  --iri-base: #2c211b;
  --iri-panel: #36291f;
  --iri-panel-raised: #403127;
  --iri-gold-line: rgba(230, 172, 97, .34);
  --sunny-coral: #f39b74;
}

html,
body { background: #33271f; color: #fff1da; }
body::before { opacity: .025; }
::selection { background: #e6ac61; color: #33271f; }
.site-header { background: rgba(44, 33, 27, .97); border-color: #70513a; }
.main-nav a { color: #d8c0a3; }
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: #efbd7e; }
.main-nav.is-open { background: #36291f; }

.eyebrow,
.accent,
.serif,
em,
.text-link,
.hero h1 em,
.hero-footer .foot-label { color: #efbd7e; }
.hero-lead,
.bio-body,
.dna-intro > p { color: #dec7ac; }
.hero-footer { border-color: #795e47; }
.hero-note .icon,
.hero-footer .foot-word::before { color: #f3b27b; }
.text-link:hover { color: #ffd69b; }

.btn { border-color: #ba8a5a; border-radius: 13px; color: #fff1da; }
.btn:hover { background: #4a3729; box-shadow: 0 5px 14px rgba(20, 12, 7, .2); }
.btn-primary,
.view-switch button.active,
.tab.active {
  background: #e6ac61;
  border-color: #e6ac61;
  color: #33271f;
}
.btn-primary:hover { background: #f1bd79; border-color: #f1bd79; color: #2c211b; }
.skip { background: #e6ac61; color: #33271f; }

.hero {
  background: radial-gradient(ellipse at 83% 24%, rgba(221, 143, 71, .15), transparent 58%), #33271f;
}
.hero-grid { min-height: 620px; gap: 28px; }
.hero-art {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 4 / 5;
  justify-self: center;
  margin: 0 auto 26px;
}
.hero-art::before,
.hero-art .star,
.hero-art .little-tag { display: none; }
.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 26px;
  mix-blend-mode: normal;
  box-shadow: 0 14px 38px rgba(25, 15, 9, .22);
}
.hero-art .orbit-label {
  left: 18px;
  right: 18px;
  bottom: 16px;
  width: fit-content;
  max-width: calc(100% - 36px);
  background: rgba(51, 39, 31, .93);
  color: #fff1da;
  border-color: #e6ac61;
  border-radius: 10px;
  padding: 8px 13px;
  transform: none;
}

.path-card,
.library-card {
  background: #403127;
  color: #fff1da;
  border-color: #795e47;
  border-radius: 19px;
}
.path-card:hover { background: #49372b; border-color: #d9a56d; }
.path-card > .icon,
.library-card > .icon { color: #f3b27b; }
.path-card p,
.library-card p,
.value-card p { color: #d8c0a3; }
.ecosystem-section { background: #2c211b; border-color: #70513a; }
.view-switch { background: #403127; border-color: #795e47; border-radius: 10px; }
.view-switch button { color: #ead2b5; border-radius: 7px; }
.tab { color: #ead2b5; border-color: #96734f; }
.tab:not(.active):hover { background: #49372b; }

.map-node,
.related-card,
.direction-badge { color: #fff1da; }
.map-node .icon,
.related-card .icon,
.direction-badge .icon { color: #f1c18d; }
.map-node .node-tag,
.related-card p { color: #ead3b8; }
.related-card { border-radius: 19px; }
.map-node:hover,
.related-card:hover { box-shadow: 0 8px 24px rgba(25, 15, 9, .18); }
.map-center {
  background: #443225;
  border-color: #c1935f;
  color: #fff1da;
  box-shadow: 0 0 0 7px #2c211b, 0 0 0 8px #856548;
}
.map-center .brand-mark { color: #efbd7e; }
.map-center small { color: #dec7ac; }
.map-caption { color: #e3bc88; }
.map-lines { stroke: rgba(228, 187, 133, .64); filter: none; }
.map-lines path[stroke] { stroke: rgba(218, 180, 133, .52); }
.map-lines .orange-line { stroke: #e6a172; }

.dna-wrap { background: #39352a; border-color: #7d7452; border-radius: 24px; }
.dna-card { background: #3e4432; border-color: #88946c; color: #fff1da; border-radius: 18px; }
.dna-card:nth-child(2) { background: #553b3b; border-color: #b17c79; }
.dna-card:nth-child(3) { background: #473b50; border-color: #a28bb3; }
.dna-card .icon,
.dna-card .dna-title { color: #f1c18d; }
.dna-card p,
.dna-card ul { color: #ead3b8; }
.quote-strip { background: #36291f; border-color: #70513a; }
.quote-strip blockquote { color: #fff1da; }

/* Both secondary portrait placements also preserve the entire illustration. */
.founder-preview { border-color: #795e47; }
.founder-preview .portrait-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: auto;
  background: #2c211b;
  padding: 20px;
}
.portrait-mini img {
  display: block;
  width: min(100%, 400px);
  height: auto;
  max-width: 100%;
  max-height: 500px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  border-radius: 21px;
  mix-blend-mode: normal;
}
.founder-copy { background: #36291f; }
.founder-copy > p { color: #dec7ac; }
.about-art {
  display: block;
  width: auto;
  height: 450px;
  max-width: 100%;
  max-height: 450px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  justify-self: center;
  border-radius: 21px;
  mix-blend-mode: normal;
}
.format-tag { background: #403127; border-color: #96734f; color: #ead3b8; }
.direction-context { background: #403127; color: #ead3b8; border-radius: 20px; }
.direction-context h3 { color: #fff1da; }
.notice { background: #403127; color: #ead3b8; border-left-color: #f3b27b; border-radius: 0 12px 12px 0; }
.product-row .step-num,
.step-no,
.horizon strong { color: #efbd7e; }
.map-source { background: #403127; border-color: #96734f; border-radius: 18px; }
.map-source img { border-radius: 12px; }
.iri-section { background: #403127; border-radius: 24px; }
.iri-orbit { background: #49372b; border-color: #c1935f; box-shadow: none; }
.iri-orbit strong,
.iri-orbit .icon { color: #efbd7e; }
.iri-orbit span { color: #ead3b8; }

.cta-section,
.site-footer { background: #2c211b; }
.site-footer { border-color: #70513a; }
.footer-nav { color: #ead3b8; }
.footer-note { color: #efbd7e; }
.skyline { opacity: .78; }
.modal { background: #403127; color: #fff1da; border-color: #b78d60; border-radius: 24px; }
.modal::backdrop { background: rgba(25, 17, 12, .76); }
.close-dialog { color: #fff1da; }
select,
textarea,
input { background: #2c211b; color: #fff1da; border-color: #b78d60; caret-color: #efbd7e; border-radius: 11px; }
select option { background: #2c211b; color: #fff1da; }
textarea::placeholder,
input::placeholder { color: #ceb293; opacity: 1; }
.form-field > span { color: #f1dcc2; }
.brief-result pre { background: #2c211b; color: #f1dcc2; border-radius: 13px; }
.status { color: #c9dfa8; }

@media (min-width: 1440px) {
  .hero-grid { min-height: 650px; }
  .hero-art { height: auto; max-width: 500px; }
}
@media (max-width: 1100px) {
  .hero-grid { min-height: 540px; gap: 22px; }
  .hero-art { height: auto; }
}
@media (max-width: 850px) {
  .hero-grid { gap: 18px; min-height: 480px; }
  .hero-art { height: auto; }
  .about-art { height: 400px; max-height: 400px; }
}
@media (max-width: 650px) {
  .main-nav { background: #36291f; }
  .hero-grid { min-height: 0; gap: 0; }
  .hero-art {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 28px auto 24px;
  }
  .hero-image { width: 100%; height: 100%; border-radius: 22px; }
  .hero-art .orbit-label { left: 12px; right: 12px; bottom: 12px; max-width: calc(100% - 24px); font-size: 13px; }
  .ecosystem-map .map-node,
  .ecosystem-map.is-list .map-node { border-radius: 18px; }
  .founder-preview .portrait-mini { min-height: 0; height: auto; padding: 18px; }
  .portrait-mini img { width: min(100%, 336px); height: auto; max-height: 420px; border-radius: 18px; }
  .about-art { height: auto; width: min(100%, 336px); max-height: 420px; border-radius: 18px; }
}
