/* ==========================================================================
   SMARTER Acuity — site stylesheet
   Palette: deep navy, warm cream, restrained bronze
   Port path: these class names map cleanly to Astro + Tailwind later.
   ========================================================================== */

:root {
  --navy: #0b1520;
  --navy-mid: #132333;
  --navy-deep: #071018;
  --navy-soft: #1a2c40;
  --cream: #f6f1e8;
  --cream-dark: #ebe4d6;
  --ivory: #e8dcc8;
  --gold: #c4a46a;
  --gold-bright: #d4b87a;
  --bronze: #8f7348;
  --ink: #1c1914;
  --muted: #5e584e;
  --line: rgba(196, 164, 106, 0.28);
  --line-strong: rgba(196, 164, 106, 0.5);
  --shadow: 0 18px 40px rgba(7, 16, 24, 0.18);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
input { min-width: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap { width: min(100% - 3.5rem, var(--wrap)); }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 21, 32, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 164, 106, 0.18);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ivory);
  min-width: 0;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .brand-name { font-size: 1.2rem; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(232, 220, 200, 0.45);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  border-radius: 2px;
  grid-column: 2;
}

.nav-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle-bars {
  width: 1.05rem;
  height: 0.72rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  background: var(--ivory);
}

.nav {
  display: none;
}

.nav a {
  text-decoration: none;
  color: var(--ivory);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.nav-cta {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-navy {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); }

.mobile-panel {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--navy);
  padding: 1.5rem 1.25rem 2.5rem;
  z-index: 45;
  overflow: auto;
}
.mobile-panel.is-open { display: block; }

.mobile-panel a {
  display: block;
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(196, 164, 106, 0.14);
}

body.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
  }
  .nav-cta { display: inline-flex !important; }
  .mobile-panel { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero — September Architecture
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 21, 32, 0.15) 0%, rgba(11, 21, 32, 0.88) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 47px,
      rgba(196, 164, 106, 0.045) 47px,
      rgba(196, 164, 106, 0.045) 48px
    );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0 3.5rem;
}

.hero-inner > * { min-width: 0; }

.hero-copy { max-width: 38rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}

.eyebrow-ink {
  color: var(--bronze);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 6.4vw, 3.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 1.15rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(232, 220, 200, 0.86);
  margin: 0 0 1.75rem;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.hero-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

input[type="email"] {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  border-radius: 2px;
}

input[type="email"]::placeholder { color: rgba(232, 220, 200, 0.45); }

.form-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: rgba(232, 220, 200, 0.55);
}

.form-status {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--gold-bright);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.15rem;
}

.social-row a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
}
.social-row a:hover { color: var(--gold-bright); opacity: 1; }

.hero-art {
  position: relative;
  min-height: 11rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-art img {
  width: min(100%, 20rem);
  opacity: 0.85;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
}

.hero-caption {
  position: static;
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
}

.hero-art { overflow: hidden; max-width: 100%; }

@media (min-width: 640px) {
  .hero-form .field {
    flex-direction: row;
    align-items: stretch;
  }
  .hero-form .field input { flex: 1; }
  .hero-form .field .btn { white-space: nowrap; }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 5.25rem 0 5.5rem;
    gap: 3rem;
  }
  .hero-art { min-height: 28rem; }
  .hero-art img { width: min(100%, 28rem); }
  .hero-caption {
    position: absolute;
    right: 0;
    bottom: 0.2rem;
    margin: 0;
    text-align: right;
  }
  .lede { font-size: 1.14rem; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 3.75rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.85rem;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark {
  background: var(--navy);
  color: var(--ivory);
}
.section-dark h2 { color: var(--cream); }
.section-dark .section-head p { color: rgba(232, 220, 200, 0.7); }

.section-cream { background: var(--cream); }
.section-paper { background: var(--cream-dark); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   What is — SMARTER pairs
   -------------------------------------------------------------------------- */

.pair-grid {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 2.25rem;
}

.pair {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid rgba(28, 25, 20, 0.08);
  border-left: 3px solid var(--gold);
}

.pair-letter {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.pair-name {
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.pair-hint {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.prose {
  max-width: 42rem;
}
.prose p { margin: 0 0 1rem; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.prose a:hover { color: var(--bronze); }
.prose code {
  font-size: 0.9em;
  background: var(--cream-dark);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0 0 0.85rem;
  color: var(--navy);
}

@media (min-width: 720px) {
  .pair-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .system-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: start;
  }
  .system-layout > * { min-width: 0; }
  .pair-grid { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   Current Focus
   -------------------------------------------------------------------------- */

.focus-card {
  display: grid;
  gap: 1.75rem;
  background: var(--navy);
  color: var(--ivory);
  padding: 1.75rem 1.35rem 2rem;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.focus-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 14rem;
  height: 14rem;
  border: 1px solid rgba(196, 164, 106, 0.18);
  transform: rotate(45deg);
  pointer-events: none;
}

.focus-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.focus-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 0 0 0.85rem;
  font-weight: 600;
  color: var(--cream);
}

.focus-card p { margin: 0 0 1rem; color: rgba(232, 220, 200, 0.82); }
.focus-card p:last-child { margin-bottom: 0; }

.week-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.week {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.week span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.week strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
}

.launch-note {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

.launch-note strong { color: var(--gold-bright); }

@media (min-width: 800px) {
  .focus-card {
    grid-template-columns: 1.25fr 0.9fr;
    padding: 2.5rem 2.4rem;
    align-items: center;
  }
  .week-strip { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Empty elaborations
   -------------------------------------------------------------------------- */

.empty-grid {
  display: grid;
  gap: 0.85rem;
}

.empty-card {
  display: block;
  text-decoration: none;
  padding: 1.2rem 1.15rem 1.3rem;
  background: #fff;
  border: 1px solid rgba(28, 25, 20, 0.08);
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.empty-card:hover { border-color: var(--gold); }

.empty-card .meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.empty-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-weight: 600;
}

.empty-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 800px) {
  .empty-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Ebooks
   -------------------------------------------------------------------------- */

.ebook-grid {
  display: grid;
  gap: 1.1rem;
}

.ebook {
  background: #fff;
  border: 1px solid rgba(28, 25, 20, 0.08);
  padding: 1.6rem 1.35rem 1.7rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ebook-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin: 0 0 0.7rem;
}

.ebook h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-weight: 600;
}

.ebook p { margin: 0 0 1.1rem; color: var(--muted); }
.ebook .btn { margin-top: auto; }

.ebook ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.ebook ul li {
  padding-left: 0.9rem;
  position: relative;
}
.ebook ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 1px;
  background: var(--gold);
}

@media (min-width: 860px) {
  .ebook-grid { grid-template-columns: 1fr 1fr; }
  .ebook { padding: 2rem 1.85rem 2.1rem; }
}

/* --------------------------------------------------------------------------
   Primer / audience
   -------------------------------------------------------------------------- */

.primer {
  display: grid;
  gap: 1.75rem;
}

.primer h2 { color: var(--cream); }

.primer-form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.primer-form input[type="email"] {
  background: rgba(255, 255, 255, 0.05);
}

.primer .form-note { color: rgba(232, 220, 200, 0.55); }

@media (min-width: 720px) {
  .primer-form {
    flex-direction: row;
    align-items: stretch;
  }
  .primer-form input { flex: 1; }
}

@media (min-width: 900px) {
  .primer {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */

.page-hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 2.75rem 0 2.9rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0 0 0.7rem;
  font-weight: 600;
  color: var(--cream);
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: rgba(232, 220, 200, 0.78);
}

.calendar {
  display: grid;
  gap: 0.65rem;
}

.cal-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(28, 25, 20, 0.08);
}
.cal-row:first-child { border-top: 1px solid rgba(28, 25, 20, 0.08); }

.cal-month {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 700;
  padding-top: 0.2rem;
}

.cal-root {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.cal-arcs {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 400;
  margin-top: 0.15rem;
}

.placeholder-page {
  min-height: 50vh;
}

.slot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.slot-meta strong { color: var(--navy); font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--ivory);
  padding: 2.75rem 0 1.75rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  margin: 0.7rem 0 0;
  color: rgba(232, 220, 200, 0.62);
  font-size: 0.95rem;
  max-width: 22rem;
}

.footer-col h2 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ivory);
  padding: 0.22rem 0;
  font-size: 0.95rem;
  opacity: 0.85;
}
.footer-col a:hover { color: var(--gold-bright); opacity: 1; }

.footer-base {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(196, 164, 106, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: rgba(232, 220, 200, 0.55);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  .footer-base {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

/* Social icons (inline svg) */

.icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.muted { color: var(--muted); }

.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;
}
