/* Blackout Ready funnel pages. Tokens from 65-Visual-Identity (Concept B). Single deliberate look: Night hero, Paper reading ground. */
:root {
  --night: #181C1B;
  --slate: #2E3432;
  --paper: #F2F0E7;
  --paper-2: #E8E5D9;
  --hair: #CFCBBE;
  --ink: #1B1B1B;
  --graphite: #4D4A45;
  --ash: #6E6B62;
  --lamp: #E9B949;
  --amber: #E0A122;
  --amber-ink: #7A5009;
  --moss: #46603F;
  --on-night: #F2F0E7;
  --on-night-2: #BEBBB1;
  --display: Oswald, "Archivo Narrow", "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Source Serif 4", "Source Serif Pro", Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ui: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.62 var(--text);
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 600px) { body { font-size: 18px; } }
img { max-width: 100%; }
p, li { text-wrap: pretty; }
strong { font-weight: 700; }

/* review state switches (set by state.js) */
.state-file .ship-only { display: none !important; }
.state-ship .file-only { display: none !important; }
[data-arm="A"] .arm-b { display: none !important; }
[data-arm="B"] .arm-a { display: none !important; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 28px; }
@media (max-width: 600px) { .wrap { padding-inline: 18px; } }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--night); color: var(--on-night);
  border-bottom: 1px solid var(--slate);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand svg { width: 60px; height: auto; display: block; }
.brand-word { font: 700 19px/1 var(--display); letter-spacing: .08em; white-space: nowrap; }
.head-right { display: flex; align-items: center; gap: 20px; }
.head-meta { font: 600 14px/1.2 var(--ui); letter-spacing: .03em; color: var(--on-night-2); white-space: nowrap; }
.site-head .btn { white-space: nowrap; }
@media (max-width: 720px) {
  .head-meta { display: none; }
  .brand svg { width: 46px; }
  .brand-word { font-size: 16px; letter-spacing: .06em; }
  .site-head .btn-sm { font-size: 14px; padding: 10px 12px; letter-spacing: .04em; }
}
@media (max-width: 400px) {
  .site-head .wrap { gap: 10px; }
  .brand-word { font-size: 14px; letter-spacing: .04em; }
}
@media (max-width: 350px) { .brand-word { display: none; } }

/* ---------- buttons ---------- */
.btn {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  font: 600 20px/1.15 var(--display); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer; border: 0; border-radius: 3px;
  padding: 19px 32px; background: var(--night); color: var(--paper);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.45);
  transition: transform .12s ease, background-color .12s ease;
}
.btn .arr { font: 400 1.15em/1 var(--ui); flex: none; transition: transform .12s ease; }
.btn:hover .arr { transform: translateX(3px); }
.head-meta.assure-inline { display: inline-flex; align-items: center; gap: 7px; }
.head-meta.assure-inline svg { width: 18px; height: 18px; color: var(--lamp); flex: none; }
@media (max-width: 720px) { .head-meta.assure-inline { display: none; } }
.btn:hover { background: #262B2A; }
.btn:active { transform: translateY(1px); }
@media (max-width: 400px) { .site-head .btn-sm .arr { display: none; } }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn-lamp { background: var(--lamp); color: var(--night); box-shadow: inset 0 -3px 0 #B8892A; }
.btn-lamp:hover { background: #F0C45C; }
.btn-sm { min-height: 44px; padding: 11px 16px; font-size: 15px; box-shadow: inset 0 -2px 0 #B8892A; }
.btn-block { display: flex; width: 100%; }
.under-btn { font: italic 400 16px/1.5 var(--text); color: var(--graphite); margin: 12px 0 0; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- reading column ---------- */
.col { max-width: 700px; margin-inline: auto; }
.section { padding-block: 64px; }
.section + .section { padding-top: 0; }
h2 {
  font: 600 clamp(28px, 3.3vw, 38px)/1.1 var(--display);
  text-transform: uppercase; letter-spacing: .012em;
  margin: 0 0 22px; text-wrap: balance;
}
p { margin: 0 0 1em; }
.beats p { margin-bottom: .62em; }
.beats p:last-child { margin-bottom: 0; }

/* square bullets: unlit windows; the fridge-door card is the lit one */
ul.sq { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.sq > li { position: relative; padding-left: 32px; margin-bottom: .75em; }
ul.sq > li::before {
  content: ""; position: absolute; left: 3px; top: .52em;
  width: 11px; height: 11px; background: var(--night);
}
ul.sq > li.lit::before { background: var(--lamp); box-shadow: 0 0 0 2px var(--night); width: 10px; height: 10px; left: 4px; }

/* ---------- the fridge-door card figure ---------- */
.cardfig { margin: 0; position: relative; padding: 22px 34px 40px 8px; }
.sheet {
  position: relative; display: block; background: var(--paper); overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 22px 40px -16px rgba(24,28,27,.45), 0 4px 12px rgba(24,28,27,.12);
}
.sheet img { display: block; width: 100%; height: auto; }
.sheet.front { transform: rotate(-1.6deg); z-index: 2; }
.sheet.back { position: absolute; top: 4px; right: 0; width: 82%; transform: rotate(4.5deg); z-index: 1; filter: saturate(.9) brightness(.97); }
.magnet {
  position: absolute; z-index: 3; top: 8px; left: calc(50% - 30px);
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4A504D, #181C1B 70%);
  box-shadow: 0 3px 6px rgba(0,0,0,.35);
}
/* laminated: rounded corners, sealed edge, gloss */
.state-ship .sheet { border-radius: 16px; }
.state-ship .sheet::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255,255,255,0) 28%, rgba(255,255,255,.42) 40%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 26%);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.5), inset 0 0 0 7px rgba(24,28,27,.1);
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--hair); padding-block: 52px 60px; text-align: center; }
.site-foot svg { width: 160px; height: auto; display: block; margin: 0 auto 22px; }
.foot-line { font: italic 400 15px/1.55 var(--text); color: var(--graphite); max-width: 560px; margin: 0 auto; }

/* ---------- shared across pages ---------- */
  /* yellow on a light ground: a lamplight highlighter band under ink text, since yellow text on cream cannot be read (1.6:1) */
.hl { background: linear-gradient(transparent 52%, var(--lamp) 52%, var(--lamp) 94%, transparent 94%); padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  /* header lockup: house left of the wordmark, amber rule under it */
.site-head .brand { gap: 12px; }
.site-head .head-mark { width: 82px; height: auto; display: block; }
.brand-word.ruled { display: inline-block; padding-bottom: 5px; border-bottom: 2px solid var(--amber); }
@media (max-width: 400px) { .site-head .head-mark { width: 48px; } }
  /* rotating border light: Effect Library/rotating-border-light, recoloured. Rectangular 3px buttons, so the mask radius matches 3px */
.glow { position: relative; overflow: hidden; }
.feh-border-mask {
  position: absolute; top: 0; left: 0; width: 100%; height: 101%; padding: 3px; box-sizing: border-box; overflow: hidden; border-radius: 3px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: destination-out;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; z-index: 2;
}
.feh-border-glow {
  background: conic-gradient(transparent 0%, #FFFFFF 10%, transparent 10%);
  position: absolute; top: 50%; left: 50%; width: 500px; height: 5000px;
  transform: translate(-50%, -50%); transform-origin: 0 0; animation: 3s linear 0s infinite rotateShine;
}
.btn:not(.btn-lamp) .feh-border-glow { background: conic-gradient(transparent 0%, #E9B949 10%, transparent 10%); }
@keyframes rotateShine { 0% { transform: rotate(0deg) translate(-50%, -50%); } 100% { transform: rotate(360deg) translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) { .feh-border-glow { animation: none; } }
