/* SRL Consulting · Steven Lipp
   Design system: "Margin Notes, in Sage Moss".
   Every colour, size and spacing value below comes from the design system files.
   Newsreader for reading. Antic for doing (buttons, nav, labels). Two families only. */

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --bg: #F8F7F4;           /* page background */
  --surface: #FFFFFF;      /* cards */
  --muted: #E8E6E1;        /* image placeholders, quiet fills, header hairline */
  --rule: #DCD9D2;         /* hairlines between list rows */
  --ink: #1A1F2E;          /* headings, body */
  --ink-soft: #3A3F4B;     /* supporting paragraphs */
  --muted-text: #6B7280;   /* captions, notes */
  --sage: #7C9082;         /* the line, focus ring. Not for text. */
  --sage-deep: #4F6154;    /* buttons, margin notes, links */
  --sage-hover: #3F4F44;   /* button hover */
  --sage-press: #34423A;   /* button pressed */
  --secondary: #CED4BF;    /* reserve: quiet highlight (unused) */
  --error: #C73E3A;        /* errors only (unused) */

  /* type */
  --serif: Newsreader, Georgia, serif;
  --sans: Antic, sans-serif;
  --mono: ui-monospace, Consolas, "Courier New", monospace;

  /* layout */
  --side: 20px;            /* mobile gutter; 72px from 860px up */
  --radius: 6px;
  --radius-tag: 3px;
  --shadow-card: 0 1px 2px rgba(26, 31, 46, .04);
  --fade: 400ms ease-out;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 21px/1.65 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

/* keeps the hidden attribute working on elements that set their own display */
[hidden] { display: none !important; }

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

img { max-width: 100%; }

a {
  color: var(--sage-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--fade);
}
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 860px) {
  :root { --side: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Buttons (primary: booking only) ---------- */
.btn {
  display: inline-block;
  background: var(--sage-deep);
  color: #fff;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: var(--radius);
  font: 400 18px var(--sans);
  transition: background-color var(--fade), color var(--fade);
}
.btn:hover { background: var(--sage-hover); color: #fff; }
.btn:active { background: var(--sage-press); color: #fff; }
.btn--small { padding: 11px 18px; font-size: 16px; }
.btn--large { padding: 17px 30px; font-size: 19px; }

/* ---------- Text link ---------- */
.link { font: 400 17px var(--sans); }
.link--self-start { align-self: flex-start; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--muted);
  padding: 16px var(--side);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
}
@media (min-width: 1120px) {
  /* brand lines up with the page line: 260px margin column + 48px */
  .site-header__inner { padding-left: 308px; }
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}
.brand:hover { color: var(--ink); }
.brand__name { display: block; font: 500 23px/1.15 var(--serif); }
.brand__sub { font: 400 14px/1.3 var(--sans); color: var(--muted-text); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font: 400 16px var(--sans);
}
.nav-link {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--fade);
}
.nav-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-link[aria-current="page"] { border-bottom-color: var(--sage); }

/* ---------- Page rows: margin note | the line | text ---------- */
.page { padding: 0 var(--side); }

.row { display: flex; flex-direction: column; }

.row__margin {
  padding: 56px 0 10px 24px;
  font: italic 400 19px/1.4 var(--serif);
  color: var(--sage-deep);
}
.row__margin--hero  { padding: 40px 0 10px 24px; }
.row__margin--video { padding: 40px 0 10px 24px; }
.row__margin--label {
  font: 400 15px/1.5 var(--sans);
  color: var(--muted-text);
}
.row__margin--empty { display: none; }

.row__main {
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--sage);
  padding: 0 0 0 24px;
}
.row__main--hero  { padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 24px; }
.row__main--video { padding: 8px 0 0 24px; }
.row__main--flush { padding: 0; }
.row__main--close .btn { margin-top: 10px; }
.row__main--close {
  padding: 72px 0 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.row > .fork,
.row > .join { flex: 1; min-width: 0; }

@media (min-width: 860px) {
  .row { flex-direction: row; }

  .row__margin {
    flex: 0 0 260px;
    text-align: right;
    padding: 104px 32px 0 0;
  }
  .row__margin--hero  { padding: 96px 32px 0 0; }
  .row__margin--video {
    padding: 56px 32px 4px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .row__margin--label {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .row__margin--empty { display: block; padding: 0; }

  .row__main { padding: 104px 0 0 48px; }
  .row__main--hero  { padding: 88px 0 0 48px; }
  .row__main--video { padding: 48px 0 0 48px; }
  .row__main--flush { padding: 0; }
  .row__main--close { padding: 120px 0 104px 48px; }
}

/* ---------- Type ---------- */
.display {
  font: 400 clamp(40px, 6vw, 62px)/1.06 var(--serif);
  letter-spacing: -.015em;
}
.display--narrow { max-width: 15ch; text-wrap: balance; }

.h2 { font: 400 clamp(32px, 4vw, 42px)/1.12 var(--serif); }
.h2--close { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; }
.h3 { font: 400 30px/1.2 var(--serif); }
.h4 { font: 500 26px/1.2 var(--serif); letter-spacing: -.005em; }
.h4--plain { font-weight: 400; letter-spacing: 0; }
.h5 { font: 400 24px/1.25 var(--serif); }

.pull {
  font: 400 clamp(28px, 3.4vw, 36px)/1.3 var(--serif);
  max-width: 24em;
  text-wrap: pretty;
}
.pull--about {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.35;
  max-width: 26em;
}

.eyebrow { font: italic 400 18px/1.3 var(--serif); color: var(--sage-deep); }
.name-note { font: italic 400 22px var(--serif); color: var(--sage-deep); }
.signature { font: italic 400 28px var(--serif); color: var(--sage-deep); margin-top: 32px; }

.body { max-width: 34em; color: var(--ink-soft); text-wrap: pretty; }
.body--ink { color: var(--ink); }
.body--full { max-width: none; }
.body--small { font-size: 19px; }
.note-muted { font-size: 19px; color: var(--muted-text); }

.label { font: 400 15px var(--sans); color: var(--muted-text); }
.label--sage { color: var(--sage-deep); }
.caption { font: 400 16px var(--sans); color: var(--muted-text); }
.caption--small { font-size: 15px; }

.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }

/* ---------- Hairline list rows ---------- */
.rule-list li { border-top: 1px solid var(--rule); padding: 12px 0; }
.rule-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  column-gap: 40px;
}
.list-group { display: flex; flex-direction: column; }
.list-group > .label { padding-bottom: 8px; }
.list-group--example { padding-top: 6px; }
.list-group--example > .label { padding-bottom: 4px; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 48px;
}
.two-col--240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.three-col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; display: grid; }

/* ---------- Fact rows ---------- */
.facts { display: flex; flex-direction: column; font-size: 19px; }
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 150px) 1fr;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding: 10px 0;
}
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font: 400 15px var(--sans); color: var(--muted-text); padding-top: 3px; }
.facts dd { margin: 0; }
.facts--wide { max-width: 40em; margin-top: 8px; }
.facts--book > div { grid-template-columns: 90px 1fr; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* group with a sage top line: "Monthly", "Plain language, always" */
.strand { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--sage); padding-top: 16px; }
.strand p { color: var(--ink-soft); }

.intro-card {
  margin-top: 16px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 40px;
}
.intro-card__title { font: 400 26px/1.2 var(--serif); }
.intro-card__col { display: flex; flex-direction: column; gap: 4px; font-size: 19px; }
.intro-card__col .label { padding-bottom: 0; }

.meet-card { padding: 28px 24px; }

.book-card {
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 48px;
  align-items: center;
}
.book-card__action { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

@media (min-width: 860px) {
  .intro-card { padding: 32px 36px; }
  .meet-card { padding: 36px 40px; }
  .book-card { padding: 36px 40px; }
}

/* ---------- Home: the fork, then the join ---------- */
.fork {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.fork__col {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--sage);
  padding: 36px 0 32px 24px;
}
.fork__title { padding: 10px 0 16px; }

.join { display: flex; flex-direction: column; border-left: 1px solid var(--sage); }
.join__curves { display: none; position: relative; height: 136px; }
.join__curves svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  width: 100%;
  height: calc(100% - 30px);
  overflow: visible;
}
.join__card {
  margin: 24px 0 0 24px;
  padding: 28px 24px 16px;
  display: flex;
  flex-direction: column;
}
.join__title { padding: 10px 0 16px; }

.more-link { padding: 28px 0 0 24px; }

@media (min-width: 860px) {
  .fork { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fork__col { padding: 36px 0 32px 48px; }
  .fork__col:first-child { padding-right: 40px; }
  .join__curves { display: block; }
  .join__card {
    width: 50%;
    margin: 0 auto;
    padding: 32px 40px 20px;
    text-align: center;
  }
  .more-link { padding: 28px 0 0; text-align: center; }
}

/* ---------- Photography ---------- */
.portrait {
  display: block;
  width: 100%;
  height: auto;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius);
}
.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.photo--wide {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 35% 40%;
}

.about-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 48px;
  align-items: start;
}
.where-text { max-width: 34em; }
.where-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px 48px;
  align-items: end;
}

/* ---------- Founder video ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 960px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--fade);
}
.video__poster:hover { opacity: .96; }
.video__poster:focus-visible { outline-offset: -6px; border-radius: 0; }
.video__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video__play {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(26, 31, 46, .2);
}
.video__tri {
  width: 0;
  height: 0;
  border-left: 22px solid var(--sage-deep);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}
.video__cc {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font: 400 13px var(--sans);
  background: var(--ink);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-tag);
}
@supports selector(:has(*)) {
  .video:has(.video__poster:focus-visible) { outline: 2px solid var(--sage); outline-offset: 3px; }
  .video__poster:focus-visible { outline: none; }
}

.video--failed {
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font: 400 16px/1.4 var(--sans);
  color: var(--ink-soft);
}

.video-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding-top: 28px;
  max-width: 960px;
}

/* video card (What I do, About) */
.video-card {
  max-width: 960px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 36px;
  align-items: center;
}
.video-card .video {
  width: 100%;
  max-width: 360px;
  border-radius: 4px;
}
.video-card .video__play { width: 52px; height: 52px; }
.video-card .video__tri { border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px; margin-left: 4px; }
.video-card__info { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.video-card__title { font: 500 26px/1.2 var(--serif); }

/* ---------- Email link ---------- */
.big-link { font: 400 clamp(26px, 3vw, 32px)/1.3 var(--serif); align-self: flex-start; }

/* ---------- Page end (Book page has no closing call to action) ---------- */
.page-end { height: 104px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px var(--side);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
  font: 400 15px/1.5 var(--sans);
  color: var(--muted-text);
}
.site-footer__col { display: flex; flex-direction: column; }
.site-footer__name { font: 500 18px var(--serif); color: var(--ink); }
.site-footer a { color: var(--ink); }

/* Regulatory disclosure: wording is supplied by the dealer. Do not edit casually. */
.site-footer__legal {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  font-size: 14px;
}
.site-footer__legal p { max-width: 70em; }
.site-footer__legal strong { font-weight: 400; color: var(--ink); }
.site-footer__legal img { display: block; width: 130px; height: auto; }
