/* =========================================================
   Exceptional Deviant · site styles
   Bootstrap 5 + this file. Titan-style structure, dark.
   Layout idea: full-screen photo hero, then centred module
   titles over alternating big-photo / short-text sections.
   ========================================================= */

:root {
  --ink: #0c0c0e;        /* page ground */
  --ink-2: #141418;      /* alternate band */
  --ink-3: #1d1d23;      /* photo placeholder fill */
  --line: #2a2a31;       /* rules, borders */
  --steel: #9ba3ad;      /* secondary text */
  --bone: #ece9e4;       /* primary text */
  --blood: #c4162f;      /* single accent */

  --f-alt: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;   /* Titan's caps */
  --f-type: "Cutive", "American Typewriter", "Courier New", serif;  /* echoes the wordmark */
  --f-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --bs-body-bg: var(--ink);
  --bs-body-color: var(--bone);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 236, 233, 228;
  --bs-link-hover-color-rgb: 255, 255, 255;
  color-scheme: dark;
}

/* ---------- base ---------- */
body { background: var(--ink); color: var(--bone); font: 400 1rem/1.7 var(--f-body); }
img { max-width: 100%; }
a { color: var(--bone); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; }
::selection { background: var(--blood); color: #fff; }

.font-alt { font-family: var(--f-alt); text-transform: uppercase; letter-spacing: .22em; }
.font-type { font-family: var(--f-type); }
.text-steel { color: var(--steel) !important; }
.text-blood { color: var(--blood) !important; }

/* ---------- navbar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 1031; background: var(--ink); }
.navbar-ed {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 1030;
  padding-block: 1.1rem; transition: background-color .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.navbar-ed.is-solid, .navbar-ed.always-solid { background: rgba(12,12,14,.94); backdrop-filter: blur(8px); padding-block: .7rem; border-bottom-color: var(--line); }
.navbar-ed .navbar-brand img { height: 24px; width: auto; display: block; }
.navbar-ed .nav-link { font: 400 .8rem/1 var(--f-alt); text-transform: uppercase; letter-spacing: .2em; color: var(--steel); padding: .7rem .9rem !important; }
.navbar-ed .nav-link:hover, .navbar-ed .nav-link.active { color: var(--bone); }
.navbar-ed .nav-link.active { box-shadow: inset 0 -2px 0 var(--blood); }
.navbar-ed .navbar-toggler { border: 1px solid var(--line); color: var(--bone); padding: .35rem .6rem; }
.navbar-ed .navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  .navbar-ed .navbar-collapse { background: var(--ink); margin-top: .7rem; border-top: 1px solid var(--line); padding-block: .5rem; }
  .navbar-ed:has(.navbar-collapse.show), .navbar-ed:has(.navbar-collapse.collapsing) { background: var(--ink); }
}

/* side gutter on every container (keeps 16px+ and clears phone side bars) */
.container, .container-fluid {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 62rem); display: flex; align-items: flex-end;
  background: radial-gradient(120% 90% at 70% 20%, #24242b 0%, var(--ink) 70%); overflow: hidden;
}
.hero.hero-short { min-height: 26rem; align-items: center; }
.hero > .slot { position: absolute; inset: 0; border: 0; background: transparent; }
.hero > .slot img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 30%; }
.hero > .slot img { transition: opacity 2.5s ease; }
.hero > .slot img.is-off { opacity: 0; }
.hero .ai-note { position: absolute; z-index: 3; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 1rem; font: 400 .68rem/1 var(--f-alt); letter-spacing: .14em; text-transform: uppercase; color: rgba(236,233,228,.75); background: rgba(12,12,14,.6); padding: .35rem .55rem; transition: opacity .8s; }
.hero .ai-note.is-off { opacity: 0; }
.hero > .slot .slot-note { inset: auto 1rem 1rem auto; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,14,.35) 0%, rgba(12,12,14,0) 18%); pointer-events: none; z-index: 1; }
@media (max-width: 991.98px) { .hero::after { background: linear-gradient(180deg, rgba(12,12,14,.35) 0%, rgba(12,12,14,.72) 45%, rgba(12,12,14,.96) 100%); } }
.hero .hero-inner { position: relative; z-index: 2; padding-block: 9rem 4.5rem; width: 100%; }
.hero .hero-mark { width: min(100%, 46rem); height: auto; display: block; }
.hero .hero-line { font: 400 clamp(1.8rem, 5vw, 3.2rem)/1.1 var(--f-type); margin: 1.6rem 0 0; text-wrap: balance; }
.hero .hero-line span { color: var(--blood); }
.hero .hero-sub { max-width: 34rem; color: var(--steel); font-size: 1.1rem; margin: 1rem 0 0; }
.hero h1.page-title { font: 400 clamp(2.2rem, 6vw, 4rem)/1.05 var(--f-type); margin: .6rem 0 0; text-wrap: balance; }

/* ---------- modules (Titan's sections) ---------- */
.module { padding-block: clamp(4.5rem, 10vw, 8rem); border-top: 1px solid var(--line); }
.module-small { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.module.alt, .module-small.alt { background: var(--ink-2); }
.module-subtitle { font: 400 .8rem/1 var(--f-alt); text-transform: uppercase; letter-spacing: .24em; color: var(--steel); margin: 0 0 1rem; }
.module-title { font: 400 clamp(1.9rem, 4.5vw, 2.8rem)/1.1 var(--f-type); margin: 0; text-wrap: balance; }
.module-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.module-head p { color: var(--steel); margin: 1rem 0 0; }
.module-head .module-subtitle { margin: 0 0 1.1rem; }
.divider { width: 3rem; height: 2px; background: var(--blood); border: 0; margin: 1.4rem auto 0; opacity: 1; }
.module-head.text-start .divider { margin-left: 0; }
.prose { max-width: 38rem; }
.prose p { color: var(--steel); }
.prose p.lead-type { font: 400 clamp(1.3rem, 2.6vw, 1.7rem)/1.35 var(--f-type); color: var(--bone); }
h3 { font: 400 1.5rem/1.2 var(--f-type); text-wrap: balance; }

/* ---------- photo slots ---------- */
/* Drop a photo at the path in the note and it fills the slot. Until then the note shows. */
.slot { position: relative; background: var(--ink-3); border: 1px solid var(--line); overflow: hidden; margin: 0; max-width: 100%; }
.slot.ratio-portrait { aspect-ratio: 4 / 5; }
.slot.ratio-square { aspect-ratio: 1 / 1; }
.slot.ratio-wide { aspect-ratio: 16 / 10; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.slot .slot-note { position: absolute; inset: auto .8rem .8rem .8rem; z-index: 0; font: 400 .72rem/1.4 var(--f-alt); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.slot .slot-note code { color: var(--bone); font: inherit; letter-spacing: .04em; text-transform: none; }
.slot .slot-art { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; }

body:not(.show-drafts) .slot-note { display: none; }

/* photo + text rows (Instylr-style alternating) */
.feature-row { --bs-gutter-x: clamp(2rem, 6vw, 5rem); --bs-gutter-y: 2rem; align-items: center; }
.feature-row + .feature-row { margin-top: clamp(4rem, 9vw, 7rem); }
.feature-row .col-text { min-width: 0; }

/* ---------- garments (mockups until real photos exist) ---------- */
.garment svg { width: 78%; height: auto; }
.garment svg path { fill: #050506; stroke: #2f2f37; stroke-width: 1.5; }
.garment .print { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 20%; height: auto; }
.garment .print.vertical { width: 28%; left: 63%; top: 60%; transform: translate(-50%, -50%) rotate(90deg); }
.garment .print.text { font: 400 clamp(.55rem, 1.05vw, .72rem)/1.2 var(--f-type); text-align: center; color: var(--bone); width: 26%; }
.garment .print.pride .pride-bar { display: flex; height: 2px; width: 70%; margin: .3em auto 0; outline: 1px solid rgba(236,233,228,.35); }
.garment .print.pride .pride-bar i { flex: 1; }
.garment .print.pride .word { display: block; white-space: nowrap; }

.piece { display: flex; flex-direction: column; gap: .8rem; height: 100%; min-width: 0; }
.piece .meta { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.piece .meta span { font: 400 .72rem/1.2 var(--f-alt); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.piece h3 { margin: 0; font-size: 1.35rem; }
.piece p { margin: 0; color: var(--steel); font-size: .95rem; }

/* ---------- buttons ---------- */
.btn-ed, .btn-ed-outline {
  font: 400 .8rem/1 var(--f-alt); text-transform: uppercase; letter-spacing: .2em;
  padding: 1rem 1.5rem; border-radius: 0; transition: background-color .2s, border-color .2s, color .2s;
}
.btn-ed { background: var(--blood); color: #fff; border: 1px solid var(--blood); }
.btn-ed:hover { background: #a8122a; border-color: #a8122a; color: #fff; }
.btn-ed-outline { background: transparent; color: var(--bone); border: 1px solid var(--line); }
.btn-ed-outline:hover { border-color: var(--bone); color: #fff; }
.btn-pick { align-self: flex-start; }
.btn-pick[aria-pressed="true"] { border-color: var(--blood); color: var(--blood); }

/* decode toggle */
.decode { margin-top: 1.5rem; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.decode output { font: 400 1rem/1.3 var(--f-type); }

/* ---------- pillars (3 points about the idea) ---------- */
.pillar { border-top: 1px solid var(--line); padding-top: 1.4rem; height: 100%; }
.pillar .num { font: 400 .8rem/1 var(--f-alt); letter-spacing: .2em; color: var(--blood); }
.pillar h3 { margin: .8rem 0 .5rem; }
.pillar p { color: var(--steel); margin: 0; }

/* ---------- releases ---------- */
.release { border: 1px solid var(--line); background: var(--ink); padding: 1.5rem; height: 100%; display: flex; flex-direction: column; gap: .9rem; }
.release .meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font: 400 .75rem/1 var(--f-alt); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.release .meta .soon { color: var(--blood); }
.release h3 { margin: 0; }
.release ol { margin: 0; padding-left: 1.4rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.release p { margin: 0; color: var(--steel); }
.listen { display: flex; flex-wrap: wrap; gap: .5rem; }
.listen a { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- journal ---------- */
.post-card { display: flex; flex-direction: column; gap: .9rem; height: 100%; text-decoration: none; }
.post-card .date { font: 400 .75rem/1 var(--f-alt); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.post-card h3 { margin: 0; }
.post-card p { margin: 0; color: var(--steel); }
.post-card:hover h3 { color: #fff; text-decoration: underline; text-decoration-color: var(--blood); text-underline-offset: .2em; }
.article { max-width: 40rem; margin: 0 auto; }
.article p { color: #c9c6c0; font-size: 1.06rem; }
.article h2 { font: 400 1.6rem/1.2 var(--f-type); margin: 2.4rem 0 .8rem; }
.article .back { font: 400 .8rem/1 var(--f-alt); letter-spacing: .2em; text-transform: uppercase; color: var(--steel); text-decoration: none; }
.article .back:hover { color: var(--bone); }

/* ---------- signup ---------- */
.signup-form { display: flex; flex-direction: column; gap: 1.2rem; }
.signup-form .form-control { background: var(--ink); color: var(--bone); border: 1px solid var(--line); border-radius: 0; padding: .9rem 1rem; font-size: 1.05rem; }
.signup-form .form-control:focus { border-color: var(--steel); box-shadow: none; background: var(--ink); color: var(--bone); }
.signup-form .form-control::placeholder { color: #6b717a; }
.signup-form fieldset { border: 1px solid var(--line); padding: 1rem 1.1rem 1.1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .6rem 1rem; margin: 0; }
.signup-form legend { float: none; width: auto; padding: 0 .4rem; margin: 0; font: 400 .75rem/1 var(--f-alt); letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.signup-form .form-check-input { background-color: var(--ink); border-color: #4a4a55; border-radius: 0; }
.signup-form .form-check-input:checked { background-color: var(--blood); border-color: var(--blood); }
.signup-form .form-check-input:focus { box-shadow: none; border-color: var(--steel); }
.signup-form .status { min-height: 1.5em; margin: 0; color: var(--steel); }
.signup-form .fine { font-size: .85rem; color: var(--steel); margin: 0; }
.form-label.font-alt { font-size: .75rem; color: var(--steel); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; background: var(--ink); }
.footer .footer-mark { width: 11rem; height: auto; opacity: .55; }
.footer .social { display: flex; gap: 1.1rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer .social a { color: var(--steel); font-size: 1.25rem; text-decoration: none; }
.footer .social a:hover { color: var(--bone); }
.footer .foot-nav { display: flex; gap: .4rem 1.4rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer .foot-nav a { font: 400 .78rem/1.6 var(--f-alt); letter-spacing: .18em; text-transform: uppercase; color: var(--steel); text-decoration: none; }
.footer .foot-nav a:hover { color: var(--bone); }
.footer small { color: var(--steel); }

/* ---------- product zoom ---------- */
[data-zoom] { cursor: zoom-in; }
[data-zoom]:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(12,12,14,.985); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 3.5rem 16px 1.25rem; }
.lightbox[hidden] { display: none; }
.lightbox .lb-stage { position: relative; overflow: hidden; width: min(100%, calc(100vh - 9rem), 1100px); aspect-ratio: 1 / 1; background: var(--ink-3); border: 1px solid var(--line); }
.lightbox .lb-stage img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; transition: transform .25s ease; }
.lightbox .lb-stage.is-zoomed img { transform: scale(2.2); cursor: zoom-out; }
.lightbox .lb-close { position: absolute; top: .75rem; right: max(16px, env(safe-area-inset-right, 0px)); background: none; border: 0; color: var(--bone); font-size: 1.6rem; line-height: 1; padding: .4rem; }
.lightbox .lb-tabs { display: flex; gap: .5rem; }
.lightbox .lb-tabs:empty { display: none; }
.lightbox .lb-tabs button { background: none; border: 1px solid var(--line); color: var(--steel); font: 400 .75rem/1 var(--f-alt); letter-spacing: .2em; text-transform: uppercase; padding: .7rem 1.2rem; }
.lightbox .lb-tabs button[aria-pressed="true"] { border-color: var(--bone); color: var(--bone); }
.lightbox .lb-title { margin: 0; font: 400 1.15rem/1.2 var(--f-type); color: var(--bone); text-align: center; }
.lightbox .lb-hint { margin: 0; font: 400 .7rem/1 var(--f-alt); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
