/* ════════════════════════════════════════════════════════════════
   SITU · Intro pages — shared design system  (DARK theme v2)
   ────────────────────────────────────────────────────────────────
   Matches Gallery + landing visual language: dark purple-black bg,
   cream text, hot orange (#ee4e0e) accent, FreeSerif throughout,
   italics globally disabled.
   Used by: about · studio-intro · forum · gallery · contact
   ════════════════════════════════════════════════════════════════ */

/* FreeSerif self-hosted (matches the landings) */
@font-face {
  font-family: 'FreeSerif';
  src: url('fonts/freeserif/FreeSerif.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FreeSerif';
  src: url('fonts/freeserif/FreeSerif-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FreeSerif';
  src: url('fonts/freeserif/FreeSerif-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'FreeSerif';
  src: url('fonts/freeserif/FreeSerif-BoldItalic.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  /* Dark palette — same as landing-coral / landing-new + gallery */
  --bg:        #07030b;          /* deep purple-black */
  --bg-soft:   #14091a;          /* slightly lighter — placeholder + footer */
  --ink:       #f3e9d4;          /* primary text (cream) */
  --ink-body:  #cdbf9f;          /* body text (soft cream) */
  --ink-soft:  #8a7c66;          /* captions, eyebrow */
  --ink-dim:   #4d4538;          /* hairlines, fine print */
  --hot:       #ee4e0e;          /* the brand orange */
  --hot-soft:  rgba(238, 78, 14, 0.12);
  --rule:      rgba(243, 233, 212, 0.10);

  /* FreeSerif everywhere; original fonts kept as graceful fallbacks */
  --f-body:    'FreeSerif', 'Inter', system-ui, serif;
  --f-mono:    'FreeSerif', 'IBM Plex Mono', ui-monospace, monospace;
  --f-cn:      'FreeSerif', 'Noto Serif SC', 'Songti SC', serif;
  --ease:      cubic-bezier(0.2, 0.8, 0.4, 1);

  --col-narrow: 680px;
  --col-wide:   900px;
  --col-page:   1200px;
}

/* Italics disabled site-wide per design refresh */
body, body * { font-style: normal !important; }

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--hot); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code { font-family: var(--f-mono); font-size: 0.92em; color: var(--hot); }

/* ─── Topbar — landing-aligned: brand LEFT, nav CENTER, account RIGHT ─── */
.topbar {
  position: sticky; top: 0;
  z-index: 50;
  display: grid;
  /* Three equal cols so the center one is truly centered regardless
     of how wide the brand or account section gets. */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 20px 36px;
  background: rgba(7, 3, 11, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 320ms var(--ease);
}
body.scrolled .topbar { border-bottom-color: var(--rule); }

.top-brand {
  justify-self: start;
  display: inline-flex; align-items: baseline; gap: 12px;
  font-weight: 600; font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.top-brand .cn {
  font-family: var(--f-cn);
  font-weight: 500;
  color: var(--hot);
  font-size: 14px;
}

.top-nav {
  justify-self: center;
  display: flex; gap: 36px;
  font-size: 14px;
}
.top-nav a {
  color: var(--ink-body);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.top-nav a:hover { color: var(--hot); }
.top-nav a.is-active { color: var(--hot); border-bottom-color: var(--hot); }

/* Right-side slot — user-menu.js injects the Sign-in pill or
   the avatar dropdown into .nav-utils, same pattern as landing. */
.nav-utils {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 12px;
}

@media (max-width: 780px) {
  .topbar { padding: 14px 18px; gap: 14px; grid-template-columns: auto 1fr auto; }
  .top-nav { display: none; }
}

/* ─── Page hero (big 16:9 image or placeholder) ───────────── */
main {
  max-width: var(--col-page);
  margin: 0 auto;
  padding: 56px 36px 80px;
}

.page-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  margin-bottom: 60px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-hero.is-placeholder {
  /* Dark warm gradient placeholder, matches gallery card aesthetic */
  background: linear-gradient(135deg, #1a0e22 0%, #0c0612 100%);
  display: grid; place-items: center;
}
.page-hero.is-placeholder::after {
  content: attr(data-placeholder);
  font: 500 11px var(--f-mono);
  color: rgba(243, 233, 212, 0.35);
  letter-spacing: 0.40em;
  text-transform: uppercase;
}
.page-hero.has-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.30) 100%);
  pointer-events: none;
}
.page-hero .hero-caption {
  position: absolute;
  left: 26px; bottom: 22px;
  color: #fff;
  font: 500 13px var(--f-mono);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  z-index: 2;
}

/* ─── Page metadata + title ──────────────────────────────── */
.page-meta {
  display: flex; gap: 16px; align-items: baseline;
  margin-bottom: 18px;
  font: 500 12px var(--f-mono);
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.page-meta .num { color: var(--hot); }
.page-meta .dot { width: 3px; height: 3px; background: var(--ink-dim);
                  border-radius: 50%; display: inline-block;
                  transform: translateY(-3px); }
.page-meta .pill {
  display: inline-block;
  color: var(--hot);
  background: var(--hot-soft);
  padding: 3px 10px;
  letter-spacing: 0.20em;
  border-radius: 99px;
  font-size: 10px;
}

.page-title {
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: var(--col-wide);
  margin-bottom: 36px;
}
.page-title .o { color: var(--hot); }
.page-title .cn {
  display: inline-block;
  font-family: var(--f-cn);
  font-weight: 500;
  font-size: 0.42em;
  color: var(--hot);
  margin-left: 20px;
  letter-spacing: 0.06em;
  vertical-align: 0.18em;
}

/* ─── Body prose ────────────────────────────────────────── */
.page-body {
  max-width: var(--col-narrow);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-body);
}
.page-body p + p { margin-top: 22px; }
.page-body strong { color: var(--ink); font-weight: 600; }
.page-body em { font-style: italic; }
.page-body a {
  color: var(--hot);
  border-bottom: 1px solid var(--hot);
  transition: opacity 200ms var(--ease);
}
.page-body a:hover { opacity: 0.7; }

/* ─── 2x2 sub-grid (used by studio + forum) ─────────────── */
.sub-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  max-width: var(--col-wide);
}
.sub-item { display: flex; flex-direction: column; gap: 8px; }
.sub-item .sub-num {
  font: 500 11px var(--f-mono);
  color: var(--hot);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.sub-item .sub-head {
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sub-item .sub-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-body);
}
@media (max-width: 700px) {
  .sub-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ─── CTA (sentence-style link with arrow) ────────────── */
.page-cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 64px;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--ink);
  transition: color 200ms var(--ease),
              border-color 200ms var(--ease),
              gap 220ms var(--ease);
}
.page-cta::after { content: '→'; color: var(--hot); transition: transform 220ms var(--ease); }
.page-cta:hover { color: var(--hot); border-color: var(--hot); gap: 18px; }
.page-cta:hover::after { transform: translateX(6px); }

/* ─── Big email in contact ────────────────────────────── */
.big-email {
  display: inline-block;
  margin-top: 16px;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--hot);
  border-bottom: 1.5px solid var(--hot);
  padding-bottom: 4px;
  letter-spacing: -0.02em;
  transition: opacity 200ms var(--ease);
}
.big-email:hover { opacity: 0.7; }

/* ─── Minimal form ────────────────────────────────────── */
.contact-form {
  max-width: var(--col-narrow);
  margin-top: 60px;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font: 400 16px var(--f-body);
  padding: 16px 0;
  outline: none;
  transition: border-color 200ms var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--hot); }
.contact-form ::placeholder { color: var(--ink-soft); }
.contact-form button {
  /* Dark-theme button: solid hot-orange filled with white text */
  align-self: flex-start;
  margin-top: 28px;
  background: var(--hot);
  color: #fff;
  border: 0;
  font: 500 14px var(--f-body);
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.contact-form button::after { content: '→'; color: #fff; transition: transform 200ms var(--ease); }
.contact-form button:hover { background: #ff7a47; transform: translateY(-1px); }
.contact-form button:hover::after { transform: translateX(4px); }
.contact-note { margin-top: 18px; font-size: 13px; color: var(--ink-soft); }

/* ─── Footer ──────────────────────────────────────────── */
footer {
  margin-top: 80px;
  padding: 70px 36px 40px;
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
}
.foot-grid {
  max-width: var(--col-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand { font-weight: 600; font-size: 18px; color: var(--ink); }
.foot-brand .cn { font-family: var(--f-cn); color: var(--hot); font-size: 15px; margin-left: 10px; }
.foot-brand p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  max-width: 360px;
}
.foot-col h6 {
  font: 500 11px var(--f-mono);
  color: var(--ink-soft);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; font-size: 14px; }
.foot-col li a { color: var(--ink-body); transition: color 200ms var(--ease); }
.foot-col li a:hover { color: var(--hot); }
.foot-bottom {
  max-width: var(--col-page);
  margin: 50px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font: 500 12px var(--f-mono);
  color: var(--ink-dim);
  letter-spacing: 0.10em;
}
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ─── Reveal animation ────────────────────────────────── */
.fade { opacity: 0; transform: translateY(14px);
        transition: opacity 900ms var(--ease),
                    transform 900ms var(--ease); }
.fade.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .fade { opacity: 1; transform: none; }
}
