/* My Fortress Plan — cinematic system, shared by every page (body.cine).
   One visual world in both color schemes: night ink, warm lamplight, spruce. Pages layer their own
   sheets on top (home2.css for the home story, plan.css for the plan tool). */
body.cine {
  --night: #0a0f11;
  --night-2: #10181b;
  --ink: #eef1ec;
  --dim: #a7b2ae;
  --soft: #d3dad6;
  --faint: rgba(238, 241, 236, .14);
  --ember: #f0a73c;
  --lamp: #ffd27a;
  --paper: #10181b; --panel: #141e22; --muted: #a7b2ae; --line: rgba(238, 241, 236, .12);
  --accent: #66b8b0; --accent-ink: #0a0f11; --marker: #f2c230;
  --poster: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  color-scheme: dark;
  background: var(--night);
  color: var(--ink);
}
.cine .v2-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (min-width: 1100px) { .cine .v2-wrap { padding-left: 56px; padding-right: 56px; } }

/* Header floats over the hero, then settles into a solid bar on scroll */
.cine .site-header { position: fixed; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(10, 15, 17, .78), rgba(10, 15, 17, 0)); border-bottom: 1px solid transparent; transition: background .35s ease, border-color .35s ease; }
.cine.scrolled .site-header { background: rgba(10, 15, 17, .92); border-bottom-color: var(--faint); backdrop-filter: blur(10px); }
.cine .site-header .container { max-width: 1320px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); min-height: 72px; }
@media (min-width: 1100px) { .cine .site-header .container { padding-left: 56px; padding-right: 56px; } }
.cine .logo, .cine .site-nav a { color: var(--ink); }
.cine .site-nav .btn { background: var(--lamp); border-color: var(--lamp); color: #14100a; }

/* Tags, buttons */
.v2-tag { display: inline-flex; align-items: center; gap: 12px; font: 800 13px/1 var(--stencil); letter-spacing: .22em; text-transform: uppercase; color: var(--lamp); }
.v2-tag::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.v2-mini { font: 800 11.5px/1 var(--stencil); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.v2-btn { display: inline-flex; align-items: center; gap: 12px; font: 600 16px/1 var(--body); text-decoration: none; padding: 18px 26px; border-radius: 999px; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.v2-btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.v2-btn:hover svg { transform: translateX(4px); }
.v2-btn-light { background: var(--lamp); color: #14100a; box-shadow: 0 0 0 0 rgba(255, 210, 122, .0); }
.v2-btn-light:hover { box-shadow: 0 0 40px 4px rgba(255, 190, 90, .28); }
.v2-btn-ghost { color: var(--ink); border-color: rgba(238, 241, 236, .35); }
.v2-btn-ghost:hover { border-color: var(--ink); }
.v2-fine { font-size: 13.5px; color: var(--dim); }


/* ===== Editorial index and hazard tiles (home + guides) ===== */
.v2-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--faint); }
.v2-rows a { display: grid; grid-template-columns: 70px 44px minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 22px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--faint); color: var(--ink); text-decoration: none; position: relative; transition: background .3s ease, padding .3s ease; }
.v2-rows a::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 140% at 20% 50%, rgba(255, 190, 90, .1), rgba(255, 190, 90, 0)); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.v2-rows a:hover::after, .v2-rows a:focus-visible::after { opacity: 1; }
.v2-rows a:hover { padding-left: 20px; }
.v2-rows .n { font: 800 16px/1 var(--stencil); letter-spacing: .14em; color: var(--dim); }
.v2-rows svg { width: 36px; height: 36px; color: var(--accent); }
.v2-rows b { font: 800 clamp(30px, 3.2vw, 52px)/1 var(--poster); text-transform: uppercase; }
.v2-rows .d { color: var(--dim); font-size: 16px; }
.v2-rows .go { width: 26px; height: 26px; color: var(--lamp); justify-self: end; transition: transform .25s ease; }
.v2-rows a:hover .go { transform: translateX(6px); }
@media (max-width: 860px) { .v2-rows a { grid-template-columns: 44px minmax(0, 1fr) 30px; } .v2-rows .n, .v2-rows .d { display: none; } }
.v2-hazards { margin-top: 72px; display: grid; gap: 18px; }
.v2-hazards > div { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 860px) { .v2-hazards > div { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.v2-hazards a { display: grid; justify-items: center; gap: 12px; padding: 22px 8px; border: 1px solid var(--faint); border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; transition: border-color .2s ease, background .2s ease; }
.v2-hazards a:hover { border-color: var(--lamp); background: rgba(255, 190, 90, .05); }
.v2-hazards svg { width: 34px; height: 34px; color: var(--lamp); }

@media (max-width: 480px) { .v2-hazards > div { grid-template-columns: repeat(3, minmax(0, 1fr)); } .v2-hazards a { font-size: 13px; padding: 18px 4px; } }

/* ===== Base type on night ===== */
.cine h1, .cine h2, .cine h3 { font-family: var(--poster); }
.cine .prose a, .cine .crumbs a, .cine .aside a, .cine .lede a, .cine .flag a, .cine .res-empty a { color: var(--lamp); }
.cine .site-footer a { color: var(--ink); }
.cine .container { max-width: 1320px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (min-width: 1100px) { .cine .container { padding-left: 56px; padding-right: 56px; } }
.cine .eyebrow { font: 800 11.5px/1 var(--stencil); letter-spacing: .2em; color: var(--lamp); }
.cine .stencil { color: var(--lamp); letter-spacing: .22em; }
.cine .btn { border-radius: 999px; padding: 14px 22px; background: transparent; color: var(--ink); border-color: rgba(238, 241, 236, .3); }
.cine .btn:hover { border-color: var(--ink); }
.cine .btn-primary, .cine .btn.btn-primary { background: var(--lamp); border-color: var(--lamp); color: #14100a; }
.cine .btn-primary:hover { box-shadow: 0 0 34px 2px rgba(255, 190, 90, .26); filter: none; }
.cine mark { background: none; color: var(--lamp); }

/* ===== Logo ===== */
.brandmark { display: inline-flex; align-items: center; text-decoration: none; --logo-ink: var(--ink); --logo-door: #f5b82e; }
.brandmark svg { height: 54px; width: auto; display: block; }
.site-footer .brandmark svg { height: 64px; }

/* ===== Footer ===== */
.cine .site-footer { margin-top: 0; background: var(--night); border-top: 1px solid var(--faint); color: var(--ink); }
.cine .site-footer .container { padding-block: 64px 56px; }
.cine .site-footer h4 { color: var(--lamp); }
.cine .site-footer a { color: var(--ink); }
.cine .site-footer .fineprint { color: var(--dim); }

/* ===== Cinematic page heads (guides, hazards, about, index) ===== */
.cine .page-head { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(340px, 40svh, 460px); padding: 140px 0 56px; background: var(--night); border: 0; }
.cine .page-head.photo-head { min-height: clamp(560px, 78svh, 860px); }
.cine .page-head::before { display: none; }
.cine .page-head .container { display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: 0; width: 100%; }
.cine .page-head .container > div { display: grid; gap: 18px; max-width: 920px; }
.cine .page-head .photo { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; border-radius: 0; box-shadow: none; max-width: none; background: var(--night); }
.cine .page-head .photo::before, .cine .page-head .photo .crop, .cine .page-head .photo figcaption, .cine .page-head .photo .ph-icon { display: none; }
.cine .page-head .photo img { filter: none; }
.cine .page-head .photo::after { mix-blend-mode: normal; background:
  linear-gradient(90deg, rgba(10, 15, 17, .9) 0%, rgba(10, 15, 17, .62) 40%, rgba(10, 15, 17, .12) 75%),
  linear-gradient(0deg, var(--night) 0%, rgba(10, 15, 17, .5) 26%, rgba(10, 15, 17, 0) 52%),
  linear-gradient(180deg, rgba(10, 15, 17, .65) 0%, rgba(10, 15, 17, 0) 22%); }
.cine .page-head h1 { font: 900 clamp(54px, min(7vw, 10vh), 124px)/.86 var(--poster); text-transform: uppercase; max-width: 17ch; text-wrap: balance; }
.cine .page-head .lede { font-size: clamp(18px, 1.4vw, 21px); color: #d6ddd9; max-width: 46ch; line-height: 1.55; }
.cine .page-head .crumbs, .cine .page-head .crumbs a, .cine .page-head .meta-line { color: var(--dim); font-size: 13px; }
.cine .page-head .kicker { display: flex; align-items: center; gap: 12px; }
.cine .page-head .kicker .icon { color: var(--lamp); width: 30px; height: 30px; }
.cine .page-head .kicker .stencil::before { display: none; }

/* ===== Article (guides, hazards, about, legal) ===== */
.cine .article { grid-template-columns: minmax(0, 70ch) minmax(240px, 300px); gap: clamp(40px, 6vw, 110px); padding-top: 72px; padding-bottom: 120px; }
@media (max-width: 980px) { .cine .article { grid-template-columns: minmax(0, 1fr); padding-top: 48px; } }
.cine .prose { gap: 20px; font-size: 18px; line-height: 1.7; color: var(--soft); }
.cine .prose h2 { font: 800 clamp(34px, 3.2vw, 50px)/.95 var(--poster); text-transform: uppercase; color: var(--ink); margin-top: 44px; }
.cine .prose h3 { font: 800 24px/1.05 var(--poster); text-transform: uppercase; color: var(--ink); }
.cine .prose b, .cine .prose strong { color: var(--ink); }
.cine .prose a { color: var(--lamp); }
.cine .prose ul, .cine .prose ol { gap: 8px; }
.cine .tablewrap { background: transparent; border-color: var(--faint); border-radius: 14px; }
.cine table { font-size: 15.5px; }
.cine th { background: rgba(238, 241, 236, .03); color: var(--lamp); font: 800 11.5px/1.3 var(--stencil); letter-spacing: .18em; border-color: var(--faint); }
.cine td { border-color: var(--faint); color: var(--soft); }
.cine td b { color: var(--ink); }
.cine .prose .callout { background: linear-gradient(90deg, rgba(240, 167, 60, .14), rgba(240, 167, 60, .04)); border-left: 3px solid var(--ember); border-radius: 4px 14px 14px 4px; padding: 18px 20px; color: var(--callout-ink, #ece3d6); }
.cine .prose .callout b.tag { color: var(--ember); font-family: var(--stencil); letter-spacing: .2em; }
.cine .prose .note { background: rgba(102, 184, 176, .08); border-left: 3px solid var(--accent); border-radius: 4px 14px 14px 4px; padding: 18px 20px; }
.cine .tiers { gap: 14px; }
.cine .tier { background: var(--night-2); border: 1px solid var(--faint); border-top: 2px solid var(--lamp); border-radius: 14px; padding: 20px; }
.cine .tier:nth-child(2) { border-top-color: var(--accent); }
.cine .tier:nth-child(3) { border-top-color: var(--ink); }
.cine .tier .label { color: var(--lamp); font-family: var(--stencil); letter-spacing: .2em; }
.cine .tier .cost { color: var(--dim); }
.cine .lookfor { background: var(--night-2); border: 1px solid var(--faint); border-radius: 14px; padding: 22px; }
.cine .lookfor h3 { color: var(--ink); }
.cine .checklist li::before { border-color: var(--accent); border-radius: 3px; }
.cine .sources { color: var(--dim); border-top: 1px solid var(--faint); padding-top: 22px; margin-top: 24px; }
.cine .sources h3 { font-size: 18px; color: var(--dim); }
.cine .aside .card { background: var(--night-2); border: 1px solid var(--faint); border-radius: 16px; padding: 22px; top: 100px; }
.cine .aside .card p { color: var(--dim); }
.cine .aside nav a { color: var(--soft); }
.cine .aside nav a:hover { color: var(--lamp); text-decoration: none; }

/* ===== Closing strip ===== */
.cine .cta-strip { margin-top: 0; padding-block: 0 120px; }
.cine .cta-strip .inner { background: var(--night-2); border: 1px solid var(--faint); border-radius: 22px; padding: 44px 48px; --topo-ink: rgba(255, 210, 122, .06); }
.cine .cta-strip h2 { font: 800 clamp(32px, 3.4vw, 54px)/.95 var(--poster); text-transform: uppercase; max-width: 20ch; }
.cine .cta-strip p { color: var(--dim); }
.cine .cta-strip .btn { background: var(--lamp); border-color: var(--lamp); color: #14100a; }

/* ===== Guides index ===== */
.cine .guide-list { padding-top: 110px; }
.cine .guide-list + .guide-list { padding-top: 90px; padding-bottom: 110px; }
.cine .v2-index-head { display: grid; gap: 22px; margin-bottom: 40px; }
.cine .v2-index-head h2 { font: 800 clamp(40px, 4.6vw, 76px)/.92 var(--poster); text-transform: uppercase; }
.cine .hazard-rows .n { font-size: 12px; color: var(--lamp); }
.cine .hazard-rows svg:not(.go) { color: var(--lamp); }

/* ===== Phone header: logo + one action on a single row ===== */
@media (max-width: 600px) {
  .cine .site-header .container { flex-wrap: nowrap; min-height: 64px; padding-block: 8px; }
  .cine .site-nav a:not(.btn) { display: none; }
  .cine .site-nav .btn { padding: 10px 16px; font-size: 14px; }
  .brandmark svg { height: 44px; }
  .cine .page-head { padding-top: 110px; }
}

/* Print: the night world becomes ink on paper. Browsers drop background colors and images by default,
   so every color is reset to dark-on-white rather than relying on the dark panels. */
@media print {
  body.cine {
    --night: #fff; --night-2: #fff; --ink: #111; --soft: #222; --dim: #444; --faint: #bbb;
    --ember: #8a5a00; --lamp: #8a5a00; --paper: #fff; --panel: #fff; --muted: #444; --line: #ccc;
    --accent: #1e5e5b; --accent-ink: #fff; --marker: #8a5a00; --field-ink: #111; --field-muted: #444;
    color-scheme: light; background: #fff; color: #111;
  }
  .cine *, .cine *::before, .cine *::after { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  .cine .topo::before, .cine .photo::before { display: none; }
  /* Full-bleed photo page heads collapse to a plain title */
  .cine .page-head { min-height: 0 !important; padding: 0 0 12px !important; background: none !important; color: #111; }
  .cine .page-head .photo, .cine .page-head picture, .cine .page-head img, .cine .page-head::before, .cine .page-head::after { display: none !important; }
  .cine .page-head h1, .cine .page-head .eyebrow, .cine .page-head .stencil, .cine .page-head p { color: #111 !important; }
  .cine a { color: #111; }
  .cine .tag, .cine .chip { border: 1px solid #999; color: #111 !important; }
  .cine .prose .callout { --callout-ink: #111; }
  .cine .prose .callout b.tag { border: 0; padding: 0; }
}
