/* Foundation Health Group, v2 "Porch ceiling"
   White, navy, butter yellow, with an ochre cornerstone. Sections are set apart by a course line. Young Serif headlines, Hanken Grotesk text.
   Faith is a whisper: one arch, a cornerstone mark, a verse reference in the footer. */

:root {
  --white: #FFFFFF;
  --chalk: #F7F8F5;
  --navy: #1B2A47;
  --navy-soft: #45526B;
  --sky: #E6ECF4;
  --butter: #F3D36E;
  --butter-deep: #E2B947;
  --ochre: #B8701A;
  --line: #DDE3E4;

  --head: "Young Serif", Georgia, serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --shell: 1120px;
  --gutter: clamp(20px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--text);
  font-size: clamp(17px, 1rem + .2vw, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- brand mark: a cornerstone, the first stone laid ---------- */
.mark { display: block; width: 26px; height: 26px; flex: none; }
.mark__corner { fill: var(--ochre); }
.foot .mark__corner { fill: var(--butter); }

/* ---------- nav ---------- */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.nav {
  max-width: var(--shell); margin: 0 auto; padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy);
  font-family: var(--head); font-size: 21px; line-height: 1;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 15.5px; font-weight: 500; text-decoration: none; color: var(--navy); }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--ochre); text-underline-offset: 6px; }
.nav__portal { font-weight: 600 !important; }
.nav__toggle { display: none; background: none; border: 0; padding: 6px; color: var(--navy); cursor: pointer; }
.nav__bar { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .25s, opacity .2s; transform-origin: 12px 12px; }

@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); padding: 4px var(--gutter) 22px;
    border-bottom: 2px solid var(--navy);
    display: none;
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a { font-size: 18px; padding: 11px 0; width: 100%; }
  .nav--open .nav__bar--1 { transform: translateY(5px) rotate(45deg); }
  .nav--open .nav__bar--2 { opacity: 0; }
  .nav--open .nav__bar--3 { transform: translateY(-5px) rotate(-45deg); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 16.5px;
  padding: 14px 22px; border-radius: 5px;
  border: 2px solid var(--navy);
  transition: background .2s, color .2s;
}
.btn--solid { background: var(--navy); color: var(--white); }
.btn--solid:hover { background: var(--white); color: var(--navy); }
.btn--sun { background: var(--butter); color: var(--navy); border-color: var(--butter); }
.btn--sun:hover { background: var(--white); border-color: var(--white); }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--navy); }

/* ---------- frames ---------- */
.frame { position: relative; margin: 0; overflow: hidden; background: var(--chalk); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.frame--arch { border-radius: 999px 999px 0 0; }
.frame--box { border-radius: 4px; }
.ratio-2x3 { aspect-ratio: 2 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--sky { background: var(--sky); }
.section--sky .frame { background: var(--white); }
.h1 { font-size: clamp(46px, 2.4rem + 4vw, 100px); }
.h2 { font-size: clamp(34px, 1.6rem + 2.4vw, 60px); margin-bottom: 26px; }
.h3 { font-size: clamp(24px, 1.2rem + .8vw, 30px); margin-bottom: 10px; }
.big { font-size: 1.22em; line-height: 1.5; }
.measure { max-width: 34em; }
.muted { color: var(--navy-soft); }
.small { font-size: 14.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.two--wide-left { grid-template-columns: 1.2fr .8fr; }

/* ---------- course line: where two white sections meet, a rule with one ochre stone set at its start ---------- */
.hero + .section:not(.section--navy):not(.section--sky),
.section:not(.section--navy):not(.section--sky) + .section:not(.section--navy):not(.section--sky) { position: relative; }
.hero + .section:not(.section--navy):not(.section--sky)::before,
.section:not(.section--navy):not(.section--sky) + .section:not(.section--navy):not(.section--sky)::before {
  content: ""; position: absolute; top: 0; height: 1px; background: var(--line);
  left: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
}
.hero + .section:not(.section--navy):not(.section--sky)::after,
.section:not(.section--navy):not(.section--sky) + .section:not(.section--navy):not(.section--sky)::after {
  content: ""; position: absolute; top: -5px; width: 34px; height: 11px; border-radius: 2px;
  background: var(--ochre);
  left: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
}

/* ---------- hero ---------- */
.hero { background: var(--white); padding: clamp(44px, 5vw, 72px) 0 clamp(72px, 9vw, 128px); }
.hero .h1 { margin-bottom: 28px; font-size: clamp(46px, 2.2rem + 3.4vw, 88px); }
.hero .big { max-width: 24em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__where { margin-top: 30px; font-size: 15px; color: var(--navy-soft); }
.hero__portrait { padding: 11px; }
.hero__portrait .frame { aspect-ratio: 4 / 5; outline: 1px solid rgba(27, 42, 71, .3); outline-offset: 10px; overflow: visible; }
.hero__portrait .frame img { border-radius: inherit; }
.hero__portrait img { object-position: 50% 30%; }
.hero__portrait figcaption { margin-top: 24px; font-size: 14px; color: var(--navy-soft); }

/* ---------- time (navy) ---------- */
.section--navy .h2 { color: var(--butter); }
.section--navy .big { color: rgba(255, 255, 255, .9); }
.study { border-top: 2px solid rgba(255, 255, 255, .18); padding-top: 22px; margin-top: 34px; font-size: 15.5px; color: rgba(255, 255, 255, .72); }
.study a { color: var(--white); }

/* ---------- list of what I see people for ---------- */
.checks { list-style: none; margin: 8px 0 26px; padding: 0; columns: 2; column-gap: 40px; }
.checks li {
  break-inside: avoid; padding: 12px 0 12px 30px; position: relative;
  border-bottom: 1px solid var(--line);
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 14px; height: 7px; border-radius: 14px 14px 0 0; background: var(--butter-deep);
}

/* ---------- about ---------- */
.facts { margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; font-size: 16px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--navy-soft); }
.note { border-left: 4px solid var(--butter); padding: 4px 0 4px 20px; }

/* ---------- inner pages ---------- */
.hero .measure .big { max-width: none; }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px clamp(36px, 5vw, 72px); margin-top: 44px; }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--4 { grid-template-columns: repeat(4, 1fr); gap: 34px 36px; }
.cols > div { border-top: 1px solid var(--line); padding-top: 22px; }
.cols p { margin: 0; color: var(--navy-soft); }
.section--navy .cols > div { border-top-color: rgba(255, 255, 255, .18); }
.section--navy .cols .h3 { color: var(--white); }
.section--navy .cols p, .section--navy .small { color: rgba(255, 255, 255, .72); }
.cols--4 .h3 { font-size: 23px; }

/* services list: name on the left, detail on the right */
.rows { margin-top: 12px; border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: .8fr 1.5fr; gap: 18px clamp(36px, 6vw, 88px); padding: 34px 0; border-top: 1px solid var(--line); }
.row .h3 { margin: 0; }
.row p:last-child { margin-bottom: 0; }

/* membership price card */
.price { border: 1px solid var(--line); border-top: 6px solid var(--butter); border-radius: 6px; padding: clamp(26px, 3vw, 38px); }
.price__num { font-family: var(--head); font-size: clamp(64px, 3rem + 3vw, 92px); line-height: 1; }
.price__unit { font-size: 20px; color: var(--navy-soft); margin-left: 6px; }
.price .checks { columns: 1; margin: 22px 0 28px; }

/* faq */
.faq { max-width: 50em; margin-top: 18px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 44px 22px 0; font-family: var(--head); font-size: clamp(21px, 1.1rem + .5vw, 25px); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--text); font-size: 28px; font-weight: 400; color: var(--ochre); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--navy-soft); }
.faq details > :last-child { margin-bottom: 26px; }

/* contact */
.ways { border-bottom: 1px solid var(--line); }
.way { border-top: 1px solid var(--line); padding: 24px 0; }
.way__label { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.way__link { font-family: var(--head); font-size: clamp(20px, 1rem + .7vw, 25px); text-decoration: none; overflow-wrap: anywhere; }
.way__link:hover { text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 6px; }
.way p:last-child { margin: 6px 0 0; color: var(--navy-soft); font-size: 16px; }
.alert { border-left: 4px solid var(--ochre); padding: 4px 0 4px 20px; font-size: 16px; }

/* insights index */
.entries { margin-top: 12px; border-bottom: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 170px 1fr; gap: 8px 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.entry__date { font-size: 15px; color: var(--navy-soft); padding-top: 6px; }
.entry .h3 a { text-decoration: none; }
.entry .h3 a:hover { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.entry p { margin: 0; color: var(--navy-soft); max-width: 36em; }
.entry--soon { opacity: .55; }

/* essay + legal text */
.article, .legal { max-width: 720px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(72px, 9vw, 120px); }
.article .meta, .legal .meta { font-size: 15px; color: var(--navy-soft); margin-bottom: 18px; }
.article h1 { font-size: clamp(40px, 1.8rem + 2.6vw, 66px); margin-bottom: 36px; }
.article h2 { font-size: clamp(27px, 1.3rem + 1vw, 34px); margin: 1.8em 0 .55em; }
.article p, .article li { line-height: 1.7; }
.article li { margin-bottom: .5em; }
.article blockquote { margin: 36px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--butter); font-family: var(--head); font-size: clamp(22px, 1.1rem + .6vw, 27px); line-height: 1.35; }
.article__back { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal h1 { font-size: clamp(38px, 1.7rem + 2.4vw, 60px); margin-bottom: 28px; }
.legal h2 { font-size: 25px; margin: 2em 0 .5em; }
.legal h3 { font-size: 19px; margin: 1.6em 0 .4em; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; color: var(--navy-soft); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: .4em; }
.legal a { text-decoration-color: var(--ochre); text-underline-offset: 3px; }
.legal__notice { font-size: 15px; font-weight: 600; color: var(--navy) !important; background: var(--chalk); border-left: 4px solid var(--butter-deep); padding: 16px 20px; margin: 0 0 26px; }
.legal__draft { background: var(--chalk); border: 1px solid var(--line); border-radius: 4px; padding: 18px 22px; margin-bottom: 28px; font-size: 15px; }
.legal__actions { margin: 0 0 40px; }
.legal__btn { font: 600 14.5px var(--text); color: var(--navy); background: var(--white); border: 2px solid var(--navy); border-radius: 5px; padding: 9px 16px; cursor: pointer; }
.legal__btn:hover { background: var(--navy); color: var(--white); }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 64px 0 30px; font-size: 15px; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.foot .nav__brand { color: var(--white); margin-bottom: 16px; }
.foot__brand p { max-width: 32ch; }
.foot h5 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--butter); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot__notice { margin: 44px 0 0; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .15); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.foot__notice strong { color: var(--white); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 22px; font-size: 13.5px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
/* the whisper */
.foot__verse { color: rgba(255, 255, 255, .34); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .two, .two--wide-left { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 420px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .flip-mobile > :first-child { order: 2; }
}
@media (max-width: 900px) {
  .cols--4 { grid-template-columns: 1fr 1fr; }
  .cols--3 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; }
  .entry__date { padding-top: 0; }
}
@media (max-width: 600px) {
  .checks { columns: 1; }
  .cols, .cols--4 { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
}

/* ---------- print (legal pages) ---------- */
@media print {
  .top, .foot, .legal__actions, .legal__draft { display: none !important; }
  body { color: #000; font-size: 10.5pt; }
  .legal { max-width: none; padding: 0; }
  .legal h1 { font-size: 26pt; }
  .legal h2 { font-size: 14pt; margin: 16pt 0 5pt; page-break-after: avoid; }
  .legal h3 { font-size: 12pt; margin: 10pt 0 4pt; page-break-after: avoid; }
  .legal p, .legal li, .legal .meta, .legal__notice { color: #000 !important; font-size: 10.5pt; line-height: 1.45; }
  .legal__notice { background: none; border-left-color: #000; }
  a { color: #000; }
  .legal a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
