/* Nandy Cyber Success — a personal teaching brand.
   Not a corporate security site: this one is a person talking to people starting
   out. Warm ink on soft paper, a serif with real character for headings, and a
   single teal accent. Editorial rather than salesy. */

:root{
  --paper:#FBF9F5;
  --card:#FFFFFF;
  --ink:#1F2430;
  --ink-2:#4C5567;
  --muted:#7A8496;
  --rule:#E1DCD2;
  --teal:#0F766E;
  --teal-dk:#0B5B55;
  --plum:#3B2F4A;

  --shell:72rem;
  --s--1:clamp(.85rem,.82rem + .13vw,.93rem);
  --s-0:clamp(1.02rem,.98rem + .2vw,1.12rem);
  --s-1:clamp(1.18rem,1.08rem + .5vw,1.45rem);
  --s-2:clamp(1.5rem,1.28rem + 1.05vw,2.1rem);
  --s-3:clamp(1.95rem,1.55rem + 2vw,3rem);
  --s-4:clamp(2.4rem,1.75rem + 3.2vw,4.1rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:Karla,"Helvetica Neue",Arial,sans-serif;
  font-size:var(--s-0);line-height:1.65;-webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  margin:0;font-family:Fraunces,Georgia,serif;font-weight:700;
  line-height:1.14;letter-spacing:-.012em;
}
p{margin:0 0 1em}
ul,ol{margin:0;padding:0;list-style:none}
a{color:inherit}
img,iframe{max-width:100%;display:block}
.shell{width:min(100% - 2.4rem,var(--shell));margin-inline:auto}
.narrow{width:min(100% - 2.4rem,44rem)}
:focus-visible{outline:2px solid var(--teal);outline-offset:3px}

/* -------------------------------------------------------------- header */
.masthead{background:var(--card);border-bottom:1px solid var(--rule);position:sticky;top:0;z-index:30}
.head-row{display:flex;align-items:center;gap:1.4rem;min-height:4.4rem}
.brand{
  font-family:Fraunces,Georgia,serif;font-weight:700;font-size:1.16rem;
  text-decoration:none;margin-right:auto;letter-spacing:-.02em;
}
.brand em{color:var(--teal);font-style:normal}
#nav{display:flex;align-items:center;gap:1.5rem}
#nav a{text-decoration:none;font-size:var(--s--1);font-weight:500;color:var(--ink-2)}
#nav a:hover{color:var(--teal)}
.nav-cta{
  background:var(--teal);color:#fff !important;font-weight:700 !important;
  padding:.5rem 1.05rem;border-radius:2rem;
}
.nav-cta:hover{background:var(--teal-dk)}
.menu-btn{
  display:none;background:none;border:1px solid var(--rule);color:var(--ink);
  font:inherit;font-size:var(--s--1);padding:.4rem .85rem;border-radius:.35rem;cursor:pointer;
}

/* --------------------------------------------------------------- hero */
.hero{padding:clamp(3rem,6vw,5.2rem) 0;border-bottom:1px solid var(--rule)}
.hero-grid{display:grid;gap:2.6rem}
@media(min-width:56rem){.hero-grid{grid-template-columns:1.35fr .85fr;gap:4rem;align-items:start}}
.kicker{
  font-size:var(--s--1);color:var(--teal);font-weight:700;margin:0 0 .9rem;
}
.hero h1{font-size:var(--s-4)}
.hero .lead{margin:1.2rem 0 2rem;font-size:var(--s-1);color:var(--ink-2);max-width:46ch}
.hero-side{background:var(--card);border:1px solid var(--rule);border-top:3px solid var(--teal);padding:1.6rem}
.hero-side-note{margin:1.2rem 0 0;font-size:var(--s--1);color:var(--muted)}

.stats{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem 1.4rem}
.stats strong{
  display:block;font-family:Fraunces,Georgia,serif;font-size:var(--s-2);
  line-height:1;letter-spacing:-.02em;
}
.stats span{display:block;font-size:var(--s--1);color:var(--muted);margin-top:.2rem;line-height:1.35}

.actions{display:flex;flex-wrap:wrap;gap:.8rem;margin:0}
.btn{
  display:inline-block;background:var(--teal);color:#fff;text-decoration:none;
  font-weight:700;font-size:var(--s-0);padding:.78rem 1.6rem;border-radius:2rem;
  border:0;cursor:pointer;font-family:inherit;
}
.btn:hover{background:var(--teal-dk)}
.btn-ghost{background:transparent;color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}
.btn-ghost:hover{background:rgba(255,255,255,.1)}
.btn-line{background:transparent;color:var(--teal);box-shadow:inset 0 0 0 2px var(--teal)}
.btn-line:hover{background:rgba(15,118,110,.08)}

/* -------------------------------------------------------------- bands */
.band{padding:clamp(2.6rem,5vw,4.2rem) 0}
.band > h2,.band .shell > h2{font-size:var(--s-2);max-width:24ch}
.band-lead{color:var(--muted);margin:.8rem 0 2rem;max-width:56ch}
.band-tint{background:var(--card);border-block:1px solid var(--rule)}
.band-dark{background:var(--plum);color:#F3EFF6}
.band-dark h2{font-size:var(--s-2)}
.band-dark p{color:#CFC4D8}

/* -------------------------------------------------------------- offers */
.offers{display:grid;gap:1.4rem;margin-top:2rem}
@media(min-width:44rem){.offers{grid-template-columns:1fr 1fr}}
@media(min-width:68rem){.offers{grid-template-columns:repeat(4,1fr)}}
.offer{background:var(--card);border:1px solid var(--rule);border-top:3px solid var(--teal);padding:1.4rem}
.offer h3{font-size:var(--s-1);margin-bottom:.55rem}
.offer h3 a{text-decoration:none}
.offer h3 a:hover{color:var(--teal)}
.offer p{margin:0;font-size:var(--s--1);color:var(--ink-2);line-height:1.55}
.offer em{font-style:italic}

/* ------------------------------------------------------------- reasons */
.reasons{display:grid;gap:1.6rem 2.4rem;margin-top:1.6rem}
@media(min-width:46rem){.reasons{grid-template-columns:1fr 1fr}}
@media(min-width:70rem){.reasons{grid-template-columns:repeat(3,1fr)}}
.reasons li{border-top:1px solid var(--rule);padding-top:1rem}
.reasons h3{font-size:var(--s-1);margin-bottom:.4rem}
.reasons p{margin:0;color:var(--ink-2);font-size:var(--s--1);line-height:1.55}

.plain{margin-top:1.2rem}
.plain li{
  padding:.6rem 0 .6rem 1.7rem;position:relative;border-bottom:1px solid var(--rule);
}
.plain li:last-child{border-bottom:0}
.plain li::before{content:"";position:absolute;left:0;top:1.2em;width:.8rem;height:2px;background:var(--teal)}

/* ------------------------------------------------------- lessons/chapters */
.lessons{counter-reset:none;margin-top:1.6rem;display:grid;gap:0}
.lesson{border-top:1px solid var(--rule);padding:1.3rem 0}
.lesson:last-child{border-bottom:1px solid var(--rule)}
.lesson-no{
  margin:0 0 .3rem;font-size:var(--s--1);font-weight:700;color:var(--teal);
  letter-spacing:.02em;
}
.lesson h3{font-size:var(--s-1);margin-bottom:.45rem}
.lesson p:last-child{margin:0;color:var(--ink-2);max-width:70ch}

/* ----------------------------------------------------------- resources */
.resources{display:grid;gap:1.4rem;padding:2.4rem 0 4rem}
@media(min-width:46rem){.resources{grid-template-columns:1fr 1fr}}
@media(min-width:72rem){.resources{grid-template-columns:repeat(3,1fr)}}
.resource{
  background:var(--card);border:1px solid var(--rule);padding:1.5rem;
  display:flex;flex-direction:column;
}
.res-type{
  margin:0 0 .7rem;font-size:.72rem;font-weight:700;color:var(--teal);
  border:1px solid var(--teal);border-radius:.2rem;padding:.1rem .4rem;align-self:flex-start;
}
.resource h3{font-size:var(--s-1);margin-bottom:.55rem}
.resource > p:nth-of-type(2){color:var(--ink-2);font-size:var(--s--1);line-height:1.55;flex:1}
.resource p:last-child{margin:1.1rem 0 0}

/* --------------------------------------------------------------- posts */
.post-cards{display:grid;gap:1.5rem;margin-top:1.8rem}
@media(min-width:48rem){.post-cards{grid-template-columns:repeat(3,1fr)}}
.post-cards-list{padding:2.4rem 0 3.4rem}
@media(min-width:48rem){.post-cards-list{grid-template-columns:1fr 1fr}}
.post-card{background:var(--card);border:1px solid var(--rule);border-left:3px solid var(--teal);padding:1.4rem}
.post-card h3{font-size:var(--s-1);margin-bottom:.55rem;line-height:1.2}
.post-card h3 a{text-decoration:none}
.post-card h3 a:hover{color:var(--teal)}
.post-card p{margin:0;font-size:var(--s--1);color:var(--ink-2);line-height:1.55}

/* ---------------------------------------------------------- page heads */
.page-head{background:var(--card);border-bottom:1px solid var(--rule);padding:clamp(2.4rem,5vw,3.8rem) 0}
.page-head h1{font-size:var(--s-3);max-width:24ch}
.page-head .lede{margin-top:1.1rem;font-size:var(--s-1);color:var(--ink-2);max-width:56ch;line-height:1.5}
.page-head .actions{margin-top:1.8rem}
.crumb{font-size:var(--s--1);color:var(--muted);margin:0 0 .9rem}
.crumb a{text-decoration:none;color:var(--muted)}
.crumb a:hover{color:var(--teal)}

.prose{padding:2.4rem 0 3.4rem}
.prose h2{font-size:var(--s-1);margin:2.2rem 0 .8rem}
.prose p{color:var(--ink-2);max-width:66ch}
.prose a{color:var(--teal)}
.article p{font-size:1.06rem;line-height:1.75}
.prose .stats{max-width:34rem;margin:1.4rem 0 0}

/* ------------------------------------------------------------ cta split */
.cta-split{display:flex;flex-wrap:wrap;gap:1.6rem 2.4rem;align-items:center;justify-content:space-between}
.cta-split > div:first-child{max-width:44ch}
.cta-split p{margin:.6rem 0 0}

/* ------------------------------------------------------------- contact */
.contact-grid{display:grid;gap:3rem;padding:2.6rem 0 4rem}
@media(min-width:56rem){.contact-grid{grid-template-columns:1.4fr 1fr;gap:4rem}}
.contact-grid h2{font-size:var(--s-2);margin-bottom:1.4rem}
.field{margin:0 0 1.1rem}
.field label{display:block;font-size:var(--s--1);font-weight:700;margin-bottom:.35rem}
.field input[type=text],.field input[type=email],.field textarea{
  width:100%;font:inherit;font-size:var(--s-0);color:var(--ink);background:var(--card);
  border:1px solid var(--rule);border-radius:.35rem;padding:.7rem .85rem;
}
.field textarea{resize:vertical}
.field input:focus,.field textarea:focus{
  border-color:var(--teal);outline:none;box-shadow:0 0 0 3px rgba(15,118,110,.14);
}
.field-row{display:grid;gap:0}
@media(min-width:38rem){.field-row{grid-template-columns:1fr 1fr;gap:0 1.1rem}}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.direct dt{font-size:var(--s--1);color:var(--muted);margin-top:1.1rem}
.direct dt:first-child{margin-top:0}
.direct dd{margin:.15rem 0 0}
.direct a{color:var(--ink);text-decoration-color:var(--teal);text-underline-offset:3px}
.direct a:hover{color:var(--teal)}
.form-note{padding:2.4rem 0 4rem}

/* -------------------------------------------------------------- footer */
.footer{background:var(--ink);color:#A6AFC0;padding:3rem 0 2rem;font-size:var(--s--1)}
.footer-grid{display:grid;gap:2rem}
@media(min-width:46rem){.footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr}}
.footer h3{
  font-family:Karla,sans-serif;font-size:var(--s--1);color:#fff;
  margin-bottom:.8rem;font-weight:700;
}
.footer-mission p{color:#A6AFC0;max-width:34ch;margin:0}
.footer li{margin-bottom:.4rem}
.footer a{color:#A6AFC0;text-decoration:none}
.footer a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.footer-note{margin:2.4rem 0 0;padding-top:1.3rem;border-top:1px solid #333B4C;color:#78829A}

/* --------------------------------------------------------- mobile nav */
@media(max-width:62rem){
  .menu-btn{display:block}
  .head-row{position:relative}
  #nav{
    display:none;position:absolute;top:100%;left:0;right:0;background:var(--card);
    flex-direction:column;align-items:stretch;gap:0;padding:.5rem 1.2rem 1.2rem;
    border-bottom:1px solid var(--rule);box-shadow:0 8px 20px rgba(31,36,48,.08);
  }
  body.nav-open #nav{display:flex}
  #nav a{padding:.72rem 0;border-bottom:1px solid var(--rule)}
  .nav-cta{text-align:center;margin-top:.8rem;border-bottom:0 !important}
}

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

/* ---------------------------------------------------------- imagery */
.brand{display:flex;align-items:center;gap:.6rem}
.brand img{height:1.7rem;width:auto}
.brand span{display:none}
@media(min-width:34rem){.brand span{display:inline}}

.portrait{
  width:min(100%,16rem);height:auto;margin:0 auto 1.4rem;border-radius:1rem;
}
@media(min-width:56rem){.portrait{width:100%;max-width:none}}

.about-portrait{
  float:right;width:11rem;height:auto;border-radius:.9rem;
  margin:0 0 1.2rem 1.6rem;
}
@media(max-width:36rem){.about-portrait{float:none;margin:0 auto 1.4rem;width:12rem}}

/* press strip */
.press{background:var(--card);border-bottom:1px solid var(--rule);padding:1.8rem 0}
.press-label{
  margin:0 0 1rem;font-size:.74rem;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--muted);
}
.press-logos{
  display:flex;flex-wrap:wrap;align-items:center;gap:1.4rem 2.6rem;
}
.press-logos img{
  height:1.9rem;width:auto;opacity:.5;filter:grayscale(1);
}
.press-logos img:hover{opacity:.8}

/* post cards with thumbnails */
.post-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.post-thumb{display:block;aspect-ratio:3/2;overflow:hidden;background:var(--rule)}
.post-thumb img{width:100%;height:100%;object-fit:cover}
.post-body{padding:1.3rem 1.4rem}
.post-hero{
  width:100%;height:auto;border-radius:.6rem;margin:2rem 0 0;
  aspect-ratio:3/2;object-fit:cover;
}

/* resources with covers */
.resource{padding:0;overflow:hidden}
.res-cover{
  width:100%;aspect-ratio:1/1;object-fit:cover;
  border-bottom:1px solid var(--rule);background:var(--paper);
}
.res-body{padding:1.4rem 1.5rem;display:flex;flex-direction:column;flex:1}
.res-body > p:nth-of-type(2){color:var(--ink-2);font-size:var(--s--1);line-height:1.55;flex:1}
.res-dl{margin:1.1rem 0 0 !important}

/* ---- image sizing corrections ---- */
.portrait{
  width:min(100%,13rem) !important;
  height:auto;
  display:block;
  margin:0 auto 1.4rem !important;
}
@media(min-width:56rem){.portrait{width:min(100%,15rem) !important}}

.press-logos{
  display:grid !important;
  grid-template-columns:repeat(3,1fr);
  gap:1.4rem 2rem;align-items:center;
}
@media(min-width:52rem){.press-logos{grid-template-columns:repeat(6,1fr)}}
.press-logos li{display:flex;align-items:center;justify-content:center}
.press-logos img{
  height:auto !important;
  max-height:2.4rem;
  max-width:100%;
  width:auto;
  object-fit:contain;
}

.about-portrait{width:9.5rem !important}

/* hero sits on light paper, so the secondary button needs dark text */
.hero .btn-ghost{
  color:var(--teal);
  box-shadow:inset 0 0 0 2px var(--teal);
  background:transparent;
}
.hero .btn-ghost:hover{background:rgba(15,118,110,.08)}
