@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/playfair-display-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/playfair-display-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/playfair-display-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/playfair-display-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/playfair-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/playfair-display-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/playfair-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/yrsa-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/yrsa-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/yrsa-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/yrsa-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/yrsa-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/yrsa-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/yrsa-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/yrsa-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/yrsa-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/yrsa-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f5f6f3;
  --fg-light-base-body: #1a1f26;
  --fg-light-base-heading: #1a1f26;
  --fg-light-base-muted: #4f5965;
  --fg-light-base-link: #1f5c99;
  --fg-light-base-inverse: #1a1f26;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #1a1f26;
  --fg-light-card-heading: #1a1f26;
  --fg-light-card-muted: #4f5965;
  --fg-light-card-link: #1f5c99;
  --fg-light-card-inverse: #1a1f26;
  --bg-light-elevated: #e6ebf0;
  --fg-light-elevated-body: #1a1f26;
  --fg-light-elevated-heading: #1a1f26;
  --fg-light-elevated-muted: #4f5965;
  --fg-light-elevated-link: #1f5c99;
  --fg-light-elevated-inverse: #1a1f26;
  --brand-light-accent: #1f5c99;
  --brand-light-accent-hover: #174a7d;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #1f5c99;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #6c7783;
  --border-light-subtle: #d2d8df;
}
.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; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-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; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
: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-ring); }

/* Steady Weight Notes: a calm clinical magazine */

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

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

body.notes {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Yrsa', Georgia, 'Times New Roman', serif;
  font-size: 1.1875rem;
  line-height: 1.68;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--fg-heading);
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.015em; }

h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 600; line-height: 1.18; margin: 2.75rem 0 0.85rem; }

h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; margin: 2rem 0 0.5rem; }

p { margin: 0 0 1.2rem; }

ul, ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }

li { margin-bottom: 0.45rem; }

a { color: var(--fg-link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

a:hover { color: var(--brand-light-accent-hover); text-decoration-thickness: 2px; }

strong { font-weight: 600; }

/* ---------- Drawing inks ---------- */

.ink, .ink-on { stroke: var(--brand-light-accent); }

.week, .plate, .greens { stroke: var(--border-light-default); }

.greens { stroke: var(--brand-light-accent); }

.dose-day { fill: var(--brand-light-accent); }

.dose-tick { stroke: var(--brand-light-on-accent); }

.ink-on { stroke: var(--brand-light-on-accent); }

.protein { fill: var(--bg-light-elevated); }

figure svg { display: block; width: 100%; height: auto; }

/* ---------- Header ---------- */

.site-header { overflow-wrap: normal; }

.masthead {
  max-width: 76rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  overflow-wrap: normal;
}

.brand .site-logo { display: block; width: 2.25rem; height: 2.25rem; flex: none; }

.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: normal;
}

.site-header .brand:hover .brand-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.strapline { display: none; margin: 0; font-style: italic; font-size: 1.05rem; white-space: nowrap; }

/* phone and tablet menu: a full-width blue sheet under the masthead */
.site-header { position: relative; }

.menu-toggle { display: flex; flex: none; }

.site-menu { position: static; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.3rem 0.1rem;
  border-bottom: 3px solid var(--brand-light-accent);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--fg-heading);
}

.site-menu > summary:hover { color: var(--brand-light-accent-hover); border-bottom-color: var(--brand-light-accent-hover); }

.site-menu .menu-icon {
  flex: none;
  width: 1.1rem;
  height: 2px;
  margin: 6px 0;
  background: var(--fg-heading);
  box-shadow: 0 -6px 0 var(--fg-heading);
}

.site-menu[open] .menu-icon { box-shadow: none; }

.site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  max-height: 80vh;
  overflow-y: auto;
  margin: 0;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 2rem;
  list-style: none;
  background: var(--brand-light-accent);
}

.site-menu ul ul { list-style: none; margin: 0 0 0.75rem; padding-left: 1.1rem; }

.site-menu li { margin: 0; }

.site-menu a {
  display: block;
  padding: 0.45rem 0;
  line-height: 1.3;
  color: var(--brand-light-on-accent);
  text-decoration: none;
}

.site-menu > ul > li > a { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 700; }

.site-menu a:hover { color: var(--brand-light-on-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* desktop grouped dropdown bar */
.navbar { display: none; }

.site-nav > ul {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
}

.site-nav li { margin: 0; }

.site-nav > ul > li { position: relative; }

.site-nav > ul > li > a,
.site-nav-group > summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--fg-heading);
  text-decoration: none;
  cursor: pointer;
}

.site-nav-group > summary { list-style: none; }

.site-nav-group > summary::-webkit-details-marker { display: none; }

.site-nav-group > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid var(--brand-light-accent);
  border-bottom: 1.5px solid var(--brand-light-accent);
  transform: rotate(45deg);
}

.site-nav-group[open] > summary::after { margin-top: 0.2rem; transform: rotate(-135deg); }

.site-nav > ul > li > a:hover,
.site-nav-group > summary:hover { color: var(--brand-light-accent-hover); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }

.site-nav-group[open] > summary { color: var(--brand-light-accent); }

.site-nav-group > ul {
  position: absolute;
  left: -1rem;
  top: 100%;
  z-index: 50;
  min-width: 18rem;
  margin: 0;
  padding: 0.85rem 1.25rem 1.1rem;
  list-style: none;
  background: var(--brand-light-accent);
}

.site-nav-group > ul a {
  display: block;
  padding: 0.4rem 0;
  line-height: 1.3;
  color: var(--brand-light-on-accent);
  text-decoration: none;
}

.site-nav-group > ul > li:first-child a { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }

.site-nav-group > ul a:hover { color: var(--brand-light-on-accent); text-decoration: underline; text-decoration-thickness: 2px; }

.site-nav > ul > li > a[aria-current="page"] { color: var(--brand-light-accent); }

.site-nav-group > ul a[aria-current="page"], .site-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

@media (min-width: 64rem) {
  .menu-toggle { display: none; }
  .strapline { display: block; }
  .navbar { display: block; border-top: 1px solid var(--border-light-subtle); border-bottom: 1px solid var(--border-light-default); }
  .masthead { padding-top: 1.25rem; padding-bottom: 1.1rem; }
  .brand .site-logo { width: 2.75rem; height: 2.75rem; }
  .brand-name { font-size: 1.55rem; }
}

/* ---------- Page frame ---------- */

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem) 5rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  font-size: 1rem;
}

.breadcrumbs li { margin: 0; }

.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--fg-muted); }

.photo-hero, .photo-inline { margin: 0 0 2.25rem; }

.photo-hero img, .photo-inline img { display: block; width: 100%; height: auto; border-radius: 0.75rem; }

.photo-hero img { aspect-ratio: 3 / 2; object-fit: cover; }

.table-scroll { overflow-x: auto; margin: 0 0 1.75rem; }

table { border-collapse: collapse; width: 100%; font-size: 1.02rem; }

th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border-light-subtle); }

thead th { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; border-bottom: 2px solid var(--brand-light-accent); }

blockquote {
  margin: 0 0 1.6rem;
  padding: 1rem 1.25rem;
  background: var(--bg-light-elevated);
  border-radius: 0.6rem;
}

/* ---------- Home: cover grid ---------- */

.cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-light-default);
}

.cover-title h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); font-weight: 800; line-height: 0.98; }

.cover-lines { max-width: 34rem; padding-left: 1.1rem; border-left: 3px solid var(--brand-light-accent); }

.cover-lines .display-line { margin: 0 0 0.75rem; font-size: 1.25rem; line-height: 1.5; color: var(--fg-muted); }

.cover-lines .display-line:last-child { margin-bottom: 0; }

.cover-art { margin: 0; width: min(100%, 24rem); }

.cover-body { max-width: 40rem; }

.cover-body > h2:first-child, .cover-body > :first-child { margin-top: 0; }

@media (min-width: 56rem) {
  .cover {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 2rem;
    align-items: start;
  }
  .cover-title { grid-column: 1 / 9; grid-row: 1; }
  .cover-lines { grid-column: 1 / 7; grid-row: 2; }
  .cover-art { grid-column: 8 / 13; grid-row: 2 / 3; width: 100%; align-self: end; }
}

/* ---------- Topic hub: contents spread ---------- */

.contents { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }

.contents-title { margin-bottom: 1.75rem; }

.contents-body { max-width: 40rem; }

.contents-list > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: guide;
  border-top: 3px solid var(--brand-light-accent);
}

.contents-list > ul > li {
  position: relative;
  counter-increment: guide;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 1.5rem;
  gap: 0.9rem;
  align-items: center;
  margin: 0;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-light-default);
}

.contents-list > ul > li::before {
  content: counter(guide);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-light-accent);
}

/* a small pen beside each guide */
.contents-list > ul > li::after {
  content: "";
  grid-column: 3;
  width: 1.5rem;
  height: 0.5rem;
  border: 1.5px solid var(--border-light-default);
  border-left-width: 0.4rem;
  border-radius: 0.25rem;
  transform: rotate(-30deg);
}

.contents-list > ul > li > a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.contents-list > ul > li > a::before { content: ""; position: absolute; inset: 0; }

.contents-list > ul > li:hover > a { text-decoration: underline; color: var(--brand-light-accent-hover); }

.contents-list > ul > li:hover::after { border-color: var(--brand-light-accent); }

@media (min-width: 56rem) {
  .contents { grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: 4rem; align-items: start; }
  .contents-list { position: sticky; top: 1.5rem; margin-top: 0.5rem; }
}

/* ---------- Article: one feature column ---------- */

.feature { max-width: 44rem; margin: 0 auto; }

.feature-title { margin-bottom: 1.75rem; }

.feature-lead { margin: 0 0 2.5rem; padding: 1.25rem; background: var(--bg-light-elevated); border-radius: 0.75rem; }

.feature-body > p:first-child { font-size: 1.32rem; line-height: 1.55; }

.feature-body h2 { padding-top: 1rem; border-top: 1px solid var(--border-light-subtle); }

/* ---------- About: two panels ---------- */

.practice { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }

.practice-title { padding-top: 1.25rem; border-top: 6px solid var(--fg-heading); }

.practice-art { margin: 0; width: 7rem; }

.practice-body { max-width: 42rem; }

@media (min-width: 56rem) {
  .practice { grid-template-columns: minmax(0, 1fr) 11rem; column-gap: 5rem; row-gap: 2.5rem; align-items: start; }
  .practice-title { grid-column: 1 / -1; }
  .practice-body { grid-column: 1; }
  .practice-art { grid-column: 2; grid-row: 2; width: 100%; padding-left: 2rem; border-left: 1px solid var(--border-light-default); }
}

/* ---------- Contact: centred column ---------- */

.letters { max-width: 40rem; margin: 0 auto; text-align: left; }

.letters-art { margin: 0 auto 1.5rem; width: min(100%, 15rem); }

.letters-title { margin-bottom: 1.5rem; text-align: center; }

.letters-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border-light-default);
  border-radius: 0.75rem;
}

.field { display: grid; gap: 0.35rem; }

.field label { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; font-weight: 600; }

.field input, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--fg-body);
  background: var(--bg-light-base);
  border: 1px solid var(--border-light-default);
  border-radius: 0.4rem;
}

.field textarea { resize: vertical; }

.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

.letters-submit {
  justify-self: start;
  min-height: 46px;
  padding: 0.55rem 1.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--brand-light-on-accent);
  background: var(--brand-light-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.letters-submit:hover { background: var(--brand-light-accent-hover); }

@media (min-width: 40rem) {
  .letters-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide, .letters-submit { grid-column: 1 / -1; }
}

/* ---------- Thank you: split ---------- */

.closing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; max-width: 60rem; }

.closing-art { margin: 0; width: 8rem; }

.closing-title { margin-bottom: 1.5rem; }

.closing-body { max-width: 38rem; }

@media (min-width: 48rem) {
  .closing { grid-template-columns: 12rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .closing-art { width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 3px solid var(--brand-light-accent); }

.footer-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 3rem;
  align-items: baseline;
  justify-content: space-between;
}

.footer-name { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 700; }

.footer-line { margin: 0; max-width: 36rem; font-size: 1.05rem; }

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