/* Shining Light Ventures — static site styles. No framework, no build step. */

:root {
  --navy: #0a1424;
  --navy-2: #0f1c32;
  --navy-3: #070f1c;
  --ivory: #f5efe2;
  --ivory-2: #ece4d0;
  --gold: #d4a85c;
  --gold-bright: #e8c87c;
  --gold-ink: #75531a;          /* gold used for text on ivory */
  --ink: #0a1424;
  --ink-soft: #384256;
  --on-navy: #ebe6d8;
  --on-navy-soft: #bdbbb2;
  --rule-navy: rgba(212, 168, 92, 0.28);
  --rule-ivory: rgba(10, 20, 36, 0.18);
  --error: #ffb59e;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);   /* 20px on phones */
  --max: 70rem;                          /* 1120px content width */
  --section-y: clamp(2.75rem, 2rem + 3vw, 4.5rem);   /* 44px on phones, up to 72px on desktop */
  --header-h: 4.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }

section[id] { scroll-margin-top: var(--header-h); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}
.focus :focus-visible,
.connect :focus-visible { outline-color: var(--navy); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold-bright);
  color: var(--navy);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---------- Type ---------- */
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.008em;
}
/* Deliberate wraps: each phrase stays whole; phrases break onto their own lines. */
#focus-title span,
#foundation-title span { display: block; }
.section-title { text-wrap: balance; }

/* ---------- Icons ---------- */
.ico {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin-left: 0.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-bright); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: #16264a; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; }
.btn .ico { transition: transform 0.2s ease; }
.btn:hover .ico { transform: translateY(2px); }
.btn-navy:hover .ico { transform: translate(2px, -2px); }

.link-cta {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-block: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--on-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-cta:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.link-cta .ico { transition: transform 0.2s ease; }
.link-cta:hover .ico { transform: translate(2px, -2px); }

@media (prefers-reduced-motion: reduce) {
  .btn .ico, .link-cta .ico { transition: none; }
  .btn:hover .ico, .link-cta:hover .ico { transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--rule-navy);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--on-navy);
}
.brand-mark { height: 2.9rem; width: auto; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-name span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-top: 0.3rem;
}

.site-nav ul { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--on-navy);
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }

.menu-btn { display: none; }

@media (max-width: 47.99rem) {
  /* Without JavaScript the three links simply wrap beneath the brand. */
  .site-nav { flex-basis: 100%; }
  .site-nav ul { gap: 1.25rem; flex-wrap: wrap; }

  .js .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.75rem;
    padding: 0 0.9rem;
    background: transparent;
    color: var(--on-navy);
    border: 1px solid rgba(235, 230, 216, 0.4);
    border-radius: 2px;
    font: 600 0.875rem/1 var(--sans);
    letter-spacing: 0.06em;
    cursor: pointer;
  }
  .menu-btn-icon, .menu-btn-icon::before {
    display: block;
    width: 1.1rem;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.2s ease;
  }
  .menu-btn-icon { position: relative; box-shadow: 0 5px 0 currentColor; }
  .menu-btn-icon::before { content: ""; position: absolute; top: -5px; }
  .menu-btn[aria-expanded="true"] .menu-btn-icon { box-shadow: none; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn-icon::before { top: 0; transform: rotate(-90deg); }

  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; padding-bottom: 0.75rem; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li + li { border-top: 1px solid var(--rule-navy); }
  .js .site-nav a { width: 100%; min-height: 3.25rem; font-size: 1.0625rem; }
}

@media (max-width: 22.5rem) {
  .brand { gap: 0.6rem; }
  .brand-mark { height: 2.4rem; }
  .brand-name { font-size: 1.05rem; letter-spacing: 0.07em; }
  .brand-name span { letter-spacing: 0.3em; }
  /* Keep the accessible name; show the icon alone on the narrowest screens. */
  .menu-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .js .menu-btn { padding: 0 0.85rem; }
}

/* ---------- Opening ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%);
  padding-block: clamp(2.5rem, 1.75rem + 3vw, 4rem) var(--section-y);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.hero-label {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 8.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--ivory);
  text-wrap: balance;               /* natural wrapping, no forced breaks */
}
.hero-title em {
  display: block;
  margin-top: 0.08em;
  font-style: italic;
  color: var(--gold-bright);
}
.hero-lede {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--on-navy);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  margin-top: 1.75rem;
}

/* The light: a fine double arch and one ray falling onto the star of the original logo.
   Decorative and desktop-only; phones keep the header logo and go straight to Our Focus. */
.hero-arch { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-arch { animation: fade-in 0.6s ease-out both; }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; }
  .hero-title { font-size: clamp(3rem, 4.8vw, 4.1rem); }
  .hero-arch {
    --lw: 14rem;                      /* logo width 224px: the 452px source stays sharp at 2x */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: end;
    width: 18.5rem;
    height: 20rem;                    /* 320px */
    padding: 1.5rem 0 1rem;
    border: 1px solid rgba(212, 168, 92, 0.62);
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, rgba(212, 168, 92, 0.08), rgba(212, 168, 92, 0) 70%);
  }
  .hero-arch::before {
    content: "";
    position: absolute;
    inset: 0.85rem 0.85rem 0;
    border: 1px solid rgba(212, 168, 92, 0.38);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    pointer-events: none;
  }
  .arch-ray {
    flex: 1;
    width: 1px;
    background: linear-gradient(180deg, rgba(232, 200, 124, 0), var(--gold-bright));
  }
  .arch-logo {
    flex: none;
    position: relative;
    width: var(--lw);
    height: auto;
    /* The source has transparent margins: the star's tip sits ~20% of the logo's width below its top
       edge, and the artwork ends ~19% above its bottom edge. Trim both so the lockup fills the arch. */
    margin-top: calc(var(--lw) * -0.2);
    margin-bottom: calc(var(--lw) * -0.19);
  }
}

/* ---------- Our Focus (ivory) ---------- */
.focus {
  background: var(--ivory);
  color: var(--ink);
  padding-block: var(--section-y);
}
.focus .section-title { max-width: 14ch; }
.focus-list { margin-top: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--rule-ivory); }

.area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "num   icon"
    "title title"
    "body  body";
  align-items: start;
  gap: 0.5rem 1.5rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--rule-ivory);
}
.area-num {
  grid-area: num;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--gold-ink);
}
.area-icon {
  grid-area: icon;
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--gold-ink);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.area-title {
  grid-area: title;
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.3rem);
  line-height: 1.1;
}
.area-title span { display: block; }
.area-body { grid-area: body; margin-top: 0.75rem; }
.area-text {
  text-wrap: pretty;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  margin-top: 1rem;
}
.area-links a {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 2.75rem;
  padding-block: 0.15rem;
  color: var(--ink);
  text-decoration: none;
}
.area-links .ch-name {
  display: inline-flex;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  border-bottom: 1px solid var(--gold-ink);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.area-links .ico-ext {
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.45rem;
  color: var(--gold-ink);
  transition: transform 0.2s ease;
}
.area-links .plat {
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.area-links a:hover .ch-name { color: var(--gold-ink); border-bottom-color: var(--ink); }
.area-links a:hover .ico-ext { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) {
  .area-links a:hover .ico-ext { transform: none; }
}

@media (min-width: 48rem) {
  .area {
    grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.25fr) 2.5rem;
    grid-template-areas: "num title body icon";
    gap: 0 clamp(1.5rem, 3vw, 3rem);
    align-items: start;
  }
  .area-num { padding-top: 0.55rem; }
  .area-title { margin-top: 0; }
  .area-body { margin-top: 0.35rem; }
  .area-icon { justify-self: end; margin-top: 0.4rem; }
}

/* ---------- Our Foundation ---------- */
.foundation {
  background: var(--navy);
  padding-block: var(--section-y);
}
.foundation-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.foundation .section-title { color: var(--ivory); }
.foundation-text {
  text-wrap: pretty;
  max-width: 36rem;
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  line-height: 1.75;
  color: var(--on-navy);
}
.verse {
  max-width: 36rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-left: clamp(1.1rem, 2.5vw, 1.75rem);
  border-left: 1px solid var(--gold);
}
.verse blockquote p {
  text-wrap: balance;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ivory);
}
.verse figcaption {
  margin-top: 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

@media (min-width: 60rem) {
  .foundation-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
}

/* ---------- Connect (ivory) ---------- */
.connect {
  background: var(--ivory);
  color: var(--ink);
  padding-block: var(--section-y);
}
.connect-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.connect .section-title { max-width: 13ch; }
.connect-text {
  text-wrap: pretty;
  max-width: 30rem;
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
}
.connect-actions { margin-top: 1.75rem; }
.connect-direct { margin-top: 1rem; font-size: 0.9375rem; color: var(--ink-soft); }
.connect-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  color: var(--ink);
  text-underline-offset: 0.25em;
  text-decoration-color: var(--gold-ink);
  overflow-wrap: anywhere;
}
.connect-direct a:hover { color: var(--gold-ink); }

@media (min-width: 60rem) {
  .connect-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
}

/* ---------- Updates (compact, secondary) ---------- */
.updates {
  background: var(--navy-2);
  padding-block: var(--section-y);
}
.updates-grid { display: grid; gap: 1.75rem; }
.updates-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.15;
  color: var(--ivory);
}
.updates-text { margin-top: 0.5rem; max-width: 26rem; color: var(--on-navy); }

.signup { max-width: 32rem; }
.signup-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-navy);
}
.signup-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.signup-row input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  font: 400 1rem/1.4 var(--sans);       /* 16px+ prevents iOS focus zoom */
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--ivory);
  border-radius: 2px;
}
.signup-row input::placeholder { color: #586277; }
.signup-row input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.signup-row .btn { flex: 0 0 auto; }

.signup-help {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--on-navy-soft);
}
.signup-status {
  min-height: 1.5em;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.signup-status[data-state="success"] { color: var(--gold-bright); }
.signup-status[data-state="error"] { color: var(--error); }
.signup-status[data-state="loading"] { color: var(--on-navy-soft); }

@media (min-width: 60rem) {
  .updates-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-3);
  border-top: 1px solid var(--rule-navy);
  color: var(--on-navy-soft);
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 2rem;
  padding-block: 2rem;
}
.footer-name { color: var(--on-navy); font-weight: 600; letter-spacing: 0.02em; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--gold-bright);
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
.footer-contact a:hover { color: var(--ivory); }

/* ---------- Brief scroll reveal ----------
   Applied only after main.js has initialised it (.reveal-ready), so every section stays visible if the
   script is blocked, slow or throws. Off entirely for reduced motion; always visible in print. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .reveal-ready .reveal.is-in { opacity: 1; transform: none; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}
