/* ============================================================
   The L.U.C.I.D. Method — brand stylesheet
   Palette from the book brand sheet: blue #2E75B6 / light #EBF3FB,
   warm cream, navy, and a gold accent. Calm, intentional, spacious.
   ============================================================ */

:root {
  --blue: #2E75B6;
  --blue-deep: #245e94;
  --blue-light: #EBF3FB;
  --navy: #1F3A5F;
  --navy-deep: #16304f;
  --gold: #C8A24A;
  --sage: #8DA47E;
  --cream: #FBF8F3;
  --cream-2: #F4ECDF;
  --ink: #22303A;
  --muted: #5C6B76;
  --line: #E7DECF;
  --white: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(31, 58, 95, 0.16);
  --shadow-sm: 0 6px 22px rgba(31, 58, 95, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; color: var(--navy); margin: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand-logo { height: 40px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--navy); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.header-inner .btn { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); padding-block: clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 600; color: var(--blue); margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 18px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34ch; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-meta { font-size: .92rem; color: var(--muted); margin: 0; }
.hero-art { display: flex; justify-content: center; }
.cover {
  width: min(100%, 420px); border-radius: 6px;
  box-shadow: var(--shadow); transform: rotate(-2deg);
  transition: transform .3s ease;
}
.cover:hover { transform: rotate(0deg) translateY(-4px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.band-cream { background: var(--cream); }
.band-navy { background: var(--navy); color: #E8EEF5; }
.section-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--blue); margin: 0 0 14px; }
.section-eyebrow.light, .section-title.light { color: #fff; }
.band-navy .section-eyebrow { color: #9DC0E4; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.9rem); max-width: 20ch; margin-bottom: 20px; }
.section-intro { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 0 0 40px; }
.band-navy .section-intro, .band-navy p { color: #C9D6E4; }

/* ---------- Pillars ---------- */
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pillars li { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.pillars p { margin: 0; color: var(--ink); }
.pillar-k { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); font-weight: 600; line-height: 1; }

/* ---------- LUCID grid ---------- */
.lucid-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.lucid-card {
  display: grid; grid-template-columns: 92px 1fr; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--blue);
  border-radius: var(--radius); padding: 24px 30px; box-shadow: var(--shadow-sm);
}
.lucid-letter {
  font-family: var(--serif); font-size: 3.4rem; font-weight: 600; color: var(--blue);
  background: var(--blue-light); width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; line-height: 1;
}
.lucid-card h3 { font-size: 1.5rem; margin-bottom: 4px; color: var(--navy); }
.lucid-card p { margin: 0; color: var(--muted); }
.weeks { font-family: var(--sans); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-left: 10px; }

/* ---------- Inside ---------- */
.inside-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.inside-art { display: flex; justify-content: center; }
.cover-sm { width: min(100%, 320px); border-radius: 6px; box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 38px; font-size: 1.06rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--blue-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232E75B6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Who ---------- */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.who-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.who-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.who-age { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 0 0 14px; }
.who-card p:last-child { margin: 0; color: var(--muted); }

/* ---------- Author ---------- */
.author-grid { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: clamp(32px, 6vw, 64px); align-items: center; }
.author-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.10); box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-role { color: #9DC0E4; font-weight: 500; margin: 0 0 18px; }
.author-sig { font-family: var(--serif); font-size: 1.2rem; color: #fff; font-style: italic; margin-top: 22px; }

/* ---------- Newsletter ---------- */
.news-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 64px); align-items: center; }
.news-copy .section-title { margin-bottom: 16px; }
.news-copy p { color: var(--muted); margin: 0; max-width: 46ch; }
.news-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); display: grid; gap: 14px; }
.news-form input[type="email"],
.news-form input[type="text"] {
  width: 100%; padding: 15px 18px; font-size: 1rem; font-family: var(--sans);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--cream);
}
.news-form input[type="email"]:focus,
.news-form input[type="text"]:focus { border-color: var(--blue); background: #fff; outline: none; }
.news-form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 4px 0 0; font-size: .92rem; font-weight: 500; }
.form-status.is-success { color: #1c7a4a; }
.form-status.is-error { color: #b0402f; }

/* ---------- Buy band ---------- */
.buy-band { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; text-align: center; }
.buy-inner { max-width: 780px; margin-inline: auto; display: grid; gap: 34px; }
.pull-quote { margin: 0; }
.pull-quote p { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; color: #fff; margin: 0 0 16px; }
.pull-quote cite { font-style: normal; color: #9DC0E4; font-size: .95rem; letter-spacing: .04em; }
.buy-actions { display: grid; gap: 12px; justify-items: center; }
.buy-note { color: #B9CBDD; font-size: .95rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-2); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); margin: 0; max-width: 30ch; }
.footer-links, .footer-social { display: grid; gap: 10px; align-content: start; }
.footer-links a, .footer-social a { color: var(--navy); font-weight: 500; }
.footer-legal { border-top: 1px solid var(--line); padding-block: 20px; }
.footer-legal p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid, .inside-grid, .author-grid, .news-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .pillars, .who-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .inside-art { max-width: 260px; margin-inline: auto; }
  .author-photo { max-width: 320px; }
}

@media (max-width: 560px) {
  .lucid-card { grid-template-columns: 1fr; text-align: left; gap: 14px; }
  .lucid-letter { width: 68px; height: 68px; font-size: 2.4rem; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .cover:hover { transform: none; }
}

/* ---------- Resources page ---------- */
.resources-head { padding-top: clamp(40px, 7vw, 84px); }
.resources-head h1.section-title { max-width: none; }
.resource-group { margin-top: 40px; }
.resource-group h2 { font-family: var(--serif); font-weight: 500; color: var(--navy); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 2px; }
.resource-group .rg-sub { color: var(--muted); margin: 0 0 18px; font-size: .96rem; }
.resource-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.resource-item {
  display: flex; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.resource-item:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--shadow); text-decoration: none; }
.resource-item .ico { flex: 0 0 auto; width: 40px; height: 50px; border-radius: 6px; background: var(--blue-light); color: var(--blue); font-size: .6rem; font-weight: 800; letter-spacing: .06em; display: grid; place-items: center; border: 1px solid #cfe1f5; }
.resource-item .ri-body { flex: 1; min-width: 0; }
.resource-item .ri-title { display: block; font-weight: 600; color: var(--navy); font-size: 1rem; }
.resource-item .ri-desc { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.resource-item .ri-dl { flex: 0 0 auto; font-size: .74rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
@media (max-width: 640px) {
  .resource-list { grid-template-columns: 1fr; }
  .resource-item .ri-dl { display: none; }
}
