/* Sakura is the shared visual layer. Product and access behavior stays in the existing pages. */
body {
  --hg-night: #0a121b;
  --hg-deep: #0e1823;
  --hg-raised: #192331;
  --hg-ink: #f6eddf;
  --hg-body: #dfd5c6;
  --hg-muted: #bfb7ac;
  --hg-gold: #dfb781;
  --hg-gold-soft: #f6dfbd;
  --hg-blue: #e8b5a8;
  --hg-red: #f4a096;
  --hg-edge: #b58f634e;
  --hg-edge-quiet: #dcb37b2e;
  --hg-hero: linear-gradient(142deg, #21232ed9, #0f1924 72%);
  --hg-primary: linear-gradient(135deg, #1a2430, #101923);
  --hg-secondary: linear-gradient(135deg, #18212b, #0f1721);
  --hg-inset: #0b141e;
  --hg-quiet: #d8a57109;
  --hg-shadow: 0 15px 42px #02040860;
  --hg-radius: 5px;
  --hg-radius-lg: 7px;
  --hg-radius-sm: 4px;
  --sakura-ember: #9f3845;
  --sakura-pattern: url('/assets/sakura/seigaiha.svg');
  --sakura-landscape: url('/media/sakura/waymorrow-sakura-landscape.webp');
  color-scheme: dark;
  background: var(--sakura-pattern) left top / 96px 48px repeat, var(--hg-night);
}

body h1, body h2, body h3 {
  color: var(--hg-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -.038em;
}

body .eyebrow, body .number, body .section-head .eyebrow {
  color: var(--hg-gold);
  font-size: .7rem;
  letter-spacing: .22em;
}

body a:not([class]) { color: var(--hg-gold-soft); }
body a:not([class]):hover { color: var(--hg-blue); }

body .site-header {
  background: #0a111b;
  border-bottom-color: #ba905759;
  backdrop-filter: none;
}
body .nav-shell { min-height: 74px; }
body .brand {
  color: var(--hg-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
body .brand-mark {
  flex: none;
  width: 30px;
  height: 30px;
  background: transparent url('/assets/sakura/bloom.svg') center / contain no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: transparent;
}
body .primary-nav a {
  color: var(--hg-body);
  border: 1px solid transparent;
  border-radius: var(--hg-radius-sm);
  font-weight: 600;
}
body .primary-nav a:hover,
body .primary-nav a[aria-current=page] {
  background: #88334330;
  color: var(--hg-gold-soft);
  border-color: #d06c6c48;
}
body .primary-nav a[data-nav-page=workspace] {
  border-color: var(--hg-edge);
  color: var(--hg-gold-soft);
}
body .nav-toggle { color: var(--hg-gold-soft); border-color: var(--hg-edge); }

body .hero, body[data-page] .hero, body[data-page=forum] .forum-mast {
  background:
    linear-gradient(90deg, #090f19fa 0%, #0a121bf2 28%, #10182790 76%),
    linear-gradient(0deg, #0a121bf7 0%, transparent 65%),
    var(--sakura-landscape) center 45% / cover no-repeat;
  border-bottom: 1px solid var(--hg-edge);
}
body[data-page] .hero::before, body[data-page] .hero::after { display: none; }
body .hero .alpha-note { color: var(--hg-body); }
body .tonal {
  background: linear-gradient(108deg, #202029a9, #101923e8);
  border-block-color: var(--hg-edge-quiet);
}
body .section, body .wm-story, body .wm-depth { color: var(--hg-body); }
body .disclosure, body .journal-feature, body .ux-evidence { border-color: var(--hg-edge); }
body .btn.primary, body .btn.primary:hover {
  color: #fff6eb;
  background: linear-gradient(125deg, #a33b49, #812f3b);
  border-color: #de9480;
  box-shadow: 0 4px 20px #05050a65;
}
body .btn:not(.primary) { color: var(--hg-gold-soft); }
body .btn:hover, body button:not(.nav-toggle):hover { box-shadow: 0 5px 20px #06050a55; }
body :focus-visible { outline-color: #f4c9a5; }
body .cta-band, body .site-footer { background: linear-gradient(110deg, #181b26, #0a111a); }
body .video-shell, body .media-frame, body .product-shot { border-radius: var(--hg-radius); }
body .video-shell video { border-radius: 2px; background: var(--hg-night); }
body[data-page=platform] .platform-stage { transform: none; border-color: var(--hg-edge); }
body[data-page=platform] .platform-hero-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
body[data-page=abriella] .abriella-identity {
  width: min(100%, 430px);
  justify-self: center;
  background: #111924;
  border: 1px solid var(--hg-edge);
  border-radius: var(--hg-radius);
  padding: 8px;
  box-shadow: var(--hg-shadow);
}
body[data-page=abriella] .abriella-identity .sakura-portrait { margin: 0; }
body[data-page=abriella] .sakura-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 36%;
  border-radius: 2px;
}
body .sakura-portrait figcaption { padding: .65rem .45rem .25rem; color: var(--hg-gold-soft); font-size: .8rem; }

body[data-page=home] .sakura-opening {
  padding: 0;
  background:
    linear-gradient(90deg, #090e17fa 0%, #0b121de8 35%, #11162133 73%),
    linear-gradient(0deg, #0a121be8, transparent 60%),
    var(--sakura-landscape) center 45% / cover no-repeat;
}
body[data-page=home] .sakura-opening-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, .74fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6.25rem);
  min-height: min(720px, 80vh);
  padding-block: clamp(3.5rem, 7vw, 6.4rem);
}
body[data-page=home] .sakura-opening h1 {
  max-width: 13ch;
  font-size: clamp(3.3rem, 6.4vw, 6.3rem);
  line-height: .98;
  margin-bottom: 1.4rem;
}
body[data-page=home] .sakura-opening h1 em { color: var(--hg-gold-soft); font-weight: inherit; }
body .sakura-intro { position: relative; max-width: 37rem; }
body .sakura-intro .lead { max-width: 35ch; }
body .sakura-intro .button-row { margin-block: 1.45rem 1.75rem; }
body .sakura-status {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .82rem;
  color: var(--hg-body);
}
body .sakura-status::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #e8b78a;
}
body .sakura-feature-portrait {
  position: relative;
  width: min(100%, 365px);
  justify-self: end;
  margin: 0;
  padding: 7px;
  border: 1px solid #d1a879ad;
  background: #101622;
  box-shadow: 0 18px 55px #080709ad;
}
body .sakura-feature-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 37%;
  display: block;
}
body .sakura-feature-portrait figcaption {
  position: absolute;
  inset: auto 7px 7px;
  display: grid;
  gap: .1rem;
  padding: 2.3rem .95rem .9rem;
  background: linear-gradient(transparent, #080d17ed 65%);
  color: var(--hg-gold-soft);
}
body .sakura-feature-portrait strong {
  font: 1.3rem Georgia, 'Times New Roman', serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
body .sakura-feature-portrait small { color: var(--hg-body); }
body .sakura-feature-portrait::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 28px;
  height: 28px;
  border-bottom: 2px solid #ed9e90;
  border-right: 2px solid #ed9e90;
  pointer-events: none;
}

body .sakura-preview { background: linear-gradient(112deg, #171d28b8, #0e1723a8); }
body .sakura-preview figure, body .sakura-capture { margin: 0; }
body .sakura-capture a, body .sakura-capture-grid figure > a { display: block; }
body .sakura-capture img, body .sakura-capture-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
body .sakura-capture, body .sakura-capture-grid figure {
  padding: 8px;
  background: #0a121c;
  border: 1px solid var(--hg-edge);
  border-radius: var(--hg-radius);
}
body .sakura-capture figcaption, body .sakura-capture-grid figcaption {
  display: grid;
  gap: .2rem;
  color: var(--hg-muted);
  padding: .75rem .55rem .45rem;
  font-size: .85rem;
}
body .sakura-capture figcaption strong, body .sakura-capture-grid figcaption strong { color: var(--hg-gold-soft); }
body .sakura-capture-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.3rem; }
body .sakura-preview-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(1.25rem, 4vw, 3.5rem); }
body .sakura-archive {
  margin-top: 1rem;
  padding: .6rem .8rem;
  color: var(--hg-muted);
  border: 1px solid var(--hg-edge-quiet);
  border-radius: var(--hg-radius-sm);
  background: #0a121b;
}
body .sakura-archive > summary { cursor: pointer; color: var(--hg-gold-soft); font-size: .88rem; }
body .sakura-archive[open] > summary { margin-bottom: .75rem; }
body .sakura-chapters { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .8rem .5rem .25rem; }
body .sakura-chapters a { font-size: .8rem; color: var(--hg-gold-soft); }
body .sakura-inline-note { font-size: .86rem; color: var(--hg-muted); }

@media (max-width: 1100px) {
  body[data-page=platform] .platform-hero-layout { grid-template-columns: 1fr; }
  body .primary-nav a { padding-inline: .4rem; }
}
@media (max-width: 800px) {
  body .nav-shell { min-height: 64px; }
  body .site-header, body .primary-nav { background-color: #0a121b; }
  body[data-page=home] .sakura-opening-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.65rem;
    padding-block: 2.6rem;
  }
  body[data-page=home] .sakura-opening h1 { font-size: clamp(2.8rem, 11vw, 4.6rem); }
  body .sakura-feature-portrait { justify-self: start; width: min(100%, 320px); }
  body .sakura-preview-layout, body .sakura-capture-grid { grid-template-columns: 1fr; }
  body .sakura-status { align-items: baseline; }
}
