/* ============================================================
   JES GOLDEN — site styles
   Brand kit: Swail Studio "Intuitive Brand Kit" (2024)
   Palette: dusk #374059 · cerulean #107B9D · sage #C5E0C9
            ice #E1FAF9 · black · white
   Type: Cardo (serif) · Arimo (sans, letterspaced caps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Arimo:wght@400;500;700&display=swap');

:root {
  --dusk: #374059;
  --cerulean: #107B9D;
  --sage: #C5E0C9;
  --ice: #E1FAF9;
  --ink: #1c2231;
  --paper: #ffffff;
  --paper-soft: #f7fafa;
  --rule: rgba(55, 64, 89, 0.18);
  --serif: 'Cardo', 'Times New Roman', serif;
  --sans: 'Arimo', 'Helvetica Neue', sans-serif;
  --measure: 74ch;
}

* { margin: 0; padding: 0; 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 {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

/* ---------- utility type roles ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cerulean);
}

a { color: var(--cerulean); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cerulean);
  outline-offset: 3px;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.6rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--dusk);
  letter-spacing: 0.01em;
}
.wordmark a { color: inherit; }
.wordmark a:hover { text-decoration: none; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  list-style: none;
}
.nav ul a {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dusk);
}
.nav ul a:hover { color: var(--cerulean); text-decoration: none; }
.nav ul a[aria-current="page"] {
  color: var(--cerulean);
  border-bottom: 2px solid var(--cerulean);
  padding-bottom: 3px;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
  background:
    linear-gradient(180deg, rgba(225,250,249,0.55) 0%, rgba(255,255,255,0) 65%);
}
.hero-inner { max-width: 68rem; margin: 0 auto; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.18;
  color: var(--dusk);
  max-width: 22ch;
}
.hero h1 em { font-style: italic; }
.hero .lede {
  margin-top: 1.6rem;
  max-width: var(--measure);
  font-size: 1.2rem;
  color: var(--ink);
}
.hero .eyebrow { display: block; margin-bottom: 1.4rem; }

/* ---------- routing cards (homepage) ---------- */

.routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.route {
  background: var(--paper);
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem) 2.2rem;
  display: block;
  color: inherit;
  transition: background 160ms ease;
}
.route:hover { background: var(--paper-soft); text-decoration: none; }
.route .eyebrow { display: block; margin-bottom: 0.7rem; }
.route h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--dusk);
  margin-bottom: 0.5rem;
}
.route p { font-size: 1rem; color: var(--ink); max-width: 40ch; }
.route .go {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cerulean);
}

/* ---------- page sections & marginalia signature ---------- */

.section {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 4rem);
}
.section.tint { background: var(--paper-soft); }
.section.dusk {
  background: var(--dusk);
  color: var(--ice);
}
.section.dusk h2, .section.dusk h3 { color: #fff; }
.section.dusk .eyebrow { color: var(--sage); }
.section.dusk a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }

.section-inner { max-width: 68rem; margin: 0 auto; }

/* marginalia: rule + side-note column on wide screens */
.commented {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
@media (min-width: 880px) {
  .commented { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; }
  .commented.wide-photo { grid-template-columns: 21rem minmax(0, 1fr); }
}
.margin-note {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--dusk);
}
.margin-note .eyebrow { display: block; margin-bottom: 0.6rem; }
.section.dusk .commented { border-top-color: rgba(225,250,249,0.25); }
.section.dusk .margin-note { color: var(--sage); }

.body-col > * + * { margin-top: 1.1rem; }
.body-col h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
  color: var(--dusk);
}
.body-col h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dusk);
  margin-top: 2rem;
}
.body-col p, .body-col li { max-width: var(--measure); }
.body-col ul { padding-left: 1.2rem; }
.body-col .meta {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cerulean);
}

.placeholder {
  background: var(--ice);
  border-left: 3px solid var(--cerulean);
  padding: 0.6rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--dusk);
}

/* ---------- offering cards ---------- */

.offerings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.offering {
  border: 1px solid var(--rule);
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--paper);
}
.offering .eyebrow { display: block; margin-bottom: 0.6rem; }
.offering h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dusk);
  margin-bottom: 0.5rem;
}
.offering p { font-size: 0.98rem; }
.offering .meta {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--cerulean);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--dusk);
  padding: 0.85rem 1.6rem;
  border: none;
  cursor: pointer;
  transition: background 160ms ease;
}
.btn:hover { background: var(--cerulean); color: #fff; text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--dusk);
  border: 1px solid var(--dusk);
}
.btn.ghost:hover { border-color: var(--cerulean); color: var(--cerulean); }

/* ---------- book strip ---------- */

.bookstrip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(90deg, var(--ice) 0%, #fff 60%);
}
.bookstrip .section-inner { display: grid; gap: 1rem; }
.bookstrip h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--dusk);
  max-width: 30ch;
}
.bookstrip p { max-width: var(--measure); }

/* ---------- signup ---------- */

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.signup-row input[type="email"] {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  min-width: 260px;
  background: #fff;
  color: var(--ink);
}
.signup-row input:focus-visible { outline: 2px solid var(--cerulean); outline-offset: 1px; }

/* ---------- contact form ---------- */

.form { display: grid; gap: 1.2rem; max-width: 40rem; }
.form label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dusk);
  display: block;
  margin-bottom: 0.4rem;
}
.form input, .form select, .form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--cerulean);
  outline-offset: 1px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem) 3rem;
  background: var(--dusk);
  color: var(--ice);
}
.footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  align-items: baseline;
}
.footer .wordmark { color: #fff; }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; }
.footer nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}
.footer .fine {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: rgba(225,250,249,0.65);
}

/* ---------- testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.testimonial {
  border-top: 2px solid var(--cerulean);
  padding-top: 1.2rem;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
}
.testimonial cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dusk);
}

/* ---------- portrait ---------- */

.portrait {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.92);
}
figure.portrait-frame { margin: 0; }
figure.portrait-frame figcaption {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusk);
}

/* ---------- lineage pull-quote (single quote, narrower than testimonial grid) ---------- */

.pull-quote {
  max-width: var(--measure);
  margin: 1.6rem 0;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
.pull-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--dusk);
}

/* ---------- hero with side photo (writing mentorship) ---------- */

.hero-split {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.hero-split .hero-text { flex: 1 1 420px; }
.hero-split .hero-photo { flex: 0 1 320px; }
.hero-split .hero-photo img { width: 100%; height: auto; display: block; }
@media (max-width: 700px) {
  .hero-split { flex-direction: column-reverse; }
  .hero-split .hero-photo { max-width: 260px; }
}

/* ---------- nav: clean stack on narrow screens ---------- */

@media (max-width: 640px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1.2rem;
    width: 100%;
  }
}

/* ---------- start here (homepage audience routing) ---------- */

.start-here {
  margin: 2.4rem 0 3rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--rule);
  background: rgba(225,250,249,0.35);
}
.start-here > .eyebrow { display: block; margin-bottom: 0.9rem; }
.start-here ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.start-here li {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}
.start-here li strong { color: var(--dusk); }
.start-here li a {
  margin-left: 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cerulean);
  white-space: nowrap;
}
@media (min-width: 700px) {
  .start-here ul { grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; }
}

/* ---------- heading-note: margin eyebrow that functions as a real heading ---------- */

.margin-note.heading-note .eyebrow {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cerulean);
  margin-bottom: 0.8rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--cerulean);
}

/* ---------- signature workshop card: visually separates it from surrounding text ---------- */

.workshop-card {
  margin: 1.6rem 0;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--rule);
  background: rgba(225,250,249,0.3);
}
.workshop-card > * + * { margin-top: 1.1rem; }
.workshop-card h3 { margin-top: 0; }

/* ---------- hero-split wide variant (practice page retreat photo) ---------- */

.hero-split.wide .hero-text { flex: 1 1 380px; }
.hero-split.wide .hero-photo { flex: 1 1 440px; max-width: 480px; }
@media (max-width: 700px) {
  .hero-split.wide .hero-photo { max-width: 320px; }
}

.lineage-close {
  font-style: italic;
  color: var(--dusk);
}
