@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/sofia-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/sofia-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Wix Madefor Text'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/wix-madefor-text-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Wix Madefor Text'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/wix-madefor-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Wix Madefor Text'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/wix-madefor-text-latin-600-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #ffffff;
  --fg-light-base-body: #25212b;
  --fg-light-base-heading: #25212b;
  --fg-light-base-muted: #5c5667;
  --fg-light-base-link: #6d3b8c;
  --fg-light-base-inverse: #3b2f47;
  --bg-light-card: #f8f6fa;
  --fg-light-card-body: #25212b;
  --fg-light-card-heading: #25212b;
  --fg-light-card-muted: #5c5667;
  --fg-light-card-link: #6d3b8c;
  --fg-light-card-inverse: #3b2f47;
  --bg-light-elevated: #f0edf4;
  --fg-light-elevated-body: #25212b;
  --fg-light-elevated-heading: #25212b;
  --fg-light-elevated-muted: #5c5667;
  --fg-light-elevated-link: #6d3b8c;
  --fg-light-elevated-inverse: #3b2f47;
  --brand-light-accent: #6d3b8c;
  --brand-light-accent-hover: #55296e;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #6d3b8c;
  --border-light-default: #837c8e;
  --border-light-subtle: #e4e0ea;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

:root {
  --measure: 38rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --rule: 1px solid var(--border-light-subtle);
  --violet: var(--brand-light-accent);
  --font-head: 'Sofia Sans', 'Segoe UI', Arial, sans-serif;
  --font-text: 'Wix Madefor Text', 'Helvetica Neue', Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--fg-heading);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.6rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem); margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }

p { margin: 0 0 1.1rem; }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* Header: static, inline text-link bar beside mark and wordmark */
.site-header { position: relative; border-bottom: var(--rule); }
.site-header-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand .site-logo { width: 1.75rem; height: 1.75rem; }
.wordmark { line-height: 1.2; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.01em; }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.site-nav a { text-decoration: none; font-family: var(--font-head); font-size: 1.05rem; padding: 0.35rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--violet); }

.site-menu > summary {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.2rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--fg-heading);
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -0.35rem; }
.menu-icon::after { top: 0.35rem; }
.site-menu[open] .menu-icon { background: transparent; }
.site-menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.site-menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.site-menu[open] > summary { color: var(--violet); }
.site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 10;
  margin: 0;
  padding: 0.5rem var(--gutter) 1.5rem;
  list-style: none;
  counter-reset: menu;
  background: var(--bg-light-base);
  border-bottom: 1px solid var(--border-light-default);
}
.site-menu > ul > li { counter-increment: menu; display: flex; align-items: baseline; gap: 1rem; border-bottom: var(--rule); }
.site-menu > ul > li::before { content: counter(menu); width: 1.25rem; font-family: var(--font-head); font-size: 0.95rem; color: var(--violet); }
.site-menu > ul a { flex: 1; display: block; padding: 0.9rem 0; text-decoration: none; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; line-height: 1.25; }
.site-menu ul ul { list-style: none; padding-left: 1rem; }

@media (min-width: 52rem) {
  .site-nav { display: block; }
  .site-menu { display: none; }
}

/* Page frame and breadcrumbs */
.page-frame { flex: 1; width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }
.breadcrumbs { margin-top: 1.5rem; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--fg-muted); }

main { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
main:focus { outline: none; }

/* Shared reading column */
.prose { max-width: var(--measure); }
.prose figure { margin: 0 0 2rem; }
.prose img { display: block; width: 100%; height: auto; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--violet); }
.prose blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border: var(--rule);
  border-left: 3px solid var(--violet);
}

.photo-hero img { width: 100%; height: auto; object-fit: cover; }

/* Home: split opening, ruled index, then reading column */
.home { display: flex; flex-direction: column; }
.home-body { display: contents; }
.home .photo-hero { order: -1; margin: 0 0 1.75rem; }
.home .photo-hero img { aspect-ratio: 4 / 3; }
.home-cover h1 { max-width: 14ch; }
.standfirst .display-line { font-size: 1.15rem; line-height: 1.55; max-width: 34rem; color: var(--fg-muted); margin-bottom: 0.6rem; }
.standfirst .display-line:first-child { color: var(--fg-body); }

.starter-index { margin: 2.5rem 0 1rem; }
.starter-index ol { list-style: none; margin: 0; padding: 0; counter-reset: idx; border-top: 1px solid var(--border-light-default); }
.starter-index li {
  counter-increment: idx;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.15rem 1rem;
  padding: 1rem 0;
  border-bottom: var(--rule);
}
.starter-index li::before {
  content: counter(idx);
  grid-row: span 2;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--violet);
  line-height: 1.5;
}
.starter-index a { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; text-decoration: none; line-height: 1.3; }
.starter-index a:hover { text-decoration: underline; }
.index-note { font-size: 0.95rem; }

.home-body > p, .home-body > h2, .home-body > ul { max-width: var(--measure); }
.home-body > h2 { padding-top: 1.75rem; border-top: var(--rule); }

@media (min-width: 56rem) {
  .home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
  .home > *, .home-body > * { grid-column: 2; }
  .home .photo-hero { grid-column: 1; grid-row: 1 / span 2; margin: 0; align-self: stretch; }
  .home .photo-hero img { aspect-ratio: auto; height: 100%; min-height: 34rem; }
  .home-cover { grid-row: 1; align-self: end; padding-top: 2rem; }
  .starter-index { grid-row: 2; align-self: end; margin: 2rem 0 0; }
  .home-body > p:first-of-type { margin-top: 3.5rem; }
}

/* Topic hub: square crop beside the title, explainer cards in a grid */
.hub { display: flex; flex-direction: column; }
.hub-body { display: contents; }
.hub .photo-hero { order: -1; margin: 0 0 1.5rem; max-width: 22rem; }
.hub .photo-hero img { aspect-ratio: 1 / 1; object-fit: cover; }
.hub-body > p, .hub-body > h2 { max-width: var(--measure); }
.hub-body > ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 2rem 1.75rem;
  max-width: none;
}
.hub-body > ul > li {
  margin: 0;
  padding-top: 1rem;
  border-top: 2px solid var(--violet);
  font-size: 0.97rem;
  line-height: 1.55;
}
.hub-body > ul > li > a:first-child {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.hub-body > ul > li > a:first-child:hover { text-decoration: underline; }

@media (min-width: 52rem) {
  .hub {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .hub > *, .hub-body > * { grid-column: 2; }
  .hub .photo-hero { grid-column: 1; grid-row: 1 / span 3; margin: 0; max-width: none; }
  .hub-head { grid-row: 1; }
  .hub-body > ul { grid-column: 1 / -1; margin-top: 2.5rem; }
}

/* Article: capped measure, numbered section heads */
.article { max-width: var(--measure); margin: 0 auto; }
.article .photo-hero { margin: 0 0 2rem; }
.article .photo-hero img { aspect-ratio: 16 / 9; }
.article-body { counter-reset: section; }
.article-body > h2 {
  counter-increment: section;
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: baseline;
  padding-top: 1.5rem;
  border-top: var(--rule);
}
.article-body > h2::before {
  content: counter(section);
  font-size: 1rem;
  font-weight: 400;
  color: var(--violet);
}

/* About: editor's letter with a pull quote between violet rules */
.letter { max-width: var(--measure); margin: 0 auto; }
.letter .photo-hero { margin: 0 0 2rem; }
.letter .photo-hero img { aspect-ratio: 3 / 2; }
.letter-body > p:first-of-type {
  max-width: 30rem;
  margin: 0 0 2.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--violet);
  border-bottom: 1px solid var(--violet);
  font-size: 1.2rem;
  line-height: 1.55;
  font-style: italic;
}

/* Contact: full-width title, open ruled form left, narrow note column right */
.contact {
  display: grid;
  grid-template-areas: "head" "note" "form";
  gap: 2rem;
}
.contact-head { grid-area: head; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-light-default); }
.contact-head h1 { margin: 0; max-width: 18ch; }
.contact-note { grid-area: note; font-size: 1rem; }
.contact-note h2 { font-size: 1.15rem; margin-top: 2rem; }
.contact .photo-hero { margin: 0 0 1.5rem; }
.contact .photo-hero img { aspect-ratio: 4 / 5; max-height: 22rem; }
.contact-form {
  grid-area: form;
  align-self: start;
  counter-reset: field;
  display: grid;
  border-bottom: var(--rule);
}
.field {
  counter-increment: field;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: var(--rule);
}
.field::before {
  content: counter(field, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--violet);
}
.field label { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 0;
  font: inherit;
  color: var(--fg-body);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-light-default);
  border-radius: 0;
}
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--brand-light-accent); }
.form-submit {
  justify-self: start;
  margin: 1.5rem 0 1.75rem 3rem;
  min-height: 3rem;
  padding: 0.7rem 1.8rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-light-on-accent);
  background: var(--brand-light-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.form-submit:hover { background: var(--brand-light-accent-hover); }
.form-submit:focus-visible { outline: 2px solid var(--brand-light-accent); outline-offset: 3px; }

@media (min-width: 52rem) {
  .contact {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas: "head head" "form note";
    column-gap: clamp(3rem, 6vw, 6rem);
    row-gap: 2.5rem;
  }
  .field { grid-template-columns: 2.25rem 9rem 1fr; }
  .field::before { grid-row: auto; }
}

/* Thank you: centered column, violet check, two quiet links */
.thanks { max-width: 34rem; margin: 0 auto; text-align: center; }
.check-glyph { display: block; margin: 0 auto 1.25rem; width: 3rem; height: 3rem; color: var(--violet); }
.thanks-body { text-align: left; margin: 0 auto; }
.thanks-body h2 { font-size: 1.25rem; }
.thanks-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; margin-top: 2rem; padding-top: 1.25rem; border-top: var(--rule); }

/* Footer */
.site-footer { border-top: var(--rule); }
.site-footer-inner { max-width: 76rem; margin: 0 auto; padding: 2rem var(--gutter) 2.5rem; display: grid; gap: 0.35rem; }
.footer-name { margin: 0; font-family: var(--font-head); font-weight: 600; }
.footer-line { margin: 0; font-size: 0.92rem; max-width: 40rem; }

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