/* Seven Day Anthology — mobile first.
   Base styles are the phone layout. Media queries add complexity for larger
   screens only. Palette + fonts per SDA Brand Guidelines (Cover scheme). */

/* Two colours only.
   Dark Azure #006773 and Light Orange #f4f2ee, swapped depending on surface:
     - header, footer and full-width bands : azure background, light lettering
     - page content                        : light background, azure lettering
   The older variable names (--teal, --gold, --ink) are kept as aliases so every
   rule below resolves to one of the two colours. Change these six lines to
   restyle the whole site. */
:root{
  --azure:#006773;
  --light:#f4f2ee;
  --teal:#006773;
  --teal-deep:#006773;
  --gold:#f4f2ee;
  --cream:#f4f2ee;
  --linen:#f4f2ee;
  --ink:#006773;
  --ink-soft:#3d7f88;
  --line:rgba(0,103,115,.2);
  --line-light:rgba(244,242,238,.28);
  --display:'Cormorant Garamond',Georgia,serif;
  --body:'EB Garamond',Georgia,serif;
  --wrap:1080px;
}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--linen);
  color:var(--ink);
  font-family:var(--body);
  font-size:1.0625rem;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--teal-deep);}

.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px;}

.skip{position:absolute;left:-9999px;}
.skip:focus{left:8px;top:8px;background:var(--gold);color:var(--ink);padding:10px 16px;z-index:99;}

/* ---------- header ---------- */
.site-header{background:var(--teal);color:var(--cream);position:sticky;top:0;z-index:50;}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:60px;gap:12px;}
.brand{
  font-family:var(--display);font-weight:600;color:var(--cream);text-decoration:none;
  font-size:1rem;letter-spacing:.06em;text-transform:uppercase;line-height:1.25;
}
.menu-toggle{
  background:none;border:0;padding:10px;cursor:pointer;
  display:flex;flex-direction:column;gap:4px;
  /* 44px min tap target */
  min-width:44px;min-height:44px;align-items:center;justify-content:center;
}
.menu-toggle span{display:block;width:22px;height:2px;background:var(--cream);}
.site-nav{
  display:none;position:absolute;top:100%;left:0;right:0;
  background:var(--teal-deep);flex-direction:column;padding:8px 20px 16px;
}
body.nav-open .site-nav{display:flex;}
.site-nav a{
  color:var(--cream);text-decoration:none;font-size:1.05rem;
  padding:12px 0;border-bottom:1px solid rgba(245,237,216,.15);
}
.site-nav a.active{color:var(--gold);}
.nav-cta{color:var(--gold)!important;font-weight:500;border-bottom:0!important;}

/* ---------- hero ---------- */
.hero{background:var(--teal);color:var(--cream);text-align:center;padding:48px 0 44px;}
.hero .eyebrow{
  font-family:var(--display);letter-spacing:.18em;text-transform:uppercase;
  font-size:.7rem;color:var(--gold);margin:0 0 18px;
}
.hero h1{
  font-family:var(--display);font-weight:700;color:var(--cream);
  font-size:2.1rem;line-height:1.15;margin:0 0 16px;
}
.hero .sub{font-size:1.1rem;margin:0 auto 28px;max-width:34em;color:var(--cream);opacity:.95;}
.rule{width:60px;height:1px;background:var(--gold);border:0;margin:22px auto;}

.btn{
  display:inline-block;background:var(--gold);color:var(--ink);
  font-family:var(--body);font-size:1.05rem;font-weight:500;
  padding:15px 30px;border:0;border-radius:2px;text-decoration:none;cursor:pointer;
  min-height:48px;line-height:1.2;
}
.btn:hover{background:#ffffff;}
.btn-outline{
  background:transparent;color:var(--light);border:1px solid var(--light);
}
.btn-outline:hover{background:var(--light);color:var(--azure);}
/* On a light page the button inverts: azure block, light lettering.
   Explicitly excludes .hero and .book-head — those sections are already
   azure, so a button inside them must stay light, never azure-on-azure. */
section:not(.signup):not(.stats):not(.hero):not(.book-head) .btn,
.prose .btn{background:var(--azure);color:var(--light);}
section:not(.signup):not(.stats):not(.hero):not(.book-head) .btn:hover,
.prose .btn:hover{background:#00525c;}
.hero .btn,.book-head .btn{background:var(--light);color:var(--azure);}
.hero .btn:hover,.book-head .btn:hover{background:#ffffff;}

/* ---------- generic sections ---------- */
section{padding:44px 0;}
h2{font-family:var(--display);font-weight:600;font-size:1.7rem;line-height:1.2;margin:0 0 18px;}
h3{font-family:var(--display);font-weight:600;font-size:1.25rem;margin:28px 0 10px;}
p{margin:0 0 16px;}
.lede{font-size:1.15rem;}
.center{text-align:center;}
.prose{max-width:38em;margin:0 auto;}
.prose ul{padding-left:1.1em;margin:0 0 18px;}
.prose li{margin-bottom:8px;}

.pull{
  background:transparent;border-left:3px solid var(--azure);
  padding:4px 0 4px 22px;margin:26px 0;font-size:1.1rem;
}
.pull p:last-child{margin-bottom:0;}

/* ---------- stat strip ---------- */
.stats{background:var(--teal-deep);color:var(--cream);}
.stat{text-align:center;padding:18px 0;border-bottom:1px solid rgba(245,237,216,.18);}
.stat:last-child{border-bottom:0;}
.stat .big{font-family:var(--display);font-size:1.9rem;color:var(--gold);display:block;line-height:1.1;}
.stat .lbl{font-size:.95rem;opacity:.9;}

/* ---------- book grid ---------- */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px 16px;}
.card{text-decoration:none;color:inherit;display:block;}
.card img{
  width:100%;box-shadow:0 2px 10px rgba(0,103,115,.22);
  background:var(--azure);aspect-ratio:1/1.6;object-fit:cover;
}
.card .t{font-family:var(--display);font-weight:600;font-size:1.02rem;line-height:1.25;margin:12px 0 4px;}
.card .l{font-size:.88rem;color:var(--ink-soft);line-height:1.4;margin:0;}
.card .free{
  display:inline-block;background:var(--azure);color:var(--light);
  font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;
  padding:3px 8px;margin-bottom:8px;
}

/* ---------- individual book page ---------- */
.book-head{background:var(--teal);color:var(--cream);padding:36px 0 40px;}
.book-head .cover{max-width:210px;margin:0 auto 26px;box-shadow:0 4px 18px rgba(0,0,0,.3);}
.book-head h1{font-family:var(--display);font-weight:700;font-size:1.85rem;line-height:1.15;margin:0 0 8px;text-align:center;}
.book-head .vol-sub{font-family:var(--display);font-style:italic;font-size:1.05rem;color:var(--gold);text-align:center;margin:0 0 20px;}
.book-head .tagline{text-align:center;font-size:1.1rem;max-width:30em;margin:0 auto 26px;}
.book-head .buybox{text-align:center;}
.book-head .fmt{font-size:.85rem;opacity:.85;margin:12px 0 0;}

.storylist{background:transparent;border:1px solid var(--line);padding:22px;margin:0 0 8px;}
.storylist ol{margin:0;padding-left:1.3em;}
.storylist li{margin-bottom:9px;}
.storylist .note{font-size:.92rem;color:var(--ink-soft);margin:14px 0 0;font-style:italic;}

.included{background:transparent;border:1px solid var(--line);padding:22px;}
.included ul{margin:0;padding-left:1.1em;}
.included li{margin-bottom:9px;}

.backlink{display:inline-block;margin-top:8px;font-size:.95rem;}

/* ---------- signup ---------- */
.signup{background:var(--teal-deep);color:var(--cream);text-align:center;}
.signup h2{color:var(--cream);}
.signup p{max-width:34em;margin-left:auto;margin-right:auto;}
.signup-form{display:flex;flex-direction:column;gap:10px;max-width:420px;margin:22px auto 0;}
.signup-form input{
  font-family:var(--body);font-size:1.05rem;padding:14px 16px;
  border:1px solid rgba(245,237,216,.4);background:var(--cream);color:var(--ink);
  border-radius:2px;min-height:48px;width:100%;
}
.signup-form button{
  font-family:var(--body);background:var(--gold);color:var(--ink);
  font-size:1.05rem;font-weight:500;padding:14px 20px;border:0;border-radius:2px;
  cursor:pointer;min-height:48px;
}
.fineprint{font-size:.85rem;opacity:.75;margin:14px 0 0;}

/* ---------- MailerLite embed, restyled ----------
   MailerLite's own stylesheet is deliberately not loaded. These rules take
   their markup and make it match the site. If you ever regenerate the embed,
   only the form action URL matters — ignore any CSS they give you. */
.ml-form-embedContainer{width:100%;max-width:440px;margin:22px auto 0;}
.ml-form-embedWrapper{width:100%;}
.ml-block-form{display:flex;flex-direction:column;gap:10px;margin:0;width:100%;}
.ml-form-formContent{margin:0;width:100%;}
.ml-form-fieldRow{margin:0;}
.ml-form-embedBody input[type=email]{
  font-family:var(--body);font-size:1.05rem;padding:14px 16px;width:100%;
  border:1px solid rgba(245,237,216,.4);background:var(--cream);color:var(--ink);
  border-radius:2px;min-height:48px;
}
.ml-form-embedBody input[type=email]::placeholder{color:#6b6b64;opacity:1;}
.ml-form-embedSubmit{margin:0;width:100%;}
.ml-form-embedSubmit button{
  font-family:var(--body);background:var(--gold);color:var(--ink);
  font-size:1.05rem;font-weight:500;padding:14px 20px;width:100%;
  border:0;border-radius:2px;cursor:pointer;min-height:48px;line-height:1.2;
}
.ml-form-embedSubmit button:hover{background:#ffffff;}
.ml-form-embedSubmit button.loading{display:none;background:var(--gold);}
.ml-form-embedSubmitLoad{display:inline-block;width:20px;height:20px;}
.ml-form-embedSubmitLoad:after{
  content:" ";display:block;width:11px;height:11px;margin:1px;border-radius:50%;
  border:3px solid var(--ink);border-color:var(--ink) var(--ink) var(--ink) transparent;
  animation:ml-spin 1.2s linear infinite;
}
@keyframes ml-spin{to{transform:rotate(360deg);}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;}
.ml-error input{border-color:#c0564a!important;}
.ml-form-successContent{text-align:center;padding:8px 0;}
.ml-form-successContent h4{
  font-family:var(--display);font-weight:600;font-size:1.45rem;
  color:var(--gold);margin:0 0 8px;
}
.ml-form-successContent p{margin:0;}

/* ---------- landing page (nav removed per playbook) ---------- */
.landing{background:var(--teal);color:var(--cream);min-height:100vh;padding:36px 0 60px;text-align:center;}
.landing .brandmark{
  font-family:var(--display);letter-spacing:.16em;text-transform:uppercase;
  font-size:.72rem;color:var(--gold);margin-bottom:34px;
}
.landing h1{font-family:var(--display);font-weight:700;font-size:2rem;line-height:1.15;margin:0 0 16px;}
.landing .cover{max-width:200px;margin:26px auto;box-shadow:0 4px 20px rgba(0,0,0,.32);}
.landing .signup{background:none;padding:0;}
.landing ul{list-style:none;padding:0;margin:26px auto;max-width:26em;text-align:left;}
.landing li{padding:8px 0 8px 26px;position:relative;}
.landing li::before{content:"—";position:absolute;left:0;color:var(--gold);}

/* ---------- footer ---------- */
.site-footer{background:var(--azure);color:var(--light);padding:38px 0 26px;font-size:.95rem;}
.foot-grid{display:grid;gap:26px;}
.foot-brand{font-family:var(--display);font-size:1.05rem;letter-spacing:.05em;text-transform:uppercase;margin-bottom:8px;}
.foot-line{opacity:.75;margin:0;font-size:.9rem;}
.foot-head{font-family:var(--display);color:var(--light);opacity:.7;letter-spacing:.1em;text-transform:uppercase;font-size:.72rem;margin-bottom:10px;}
.site-footer a{display:block;color:var(--light);text-decoration:none;opacity:.82;padding:5px 0;}
.site-footer a:hover{opacity:1;text-decoration:underline;}
.foot-base{border-top:1px solid var(--line-light);margin-top:26px;padding-top:18px;opacity:.65;font-size:.85rem;}

/* ================= TABLET ================= */
@media (min-width:600px){
  .hero h1{font-size:2.6rem;}
  h2{font-size:2rem;}
  .grid{grid-template-columns:repeat(3,1fr);gap:28px 22px;}
  .signup-form{flex-direction:row;}
  .signup-form input{flex:1;}
  .signup-form button{white-space:nowrap;}
  .ml-form-embedContainer{max-width:520px;}
  .ml-block-form{flex-direction:row;align-items:stretch;}
  .ml-form-formContent{flex:1;}
  .ml-form-embedSubmit{width:auto;flex:0 0 auto;}
  .ml-form-embedSubmit button{width:auto;white-space:nowrap;}
  .stats .wrap{display:flex;}
  .stat{flex:1;border-bottom:0;border-right:1px solid rgba(245,237,216,.18);padding:26px 14px;}
  .stat:last-child{border-right:0;}
  .foot-grid{grid-template-columns:2fr 1fr;}
  .book-head .cover{max-width:240px;}
  .book-head h1{font-size:2.2rem;}
}

/* ================= DESKTOP ================= */
@media (min-width:900px){
  body{font-size:1.09rem;}
  section{padding:60px 0;}
  .hero{padding:76px 0 68px;}
  .hero h1{font-size:3.1rem;}
  .brand{font-size:1.08rem;}
  .menu-toggle{display:none;}
  .site-nav{
    display:flex;position:static;flex-direction:row;background:none;
    padding:0;gap:26px;align-items:center;
  }
  .site-nav a{border-bottom:0;padding:0;font-size:.98rem;}
  .grid{grid-template-columns:repeat(4,1fr);gap:34px 26px;}

  /* two-column book page */
  .book-head .inner{display:flex;gap:44px;align-items:flex-start;text-align:left;}
  .book-head .cover{margin:0;flex:0 0 260px;max-width:260px;}
  .book-head h1,.book-head .vol-sub,.book-head .tagline,.book-head .buybox{text-align:left;}
  .book-head .tagline{margin-left:0;}
  .book-cols{display:grid;grid-template-columns:1.4fr 1fr;gap:40px;align-items:start;}
}

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