/* ============================================================
   FALASCO CONSULTING, shared styles
   Used by the five main pages: index.html (home), event-briefing.html,
   services.html, about.html and contact.html. The other pages
   (brief, sample-brief, privacy, thanks) keep their own styles inside them.

   Palette: brand gold #FDDA32 (sampled from WxByJustice reels) on a
   night-ocean ground, with a South Florida aqua secondary.
   The top bar, the night bands and the footer stay night in BOTH
   themes. The light document between them follows the viewer's theme.

   Gradients (added Dec 1 2026 at Justice's request): the night bands
   fade from night into a deep sea color, and the light document fades
   from the cool ground into a faint aqua. Two palette colors per fade,
   nothing else. No gradients on small panels or behind body text blocks.
   ============================================================ */

:root{
  /* fixed "night" chrome, identical in both themes */
  --night:#070D10;
  --night-2:#0E1A1E;
  --night-3:#16262B;
  --night-sea:#0D3335;        /* deep sea color the night bands fade into */
  --night-ink:#F1ECE1;
  --night-ink-2:#9DAAAF;
  --night-ink-3:#6F7E85;
  --night-rule:#22323A;

  /* the two night fades: a big diagonal one for the hero and page heads,
     and a quieter vertical one for the footer */
  --night-fade:linear-gradient(155deg,var(--night) 0%,var(--night) 30%,var(--night-sea) 100%);
  --night-fade-foot:linear-gradient(180deg,var(--night) 0%,#0A1C1F 100%);

  /* brand */
  --gold:#FDDA32;
  --gold-deep:#D9B41C;
  --on-gold:#0A1114;
  --aqua:#35C0A6;

  /* light theme document */
  --ground:#EDF2F1;
  --ground-2:#D6E8E4;         /* where the light page fade ends, a faint aqua */
  --surface:#FFFFFF;
  --surface-2:#F5F8F8;
  --ink:#0B1215;
  --ink-2:#4B575D;
  --ink-3:#5E6A70;
  --rule:#CFD9D7;
  --rule-soft:#DFE7E5;
  --accent:#8A6708;          /* readable gold for TEXT on light */
  --teal:#0E7C69;

  --f-display:"Schibsted Grotesk","Helvetica Neue",Arial,sans-serif;
  --f-body:"Faustina",Georgia,"Times New Roman",serif;
  --f-mono:"Chivo Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;
  --measure:66ch;
  --pad:clamp(20px,5vw,64px);
}

/* dark theme for the document area (viewer's system set to dark) */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ground:#070D10;
    --ground-2:#0B1C20;
    --surface:#0D161A;
    --surface-2:#142026;
    --ink:#F1ECE1;
    --ink-2:#A7B2B6;
    --ink-3:#76848A;
    --rule:#22323A;
    --rule-soft:#18262C;
    --accent:#FDDA32;
    --teal:#35C0A6;
  }
}
:root[data-theme="dark"]{
  --ground:#070D10;
  --ground-2:#0B1C20;
  --surface:#0D161A;
  --surface-2:#142026;
  --ink:#F1ECE1;
  --ink-2:#A7B2B6;
  --ink-3:#76848A;
  --rule:#22323A;
  --rule-soft:#18262C;
  --accent:#FDDA32;
  --teal:#35C0A6;
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
body{
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:17.5px;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:2px}

.wrap{max-width:1160px;margin:0 auto;padding-inline:var(--pad)}
section[id],div[id]{scroll-margin-top:78px}   /* keeps anchor jumps clear of the sticky bar */
h1,h2,h3,h4{font-family:var(--f-display);font-weight:800;text-wrap:balance;margin:0;line-height:1.08}
p{margin:0}
.lede{font-size:clamp(19px,2.1vw,22px);line-height:1.55;color:var(--ink-2);max-width:var(--measure)}

/* the light document area: fades from the cool ground into a faint aqua */
main{background:linear-gradient(180deg,var(--ground) 0%,var(--ground-2) 100%)}

.sec{padding-block:clamp(54px,7.5vw,96px)}
.sec + .sec{padding-top:0}                    /* two light sections in a row share one gap */
.sec h2{font-size:clamp(26px,3.2vw,38px);max-width:26ch}
.sec-intro{margin-top:16px}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--f-display);font-size:14.5px;font-weight:600;
  text-decoration:none;padding:12px 20px;border:1px solid var(--gold);background:var(--gold);color:var(--on-gold);
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.btn:hover{background:var(--gold-deep);border-color:var(--gold-deep)}
.btn.sm{padding:9px 15px;font-size:13.5px}
button.btn{cursor:pointer;appearance:none;-webkit-appearance:none}

/* a plain underlined link that sits next to a button */
.textlink{font-family:var(--f-body);font-size:16.5px;text-decoration:underline;text-underline-offset:4px}

/* ---------- top bar (night in both themes) ---------- */
header.bar{
  position:sticky;top:0;z-index:50;
  background:var(--night);
  border-bottom:1px solid var(--night-rule);
  color:var(--night-ink);
}
.bar-in{display:flex;align-items:center;justify-content:space-between;gap:20px;height:60px}
@media (max-width:430px){
  .bar-in{gap:12px}
  .brand{font-size:14px;gap:8px}
  .brand small{display:none}
  .bar-in .btn.sm{padding:8px 12px;font-size:12.5px;white-space:nowrap}
}
.brand{font-family:var(--f-display);font-weight:800;font-size:15.5px;text-decoration:none;display:flex;align-items:center;gap:10px;color:inherit}
.mark{width:19px;height:19px;flex:none}
.brand small{font-family:var(--f-mono);font-weight:500;font-size:9.5px;letter-spacing:.09em;color:var(--gold);text-transform:uppercase}
nav.links{display:none;gap:26px}
@media (min-width:880px){nav.links{display:flex}}
nav.links a{text-decoration:none;color:var(--night-ink-2);font-family:var(--f-display);font-size:14.5px;font-weight:500;padding-block:6px;border-bottom:1px solid transparent}
nav.links a:hover{color:var(--night-ink);border-bottom-color:var(--gold)}
nav.links a[aria-current="page"]{color:var(--night-ink);border-bottom-color:var(--gold)}   /* the page you are on */

/* small screens: the page links sit in a second row under the bar,
   because the desktop nav is hidden below 880px */
.mnav{display:flex;gap:18px;overflow-x:auto;padding-block:0 12px;margin-top:-4px}
@media (min-width:880px){.mnav{display:none}}
.mnav a{color:var(--night-ink-2);text-decoration:none;font-family:var(--f-display);font-weight:500;font-size:14px;white-space:nowrap;padding-bottom:3px;border-bottom:1px solid transparent}
.mnav a[aria-current="page"]{color:var(--night-ink);border-bottom-color:var(--gold)}

/* ---------- night bands: home hero and every page head ---------- */
.hero,.page-head{
  position:relative;overflow:hidden;
  background:var(--night-fade);
  color:var(--night-ink);
}
.hero-in{position:relative;padding-block:clamp(54px,9vw,108px) clamp(46px,7vw,86px)}
.hero h1{font-size:clamp(35px,6.2vw,70px);max-width:15ch}
.hero .lede{margin-top:24px;max-width:44ch;font-size:clamp(18px,2vw,21px);color:var(--night-ink-2)}
.hero-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin-top:34px}
.hero-cta .textlink{color:var(--night-ink-2);text-decoration-color:var(--night-ink-3)}
.hero-cta .textlink:hover{color:var(--night-ink)}

.page-head-in{position:relative;padding-block:clamp(46px,6.5vw,84px)}
.page-head h1{font-size:clamp(32px,4.8vw,54px);max-width:20ch}
.page-head .lede{margin-top:18px;color:var(--night-ink-2);max-width:58ch}

/* credential rail under the home hero */
.rail{background:var(--surface);border-bottom:1px solid var(--rule)}
.rail-in{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.stat{padding:18px 22px 18px 0}
.stat p{font-family:var(--f-body);font-size:15px;line-height:1.45;color:var(--ink-2)}
.stat b{font-family:var(--f-display);font-weight:700;color:var(--ink)}

.prose{max-width:var(--measure)}
.prose p+p{margin-top:18px}
.prose strong{font-weight:600;color:var(--ink)}

/* ---------- home: the three ways in ---------- */
.doors{margin-top:22px}
.door{display:grid;gap:8px 32px;padding:22px 0}
@media (min-width:760px){.door{grid-template-columns:260px minmax(0,1fr)}}
.door h3{font-size:22px;line-height:1.15}
.door h3 a{text-decoration:none}
.door h3 a:hover{text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--gold-deep)}
.door p{color:var(--ink-2);font-size:16.5px;line-height:1.58;max-width:58ch}
.door .textlink{display:inline-block;margin-top:10px;font-size:16px;color:var(--ink);text-decoration-color:var(--gold-deep)}

/* a closing line with a button, at the bottom of a page */
.cta-line{display:flex;flex-wrap:wrap;align-items:center;gap:16px 26px}
.cta-line p{font-family:var(--f-display);font-weight:600;font-size:clamp(19px,2.2vw,23px);line-height:1.3;max-width:34ch}

/* ---------- services ---------- */
.offers{margin-top:14px}
.offer{display:grid;gap:10px 32px;padding:24px 0}
@media (min-width:760px){.offer{grid-template-columns:230px minmax(0,1fr)}}
.offer h3{font-size:22px;line-height:1.15}
.offer .who{font-family:var(--f-body);font-size:15px;color:var(--teal);margin-top:8px}
.offer p{color:var(--ink-2);font-size:16.5px;line-height:1.58;max-width:58ch}
.offer ul{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:7px}
.offer li{font-family:var(--f-body);font-size:15.5px;color:var(--ink-2);line-height:1.5;padding-left:17px;position:relative;max-width:58ch}
.offer li::before{content:"";position:absolute;left:0;top:11px;width:7px;height:1px;background:var(--gold-deep)}

/* ---------- how an engagement runs ---------- */
.steps{display:grid;margin-top:6px}
.step{display:grid;gap:6px 22px;padding-block:18px}
@media (min-width:700px){.step{grid-template-columns:58px minmax(0,1fr)}}
.step .num{font-family:var(--f-display);font-weight:800;font-size:21px;line-height:1.15;color:var(--ink-2)}
.step h3{font-size:19.5px;margin-bottom:6px}
.step p{color:var(--ink-2);font-size:16.5px;max-width:60ch}

/* ---------- who I work with ---------- */
.also-line{margin-top:26px;font-size:15.5px;color:var(--ink-3);line-height:1.6;max-width:66ch}
.lane{margin-top:22px}
.lane h3{font-size:18px;margin-bottom:7px}
.lane p{color:var(--ink-2);font-size:16.5px;line-height:1.58;max-width:62ch}

/* ---------- hazards list (about page) ---------- */
.record{display:grid;margin-top:18px}
.rec{display:grid;gap:5px 28px;padding:14px 0}
@media (min-width:720px){.rec{grid-template-columns:212px minmax(0,1fr);align-items:baseline}}
.rec .place{color:var(--teal);font-family:var(--f-display);font-weight:600;font-size:16px;line-height:1.3}
.rec p{font-size:16.5px;color:var(--ink-2)}

/* ---------- about ---------- */
.about{display:grid;gap:clamp(26px,4vw,44px);align-items:start}
@media (min-width:860px){.about{grid-template-columns:288px minmax(0,1fr)}}
.portrait{position:relative;margin:0}
.portrait img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:50% 20%}   /* height:auto is required, see CLAUDE.md */
.portrait figcaption{padding-top:10px;color:var(--ink-3);font-family:var(--f-display);font-weight:600;font-size:13px}
.cred{margin:18px 0 0;display:grid;border-top:1px solid var(--rule-soft)}
.cred div{padding:11px 0;border-bottom:1px solid var(--rule-soft);display:flex;justify-content:space-between;gap:16px;align-items:baseline}
.cred dt{font-family:var(--f-display);font-weight:600;font-size:13px;color:var(--ink-3);flex:none}
.cred dd{margin:0;font-size:15.5px;text-align:right;color:var(--ink)}
.about-lead{
  font-family:var(--f-display);font-weight:600;
  font-size:clamp(20px,2.5vw,26px);line-height:1.3;
  margin:0 0 24px;max-width:34ch;text-wrap:balance;
}

/* ---------- contact ---------- */
.contact{display:grid;gap:clamp(28px,4vw,56px)}
@media (min-width:900px){.contact{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}}
.brief{margin-top:30px}
.brief-l{font-family:var(--f-display);font-weight:600;font-size:13px;color:var(--ink-3);display:block;margin-bottom:12px}
.brief ol{margin:0;padding-left:19px;display:grid;gap:8px;font-size:15.5px;color:var(--ink-2)}

/* contact form (Netlify Forms; see README) */
.form{display:grid;gap:16px;align-self:start}
.f2{display:grid;gap:16px}
@media (min-width:560px){.f2{grid-template-columns:1fr 1fr}}
.form label{display:grid;gap:6px;font-family:var(--f-display);font-weight:600;font-size:13px;color:var(--ink-3)}
.form label small{font-weight:500;color:var(--ink-3)}
.form input,.form textarea{
  font-family:var(--f-body);font-size:16px;line-height:1.4;color:var(--ink);
  background:var(--surface-2);border:1px solid var(--rule);border-radius:0;
  padding:11px 12px;width:100%;min-width:0;margin:0;
}
.form textarea{resize:vertical;min-height:150px}
.form input:focus-visible,.form textarea:focus-visible{outline:2px solid var(--gold);outline-offset:0;border-color:var(--gold-deep)}
.form .hp{display:none}            /* honeypot field, hidden from people, filled in by bots */
.contact-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px;align-items:center}
.form .alt{font-size:15px;color:var(--ink-2)}
.form .alt a{color:var(--ink-2)}

/* ---------- event briefing page (night band) ---------- */
.pkg-grid{display:grid;gap:clamp(30px,4vw,54px);margin-top:clamp(32px,4vw,46px);align-items:start}
@media (min-width:920px){.pkg-grid{grid-template-columns:minmax(0,1fr) 332px}}
.anatomy{display:grid}
.anatomy > div{display:grid;gap:3px 22px;padding:14px 0}
@media (min-width:620px){.anatomy > div{grid-template-columns:28px minmax(0,1fr)}}
.anatomy .n{font-family:var(--f-display);font-weight:800;font-size:17.5px;line-height:1.25;color:var(--night-ink-2)}
.anatomy h2{font-size:18.5px;color:var(--night-ink);line-height:1.25}
.anatomy p{font-size:15.5px;color:var(--night-ink-2);line-height:1.52;max-width:58ch;margin-top:4px}
.price-card{background:var(--night-2);padding:26px}
.tier{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--night-rule)}
.tier:last-of-type{border-bottom:0;margin-bottom:0}
.tier .amt{font-family:var(--f-display);font-weight:800;font-size:36px;color:var(--gold);line-height:1}
.tier .nm{font-family:var(--f-display);font-weight:600;font-size:14.5px;color:var(--night-ink);margin-top:9px}
.tier .d{font-size:14.5px;color:var(--night-ink-2);line-height:1.5;margin-top:5px}
.price-card .btn{width:100%;justify-content:center;margin-top:22px}
.sample{margin-top:24px;font-size:16px;color:var(--night-ink-2);line-height:1.6;max-width:58ch}
.sample b{color:var(--night-ink);font-weight:600;font-family:var(--f-display)}
.sample a{color:var(--gold);text-underline-offset:4px}

/* ---------- footer (night in both themes) ---------- */
footer{background:var(--night-fade-foot);color:var(--night-ink-2);padding-block:38px 48px;border-top:1px solid var(--night-rule)}
.foot{display:flex;flex-wrap:wrap;gap:20px 34px;justify-content:space-between;align-items:flex-start}
.foot a{color:var(--night-ink-2)}
.foot .brand{color:var(--night-ink)}
.foot p{font-size:14px;line-height:1.6;max-width:62ch}
.foot-links{display:grid;gap:6px;font-family:var(--f-display);font-size:14px}
.site{color:var(--gold);font-family:var(--f-mono);font-size:13px;letter-spacing:.02em;text-transform:lowercase;text-decoration:none}
.disclaim{margin-top:26px;padding-top:20px;border-top:1px solid var(--night-rule);font-size:13.5px;line-height:1.6;max-width:80ch;color:var(--night-ink-3)}

/* night behind the page edges, so short pages and overscroll match the bar and footer */
html{scroll-behavior:smooth;background:var(--night)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- home: About section ---------- */
.about-name{font-size:clamp(26px,3.2vw,38px);margin-bottom:14px}
.more{margin-top:28px}
.more .textlink{color:var(--ink);text-decoration-color:var(--gold-deep)}
/* ---------- home hero: NOAA satellite image of Hurricane Marie ----------
   Two background layers: a dark fade over the left side so the words read, then the photo.
   The photo is drawn at 150% width and shifted so the eye sits on the right, about 74% across.
   (Never mirror it: a flipped hurricane spins the wrong way, and meteorologists notice.) */
.hero.sat{
  background-color:var(--night);
  background-image:
    linear-gradient(90deg,rgba(7,13,16,.95) 0%,rgba(7,13,16,.86) 34%,rgba(7,13,16,.5) 58%,rgba(7,13,16,0) 80%),
    url(/hero-satellite.jpg);
  background-repeat:no-repeat;
  background-size:100% 100%,150% auto;
  background-position:0 0,6% 82%;
}
/* on phones the photo sits in a strip under the button, so the words stay on plain night */
@media (max-width:760px){
  .hero.sat .hero-in{padding-bottom:330px}
  .hero.sat{
    background-image:
      linear-gradient(180deg,var(--night) 0%,var(--night) calc(100% - 380px),rgba(7,13,16,0) calc(100% - 240px)),
      url(/hero-satellite.jpg);
    background-size:100% 100%,auto 380px;
    background-position:0 0,51% 100%;
  }
}
