/* magdalena.ca — shared stylesheet
   Built from the magdalena.ca 2.0 Figma (Web Design - Desktop).
   FONTS: brand faces are Neue Haas Grotesk Display (sans) and Canela (serif wordmark).
   Licenses not yet purchased — stand-in stacks below. To swap after purchase:
   add @font-face blocks and change the two --font-* variables. Nothing else moves. */

:root {
  --bg: #0f0f0f;
  --chalk: #f4f4f2;          /* soft chalk white */
  --grey-light: #d6d8d4;     /* cool light grey */
  --grey-mid: #9ea1a0;       /* mid structural grey */
  --grey-anchor: #6e7271;    /* anchor grey */

  --font-sans: "Neue Haas Grotesk Display", "neue-haas-grotesk-display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Canela", "Times New Roman", Georgia, serif;

  --content-w: 1152px;
  --gutter: 24px;
  --section-pad: 120px;
  --col-gap: 96px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--chalk);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
.h4 { font-weight: 500; font-size: 24px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--chalk); }
.h5 { font-weight: 400; font-size: 17px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--chalk); }
.h6 { font-weight: 400; font-size: 16px; line-height: 1; letter-spacing: 0.3em; text-transform: uppercase; color: var(--chalk); }
.eyebrow { font-weight: 400; font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey-mid); }
.body-copy { color: var(--grey-light); }
.body-copy p + p { margin-top: 1.5em; }
.muted { color: var(--grey-mid); }

.serif { font-family: var(--font-serif); font-weight: 400; }

/* ---------- layout ---------- */
.container { width: min(var(--content-w), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section-pad); }
.section--flush-top { padding-top: 0; }
/* adjacent sections share one 120px gap instead of stacking two paddings */
.section + .section { padding-top: 0; }

.two-col { display: grid; grid-template-columns: 564px 1fr; gap: var(--col-gap); align-items: start; }
.two-col--text-first { grid-template-columns: 1fr 564px; }
.two-col > .col-media img { width: 100%; height: 407px; object-fit: cover; }
.two-col > .col-media--tall img { height: 100%; min-height: 500px; }

.stack-96 { display: flex; flex-direction: column; gap: 96px; align-items: flex-start; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; align-items: flex-start; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.rule { border: 0; border-top: 1px solid var(--grey-anchor); width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 24px; border: 1.5px solid var(--chalk); border-radius: 4px;
  font-family: var(--font-sans); font-weight: 400; font-size: 17px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-light);
  background: transparent; cursor: pointer;
  transition: background-color .5s ease, color .5s ease;
}
.btn:hover { background: var(--chalk); color: var(--bg); }
.btn--dark { border-color: var(--bg); color: var(--bg); }
.btn--dark:hover { background: var(--bg); color: var(--chalk); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(110, 114, 113, 0.25);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 51px; }
.site-header a {
  font-weight: 300; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey-anchor); padding: 14px 20px; transition: color .2s ease;
}
.site-header a:hover, .site-header a[aria-current="page"] { color: var(--chalk); }
.nav-toggle { display: none; }

/* work-with-me dropdown */
.nav-wwm { position: relative; }
.nav-wwm > a { display: inline-block; }
.nav-wwm-menu {
  display: none; position: absolute; top: 100%; right: 0; min-width: 220px;
  background: var(--bg); border: 1px solid rgba(110,114,113,.35); border-radius: 4px;
  padding: 8px 0; flex-direction: column;
}
.nav-wwm:hover .nav-wwm-menu, .nav-wwm:focus-within .nav-wwm-menu { display: flex; }
.nav-wwm-menu a { padding: 12px 20px; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(900px, 100svh); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 84px 24px 54px; text-align: center; }
.wordmark { font-family: var(--font-serif); color: var(--chalk); line-height: .95; }
.wordmark .wm-1 { display: block; font-size: clamp(44px, 6.6vw, 95px); letter-spacing: 0.1em; }
.wordmark .wm-2 { display: block; font-size: clamp(58px, 8.8vw, 127px); letter-spacing: -0.02em; }
.hero-sub { font-weight: 400; font-size: 20px; line-height: 1.5; letter-spacing: 0.3em; text-transform: uppercase; color: var(--chalk); }

/* page masthead (interior pages) */
.masthead { padding: 96px 0 64px; text-align: center; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.masthead .serif { font-size: clamp(40px, 5vw, 64px); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 28px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field > label { font-weight: 400; font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--chalk); }
.form-field .hint { font-size: 14px; color: var(--grey-mid); letter-spacing: 0.02em; }
.field {
  width: 100%; padding: 16px 20px;
  background: transparent; border: 1px solid var(--grey-anchor); border-radius: 4px;
  color: var(--chalk); font-family: var(--font-sans); font-weight: 300; font-size: 17px; letter-spacing: 0.02em;
}
.field::placeholder { color: var(--grey-anchor); }
.field:focus { outline: none; border-color: var(--grey-light); }
textarea.field { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.choice { display: flex; align-items: center; gap: 10px; color: var(--grey-light); font-size: 17px; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--chalk); }
.checklist { display: flex; flex-direction: column; gap: 12px; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { padding: 120px 0 96px; display: flex; flex-direction: column; gap: 96px; }
.newsletter { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.newsletter-head { text-align: center; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.newsletter-form { display: flex; gap: 24px; width: 100%; }
.newsletter-form .field { flex: 1; }
.footer-bottom { display: flex; flex-direction: column; gap: 38px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-row p, .footer-row a { font-weight: 300; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-mid); }
.social { display: flex; gap: 27px; align-items: center; }
.social img { width: 31px; height: 31px; }

/* ---------- cal embed ---------- */
.cal-embed { width: 100%; min-height: 640px; }

/* ---------- helpers ---------- */
.center { text-align: center; align-items: center; }
.in-dev { padding: 160px 0; text-align: center; display: flex; flex-direction: column; gap: 32px; align-items: center; justify-content: center; }
.in-dev-label { font-weight: 400; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-mid); }

/* ---------- light pages ---------- */
/* The Library pages (About, Courses, Essays, Alyta) run light per the Figma;
   the Temple pages (Home, the work-with-me doors) stay dark. The grey ramp
   inverts: ink where chalk was, faint grey where anchor was. */
body.light {
  --bg: #f4f4f2;
  --chalk: #0f0f0f;
  --grey-light: #3f4241;
  --grey-mid: #6e7271;
  --grey-anchor: #9ea1a0;
}
body.light .social img { filter: invert(1); }

/* ---------- responsive ---------- */
.nav-check { display: none; }
.wwm-toggle { display: none; }
@media (max-width: 960px) {
  :root { --section-pad: 72px; --col-gap: 48px; }
  .two-col, .two-col--text-first { grid-template-columns: 1fr; }
  .two-col > .col-media { order: -1; }
  .newsletter-form { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; text-align: center; }

  /* mobile nav: a slim bar with a centered three-line toggle; the menu drops
     down on tap. No WORK WITH ME parent on mobile — the three doors are items. */
  .site-header .container { min-height: 51px; height: auto; flex-wrap: wrap; justify-content: center; }
  .site-header .container > a, .site-header .nav-wwm { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 18px 24px; cursor: pointer; }
  .nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--chalk); }
  .nav-check:checked ~ a { display: block; width: 100%; text-align: center; padding: 11px 12px; font-size: 15px; }
  .nav-check:checked ~ .nav-wwm { display: block; width: 100%; }
  .nav-wwm > a { display: none !important; }
  /* nested WORK WITH ME dropdown inside the mobile menu (Hannah's call) */
  .nav-wwm .wwm-toggle { display: block; width: 100%; text-align: center; padding: 11px 12px; font-size: 15px; cursor: pointer; color: var(--grey-anchor); font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; }
  .nav-wwm .nav-wwm-menu { display: none; }
  .wwm-check:checked ~ .nav-wwm-menu { display: flex; position: static; border: 0; background: transparent; flex-direction: column; padding: 0 0 8px; min-width: 0; }
  .wwm-check:checked ~ .nav-wwm-menu a { width: 100%; text-align: center; padding: 11px 12px; font-size: 15px; color: var(--grey-mid); }
  .wwm-check:checked ~ .wwm-toggle, .nav-wwm .wwm-toggle:hover { color: var(--chalk); }

  /* mobile hero: half-height crop framed to the face (Hannah's call) */
  .hero { height: min(52svh, 520px); }
  .hero > img { object-position: 50% 15%; }
  .hero-inner { padding: 36px 20px 28px; }
}
