
:root {
  --cream: #faf5ec;
  --paper: #fffcf7;
  --plum: #5f273f;
  --plum-dark: #44182d;
  --sage: #d5ddc9;
  --butter: #f2dfa5;
  --ink: #292126;
  --muted: #706269;
  --line: #d7cec3;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", Arial, Helvetica, sans-serif;
  --background: var(--cream);
  --foreground: var(--ink);
  --border: var(--line);
  --primary: var(--plum);
  --primary-foreground: #fff;
  --radius: 0.6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.17;
}

h1 {
  font-size: clamp(2.65rem, 4.8vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
}

h3 {
  font-size: 1.6rem;
}

p + p {
  margin-top: 1em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9d647c;
  outline-offset: 4px;
}

::selection {
  background: #e8c7d5;
  color: #3e1529;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -70px;
  z-index: 100;
  background: var(--plum);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  max-width: 1440px;
  margin: auto;
  padding: 0 3.3%;
  position: relative;
  z-index: 20;
}

.header-inner {
  height: 101px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.wordmark-dot {
  color: var(--plum);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-left: auto;
  font-size: 14px;
  line-height: 1.4;
}

.desktop-nav a {
  padding: 10px 0;
  position: relative;
}

.desktop-nav a:after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--plum);
  bottom: 3px;
  left: 0;
  right: 100%;
  transition: right 0.2s;
}

.desktop-nav a:hover:after,
.desktop-nav a[aria-current="page"]:after {
  right: 0;
}

.header-actions {
  display: flex;
  gap: 6px;
}

.icon-button {
  width: 38px;
  height: 42px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 6px;
}

.icon-button:hover {
  background: #eee4d8;
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  padding: 14px 0 24px;
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 5px;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: #eee0e4;
  color: var(--plum);
}

#main-content {
  max-width: 1440px;
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 535px;
  padding: 0 3.3%;
  position: relative;
}

.hero-copy {
  padding: 65px 0 58px;
  position: relative;
  z-index: 2;
  align-self: center;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-copy .eyebrow {
  margin-bottom: 25px;
  color: var(--plum);
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 4.4vw, 4.25rem);
  line-height: 1.13;
  letter-spacing: -0.05em;
  width: 108%;
  max-width: 640px;
}

.hero-description {
  font-size: 17px;
  line-height: 1.7;
  margin-top: 23px;
  max-width: 390px;
  color: #5c4d52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  position: relative;
  z-index: 3;
}

.button {
  border: 1px solid var(--plum);
  background: var(--plum);
  color: #fffdf8;
  min-height: 48px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--plum-dark);
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
  white-space: normal;
}

.button:hover {
  background: #71334d;
  border-color: #71334d;
  box-shadow: 0 3px 0 var(--plum-dark);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(2px);
  box-shadow: none;
}

.button.secondary {
  background: transparent;
  color: var(--plum);
  box-shadow: none;
  border-color: #856b73;
}

.button.secondary:hover {
  background: #f0e4e7;
  border-color: var(--plum);
}

.button.light {
  background: var(--cream);
  color: var(--plum);
  border-color: var(--cream);
  box-shadow: 0 2px 0 #d9c6c4;
}

.button.light:hover {
  background: #fff;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #817169;
  margin-top: 25px;
}

.hero-note svg {
  color: #61715b;
}

.hero-photo {
  position: relative;
  margin-right: -7.1%;
  min-width: 0;
  overflow: hidden;
  align-self: stretch;
}

.hero-photo > img {
  height: 100%;
  width: 100%;
  object-position: 64% center;
}

.hero-photo:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cream) 0%, transparent 19%);
  z-index: 1;
  pointer-events: none;
}

.hero-photo-caption {
  position: absolute;
  bottom: 22px;
  right: 25px;
  z-index: 2;
  color: white;
  font-size: 12px;
  text-shadow: 0 1px 6px #30211a;
}

.home-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 22px 3.3% 0;
}

.meal-plans-panel,
.calculator-panel {
  border-radius: 12px;
  padding: 29px 34px 25px;
}

.meal-plans-panel {
  background: var(--plum);
  color: var(--cream);
}

.calculator-panel {
  background: var(--sage);
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.panel-icon {
  display: flex;
}

.free-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  border-bottom: 1px solid #aa8294;
  padding-bottom: 3px;
}

.panel-kicker {
  font-size: 12px;
  color: #5c6954;
}

.meal-plans-panel h2,
.calculator-panel h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  line-height: 1.12;
}

.meal-plans-panel > p,
.calculator-panel > p {
  font-size: 14px;
  margin-top: 12px;
}

.meal-plans-panel > p {
  color: #dfcbd4;
}

.calculator-panel > p {
  color: #5d6857;
}

.calorie-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.calorie-options a {
  height: 65px;
  padding: 8px 20px 8px 25px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  color: var(--plum);
  box-shadow: 0 3px 0 #381928;
  transition:
    background 0.18s,
    transform 0.18s;
}

.calorie-options a span {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.calorie-options a:hover {
  background: #fff;
  transform: translateY(-2px);
}

.calorie-options a:active {
  transform: translateY(2px);
  box-shadow: none;
}

.panel-link {
  display: inline-block;
  font-size: 12px;
  border-bottom: 1px solid #bca2ae;
  margin-top: 19px;
  line-height: 1.6;
}

.home-calculator-form {
  display: grid;
  gap: 12px;
  margin-top: 23px;
}

.search-field {
  background: var(--paper);
  border: 1px solid #a6ad9b;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  padding-left: 14px;
  color: #6a6f62;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  height: 47px;
  font-size: 14px;
  padding: 10px 12px 10px 0;
  outline-offset: -3px;
}

.calculator-form-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 1.65fr;
  gap: 12px;
}

.calculator-form-row label {
  min-width: 0;
}

.calculator-form-row input {
  width: 100%;
  min-width: 0;
  height: 48px;
  background: var(--paper);
  border: 1px solid #a6ad9b;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
}

.calculator-form-row .button {
  padding: 12px 14px;
  font-size: 14px;
}

.macro-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
  border-top: 1px solid #aab29e;
  padding-top: 15px;
  font-size: 12px;
}

.macro-preview > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.macro-preview > span + span {
  border-left: 1px solid #aab29e;
  padding-left: 13px;
}

.macro-preview b {
  font-weight: 400;
}

.home-section {
  margin: 66px 3.3% 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 27px;
}

.section-heading .eyebrow {
  color: #8d6a51;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(2.25rem, 3.6vw, 3.45rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  border-bottom: 1px solid #88776d;
  padding-bottom: 4px;
}

.text-link:hover {
  color: var(--plum);
  border-color: var(--plum);
}

.recipe-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recipe-preview-photo {
  height: 255px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  background: #eee1d3;
}

.recipe-preview-photo > img {
  height: 100%;
  width: 100%;
  transition: transform 0.6s;
}

.recipe-preview:hover img {
  transform: scale(1.035);
}

.recipe-preview-photo > span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 9px;
  background: var(--cream);
  border-radius: 3px;
  color: var(--ink);
  line-height: 1.3;
}

.recipe-preview h3 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-top: 15px;
}

.recipe-preview p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.home-journal {
  background: var(--butter);
  border-radius: 11px;
  margin: 60px 3.3% 0;
  padding: 31px 35px;
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.journal-intro > svg {
  margin-bottom: 20px;
}

.journal-intro > .eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.journal-intro h2 {
  font-size: 43px;
  margin-top: 4px;
  margin-bottom: 18px;
}

.journal-intro .text-link {
  font-size: 12px;
}

.journal-feature {
  border-left: 1px solid #c8b17b;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 8px;
  position: relative;
}

.journal-feature > .eyebrow {
  font-size: 12px;
  color: #84683f;
}

.journal-feature h3 {
  font-size: 27px;
  margin-top: 18px;
  line-height: 1.21;
}

.journal-feature p {
  font-size: 12px;
  color: #7e6848;
  margin-top: 14px;
  max-width: 200px;
}

.round-link {
  width: 34px;
  height: 34px;
  border: 1px solid #b79f6f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  transition: background 0.2s;
}

.journal-feature:hover .round-link {
  background: #f9edc9;
}

.home-workouts {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 10px;
  background: #eee8df;
  overflow: hidden;
  min-height: 300px;
}

.workouts-copy {
  padding: 36px 40px;
}

.workouts-copy .eyebrow {
  font-size: 12px;
  color: #68705b;
  margin-bottom: 16px;
}

.workouts-copy h2 {
  font-size: 32px;
  line-height: 1.15;
}

.workouts-copy p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}

.workouts-copy .button {
  margin-top: 22px;
}

.workouts-photo {
  overflow: hidden;
  min-height: 300px;
}

.workouts-photo img {
  width: 100%;
  height: 100%;
  object-position: center;
}

.home-explore {
  margin: 40px 3.3% 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-explore > a {
  padding: 28px 25px 27px 0;
  position: relative;
  transition: background 0.2s;
}

.home-explore > a + a {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

.home-explore h3 {
  font-size: 25px;
  margin-top: 11px;
}

.home-explore .eyebrow {
  font-size: 12px;
  color: #896a5a;
}

.home-explore p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}

.home-explore > a > svg {
  position: absolute;
  right: 16px;
  top: 49%;
  color: var(--plum);
}

.home-explore > a:hover h3 {
  color: var(--plum);
}

.site-footer {
  max-width: 1440px;
  padding: 62px 3.3% 26px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 35px;
}

.footer-top .wordmark {
  font-size: 26px;
}

.footer-top p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 13px;
}

.footer-top nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  align-items: flex-start;
}

.footer-top nav a:hover {
  color: var(--plum);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #817069;
}

.footer-bottom a:hover {
  color: var(--plum);
}

/* Shared content, tools and editorial pages. */
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 3.5% 65px;
  min-height: 60vh;
}

.page-head {
  margin: 13px 0 35px;
  max-width: 900px;
}

.page-head .eyebrow {
  color: var(--plum);
  margin-bottom: 16px;
}

.page-head h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  margin-bottom: 22px;
}

.page-head > p {
  font-size: 17px;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs a:hover {
  color: var(--plum);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 1px solid #c4b5b6;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.chip:hover {
  background: #eee3e7;
  border-color: var(--plum);
}

.chip.active,
.chip[aria-pressed="true"],
.chip[aria-current="page"] {
  background: var(--plum);
  color: white;
  border-color: var(--plum);
}

.input,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
select,
textarea {
  max-width: 100%;
}

.input,
.field input,
.field select,
.field textarea,
.editor-form input,
.editor-form textarea,
.editor-form select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #baafaa;
  border-radius: 6px;
  padding: 11px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.2s;
}

.input:hover,
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #866a78;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
}

.field small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.field input[type="checkbox"] {
  min-height: 20px;
  width: 20px;
  accent-color: var(--plum);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235f273f' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-position: right 12px center !important;
  background-repeat: no-repeat !important;
  padding-right: 38px !important;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tool-card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 25px;
}

.tool-card h2 {
  font-size: 30px;
  margin-bottom: 22px;
}

.tool-card h3 {
  margin: 18px 0 12px;
}

.tool-card .button {
  margin-top: 18px;
}

.tool-card p {
  color: var(--muted);
}

.tool-card.sage {
  background: var(--sage);
  border-color: var(--sage);
}

.tool-card.plum {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}

.notice {
  font-size: 14px;
  line-height: 1.75;
  border-left: 3px solid #b5976b;
  background: #f4ead6;
  padding: 15px 19px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  color: #665439;
}

.notice a {
  text-decoration: underline;
}

.notice.error {
  border-color: #a64c62;
  background: #f7e4e9;
  color: #822c43;
}

.notice.success {
  border-color: #627858;
  background: #e6eddc;
  color: #3d5636;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 24px 0;
}

.result-stat {
  padding: 22px 18px;
  background: #e5eadb;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #5c6753;
}

.result-stat strong,
.result-stat b {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  color: var(--ink);
}

.result-stat small {
  font-size: 12px;
}

.empty-state {
  border: 1px dashed #c7b5bc;
  border-radius: 10px;
  text-align: center;
  padding: 45px 25px;
  color: var(--muted);
  margin: 25px 0;
}

.empty-state h2 {
  font-size: 27px;
  margin-bottom: 15px;
  color: var(--ink);
}

.empty-state p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state .button {
  margin-top: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin: 25px 0;
}

.content-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.content-card:hover {
  transform: translateY(-3px);
  border-color: #b799a6;
}

.content-card > img,
.content-card > a > img,
.recipe-image {
  width: 100%;
  height: 215px;
  object-fit: cover;
  background: #e8ded3;
}

.content-card > div,
.content-card > .card-content {
  padding: 20px;
}

.content-card .eyebrow {
  color: var(--plum);
  font-size: 12px;
  margin-bottom: 10px;
}

.content-card h2,
.content-card h3 {
  font-size: 24px;
  line-height: 1.26;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.content-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.content-card .text-link {
  margin-top: 15px;
}

.content-card > a:not(:has(img)) {
  padding: 20px;
}

.content-card small {
  font-size: 12px;
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 40px 0 15px;
}

.pagination a,
.pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination a[aria-current="page"],
.pagination button.active {
  background: var(--plum);
  color: white;
  border-color: var(--plum);
}

.pagination a:hover {
  border-color: var(--plum);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 750px) 260px;
  gap: 65px;
  align-items: start;
}

.article-body {
  font-size: 17px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.article-body h2 {
  font-size: 31px;
  margin: 42px 0 17px;
  line-height: 1.25;
}

.article-body h3 {
  font-size: 25px;
  margin: 30px 0 15px;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body li {
  margin: 9px 0;
}

.article-body ul,
.article-body ol {
  padding-left: 25px;
  margin: 20px 0;
}

.article-body a {
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body blockquote {
  background: #ede7dc;
  border-left: 3px solid var(--plum);
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 0 7px 7px 0;
}

.article-body > img {
  border-radius: 10px;
  max-height: 450px;
  width: 100%;
  margin-bottom: 30px;
}

.article-action {
  margin: 36px 0;
  padding: 26px;
  border: 1px solid var(--plum);
  border-radius: 12px;
  background: #f5eef3;
}
.article-action h2 { margin-top: 0; }
.article-body .article-action a.button { color: #fff; text-decoration: none; }

.article-toc {
  background: #eee8df;
  border-radius: 9px;
  padding: 23px;
  position: sticky;
  top: 25px;
  font-size: 14px;
}

.article-toc h2,
.article-toc h3 {
  font-size: 23px;
  margin-bottom: 16px;
}

.article-toc a {
  display: block;
  margin: 11px 0;
  color: #66525b;
  line-height: 1.55;
}

.article-toc a:hover {
  color: var(--plum);
  text-decoration: underline;
}

.meal-day {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
  background: var(--paper);
  margin: 20px 0;
}

.meal-day h2,
.meal-day h3 {
  font-size: 27px;
  margin-bottom: 17px;
}

.meal-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 15px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid #e4dcd2;
  font-size: 14px;
}

.meal-row > span:first-child {
  color: var(--plum);
  font-weight: 500;
}

.meal-row p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.meal-row small {
  color: var(--muted);
}

.meal-row img {
  width: 75px;
  height: 65px;
  border-radius: 5px;
}

.forum-topic {
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  margin: 15px 0;
  transition: border-color 0.2s;
}

.forum-topic:hover {
  border-color: #b697a5;
}

.forum-topic h2,
.forum-topic h3 {
  font-size: 25px;
  margin-bottom: 9px;
}

.forum-topic p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.forum-topic small {
  display: block;
  font-size: 12px;
  color: #847078;
  margin-top: 12px;
}

.editor-form {
  display: grid;
  gap: 20px;
  max-width: 850px;
}

.editor-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
}

.editor-form textarea {
  min-height: 200px;
}

.editor-form .button {
  justify-self: start;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 28px;
}

.article-meta .chip {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  color: var(--plum);
  background: #eee8df;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--plum);
}

button:not(.button):not(.icon-button):not(.chip) {
  color: inherit;
}

@media (min-width: 1450px) {
  .hero-photo {
    margin-right: -8%;
  }
  .home-hero {
    min-height: 570px;
  }
  .hero-copy h1 {
    font-size: 4.65rem;
  }
  .recipe-preview-photo {
    height: 285px;
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 18px;
    font-size: 12px;
  }
  .header-inner {
    height: 86px;
  }
  .wordmark {
    font-size: 29px;
  }
  .home-hero {
    min-height: 480px;
  }
  .hero-copy {
    padding: 45px 0;
  }
  .hero-copy h1 {
    font-size: 3.4rem;
  }
  .hero-actions {
    gap: 10px;
    flex-wrap: nowrap;
  }
  .hero-actions .button {
    padding: 12px 15px;
    font-size: 12px;
  }
  .hero-description {
    font-size: 15px;
  }
  .meal-plans-panel,
  .calculator-panel {
    padding: 25px;
  }
  .recipe-preview-photo {
    height: 215px;
  }
  .home-journal {
    gap: 23px;
    padding: 28px;
  }
  .journal-feature {
    padding-left: 22px;
  }
  .journal-feature h3 {
    font-size: 25px;
  }
  .workouts-copy {
    padding: 30px;
  }
  .workouts-copy h2 {
    font-size: 29px;
  }
  .home-explore h3 {
    font-size: 22px;
  }
  .home-explore > a + a {
    padding-left: 22px;
  }
  .home-explore > a > svg {
    right: 4px;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 35px;
  }
}

@media (max-width: 850px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .header-inner {
    height: 78px;
  }
  .wordmark {
    font-size: 28px;
  }
  .site-header {
    padding: 0 5%;
  }
  .home-hero {
    padding: 0 5%;
    grid-template-columns: 1fr 1fr;
    min-height: 440px;
  }
  .hero-copy h1 {
    font-size: 2.75rem;
    width: 112%;
  }
  .hero-copy > .eyebrow {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
  }
  .hero-actions .button {
    font-size: 12px;
    min-width: 205px;
    padding: 12px 17px;
  }
  .hero-note {
    font-size: 12px;
    max-width: 230px;
  }
  .hero-photo {
    margin-right: -11.2%;
  }
  .hero-photo > img {
    object-position: 63% center;
  }
  .home-tools {
    padding: 20px 5% 0;
    gap: 16px;
  }
  .meal-plans-panel,
  .calculator-panel {
    padding: 22px 20px;
  }
  .panel-title-row {
    margin-bottom: 16px;
  }
  .panel-kicker {
    font-size: 12px;
  }
  .meal-plans-panel h2,
  .calculator-panel h2 {
    font-size: 2rem;
  }
  .calorie-options {
    gap: 10px;
  }
  .calorie-options a {
    height: 57px;
    padding: 8px 12px 8px 17px;
  }
  .calorie-options a span {
    font-size: 26px;
  }
  .calculator-form-row {
    grid-template-columns: 1fr;
  }
  .calculator-form-row input {
    height: 42px;
  }
  .home-calculator-form {
    margin-top: 19px;
    gap: 10px;
  }
  .macro-preview {
    margin-top: 17px;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 12px;
    padding-top: 10px;
  }
  .macro-preview > span + span {
    padding-left: 0;
    border: 0;
  }
  .panel-link {
    margin-top: 18px;
  }
  .home-section {
    margin: 50px 5% 0;
  }
  .section-heading h2 {
    font-size: 2.65rem;
  }
  .recipe-preview-grid {
    gap: 16px;
  }
  .recipe-preview-photo {
    height: 175px;
  }
  .recipe-preview h3 {
    font-size: 20px;
  }
  .recipe-preview p {
    font-size: 12px;
  }
  .recipe-preview-photo > span {
    font-size: 12px;
    left: 10px;
    bottom: 10px;
    padding: 5px 7px;
  }
  .home-journal {
    margin: 45px 5% 0;
    padding: 25px;
    gap: 20px;
    grid-template-columns: 0.85fr 1fr 1fr;
  }
  .journal-intro h2 {
    font-size: 36px;
  }
  .journal-intro > .eyebrow {
    font-size: 12px;
  }
  .journal-feature h3 {
    font-size: 22px;
  }
  .journal-feature {
    padding-left: 20px;
  }
  .journal-feature p {
    font-size: 12px;
  }
  .home-workouts {
    grid-template-columns: 1.2fr 1fr;
    min-height: 290px;
  }
  .workouts-copy {
    padding: 26px;
  }
  .workouts-copy h2 {
    font-size: 27px;
  }
  .workouts-copy p {
    font-size: 12px;
    max-width: 220px;
  }
  .workouts-copy > .eyebrow {
    font-size: 12px;
    gap: 6px;
  }
  .home-explore {
    margin: 35px 5% 0;
  }
  .home-explore h3 {
    font-size: 21px;
    max-width: 160px;
  }
  .home-explore p {
    font-size: 12px;
    max-width: 150px;
  }
  .home-explore > .eyebrow {
    font-size: 12px;
  }
  .home-explore > a + a {
    padding-left: 18px;
  }
  .home-explore > a {
    padding-right: 20px;
  }
  .home-explore > a > svg {
    right: 1px;
    top: 51%;
  }
  .site-footer {
    padding: 50px 5% 25px;
  }
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 22px;
  }
  .footer-top .wordmark {
    font-size: 23px;
  }
  .footer-top p,
  .footer-top nav {
    font-size: 12px;
  }
  .page-shell {
    padding: 35px 5% 50px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .article-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 28px;
  }
  .article-toc {
    position: static;
    width: 100%;
  }
  .article-toc a {
    display: inline-block;
    margin: 5px 18px 5px 0;
  }
  .article-body {
    width: 100%;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .site-header {
    padding: 0 20px;
  }
  .header-inner {
    height: 76px;
    gap: 10px;
  }
  .wordmark {
    font-size: 27px;
  }
  .search-button {
    display: none;
  }
  .icon-button {
    width: 36px;
  }
  .home-hero {
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 0;
  }
  .hero-photo {
    order: 0;
    margin: 0;
    height: 245px;
    overflow: hidden;
  }
  .hero-photo > img {
    object-position: center 54%;
  }
  .hero-photo:before {
    display: none;
  }
  .hero-photo-caption {
    bottom: 15px;
    right: 20px;
    font-size: 12px;
  }
  .hero-copy {
    order: 1;
    padding: 30px 22px 32px;
    width: 100%;
    align-self: auto;
  }
  .hero-copy > .eyebrow {
    font-size: 12px;
    margin-bottom: 15px;
  }
  .hero-copy h1 {
    font-size: clamp(2.7rem, 9.7vw, 3.4rem);
    width: 100%;
    max-width: 500px;
    line-height: 1.13;
    letter-spacing: -0.05em;
  }
  .hero-break {
    display: none;
  }
  .hero-description {
    font-size: 15px;
    line-height: 1.75;
    margin-top: 18px;
    max-width: 340px;
  }
  .desktop-break {
    display: none;
  }
  .hero-actions {
    margin-top: 22px;
    gap: 12px;
    align-items: stretch;
  }
  .hero-actions .button {
    width: 100%;
    font-size: 15px;
    min-height: 50px;
    padding: 14px 18px;
  }
  .hero-note {
    font-size: 12px;
    margin-top: 20px;
    max-width: none;
  }
  .home-tools {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    gap: 18px;
  }
  .meal-plans-panel,
  .calculator-panel {
    padding: 26px 24px 24px;
    border-radius: 11px;
  }
  .panel-title-row {
    margin-bottom: 18px;
  }
  .panel-title-row .panel-kicker {
    font-size: 12px;
  }
  .meal-plans-panel h2,
  .calculator-panel h2 {
    font-size: 2.45rem;
    line-height: 1.15;
  }
  .meal-plans-panel > p,
  .calculator-panel > p {
    font-size: 14px;
    margin-top: 13px;
  }
  .calorie-options {
    gap: 12px;
    margin-top: 22px;
  }
  .calorie-options a {
    height: 65px;
    padding: 8px 19px;
  }
  .calorie-options a span {
    font-size: 32px;
  }
  .panel-link {
    font-size: 12px;
    margin-top: 20px;
  }
  .home-calculator-form {
    gap: 12px;
    margin-top: 22px;
  }
  .search-field input {
    height: 50px;
    font-size: 14px;
  }
  .calculator-form-row {
    grid-template-columns: minmax(90px, 0.85fr) 1.7fr;
    gap: 10px;
  }
  .calculator-form-row input {
    height: 49px;
    font-size: 14px;
    padding: 10px 12px;
  }
  .calculator-form-row .button {
    font-size: 12px;
    min-height: 48px;
    padding: 10px 11px;
  }
  .macro-preview {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 23px;
    padding-top: 17px;
    font-size: 12px;
  }
  .macro-preview > span + span {
    border-left: 1px solid #aab29e;
    padding-left: 9px;
  }
  .macro-preview > span {
    gap: 5px;
  }
  .home-section {
    margin: 44px 20px 0;
  }
  .section-heading {
    margin-bottom: 22px;
    align-items: flex-end;
    gap: 12px;
  }
  .section-heading > .eyebrow,
  .section-heading .eyebrow {
    font-size: 12px;
    margin-bottom: 9px;
  }
  .section-heading h2 {
    font-size: 2.5rem;
  }
  .text-link {
    font-size: 12px;
    gap: 3px;
    white-space: nowrap;
  }
  .recipe-preview-grid {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .recipe-preview-photo {
    height: 270px;
    border-radius: 9px;
  }
  .recipe-preview h3 {
    font-size: 26px;
    margin-top: 14px;
  }
  .recipe-preview p {
    font-size: 14px;
    margin-top: 5px;
  }
  .recipe-preview-photo > span {
    font-size: 12px;
    left: 15px;
    bottom: 15px;
    padding: 7px 10px;
  }
  .home-journal {
    margin: 44px 16px 0;
    padding: 26px 24px;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .journal-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: center;
    padding-bottom: 23px;
  }
  .journal-intro > svg {
    display: none;
  }
  .journal-intro > .eyebrow {
    font-size: 12px;
    grid-column: 1/-1;
  }
  .journal-intro h2 {
    font-size: 43px;
    margin: 5px 0 0;
  }
  .journal-intro > .text-link {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin-top: 8px;
  }
  .journal-feature {
    padding: 24px 0 22px;
    border-left: 0;
    border-top: 1px solid #c8b17b;
    display: block;
  }
  .journal-feature > .eyebrow {
    font-size: 12px;
  }
  .journal-feature h3 {
    font-size: 28px;
    line-height: 1.22;
    margin-top: 13px;
  }
  .journal-feature p {
    font-size: 12px;
    max-width: 260px;
    margin-top: 10px;
  }
  .journal-feature .round-link {
    position: absolute;
    right: 0;
    top: 50%;
    margin: 0;
  }
  .journal-feature:last-child {
    padding-bottom: 0;
  }
  .home-workouts {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .workouts-copy {
    padding: 28px 24px 30px;
  }
  .workouts-copy h2 {
    font-size: 30px;
  }
  .workouts-copy > .eyebrow {
    font-size: 12px;
    margin-bottom: 16px;
  }
  .workouts-copy p {
    font-size: 14px;
    max-width: 300px;
    line-height: 1.7;
  }
  .workouts-copy .button {
    font-size: 14px;
    min-height: 48px;
    margin-top: 21px;
  }
  .workouts-photo {
    height: 205px;
    min-height: 0;
  }
  .workouts-photo img {
    object-position: center 55%;
  }
  .home-explore {
    margin: 35px 20px 0;
    display: block;
  }
  .home-explore > a {
    display: block;
    padding: 24px 35px 24px 0;
  }
  .home-explore > a + a {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .home-explore .eyebrow {
    font-size: 12px;
  }
  .home-explore h3 {
    font-size: 27px;
    max-width: none;
    margin-top: 9px;
  }
  .home-explore p {
    font-size: 12px;
    max-width: none;
    margin-top: 6px;
  }
  .home-explore > a > svg {
    right: 2px;
    top: 49%;
  }
  .site-footer {
    padding: 42px 20px 23px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .footer-top > div {
    grid-column: 1/-1;
  }
  .footer-top .wordmark {
    font-size: 28px;
  }
  .footer-top p {
    font-size: 12px;
  }
  .footer-top nav {
    font-size: 12px;
    gap: 10px;
  }
  .footer-bottom {
    font-size: 12px;
    line-height: 1.7;
    margin-top: 30px;
    gap: 18px;
  }
  .footer-bottom p {
    max-width: 240px;
  }
  .footer-bottom a {
    white-space: nowrap;
  }
  .page-shell {
    padding: 29px 20px 45px;
  }
  .page-head {
    margin-bottom: 28px;
  }
  .page-head h1 {
    font-size: clamp(2.5rem, 10vw, 3.3rem);
    margin-bottom: 18px;
    overflow-wrap: anywhere;
  }
  .page-head > p {
    font-size: 15px;
    line-height: 1.8;
  }
  .page-head .eyebrow {
    font-size: 12px;
  }
  .breadcrumbs {
    font-size: 12px;
    margin-bottom: 24px;
  }
  .toolbar {
    align-items: stretch;
    gap: 12px;
  }
  .toolbar .input {
    width: 100%;
  }
  .filters {
    gap: 7px;
    margin: 20px 0;
  }
  .chip {
    font-size: 12px;
    padding: 7px 11px;
    min-height: 40px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .tool-card {
    padding: 23px 20px;
    border-radius: 9px;
  }
  .tool-card h2 {
    font-size: 27px;
  }
  .tool-card .button {
    width: 100%;
  }
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .result-stat {
    padding: 18px 15px;
    font-size: 12px;
  }
  .result-stat strong,
  .result-stat b {
    font-size: 29px;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .content-card > img,
  .content-card > a > img,
  .recipe-image {
    height: 230px;
  }
  .content-card > div,
  .content-card > .card-content,
  .content-card > a:not(:has(img)) {
    padding: 20px;
  }
  .content-card h2,
  .content-card h3 {
    font-size: 25px;
  }
  .content-card p {
    font-size: 14px;
  }
  .pagination {
    gap: 6px;
  }
  .pagination a,
  .pagination button {
    font-size: 12px;
    min-width: 38px;
  }
  .article-layout {
    gap: 25px;
  }
  .article-body {
    font-size: 16px;
    line-height: 1.9;
  }
  .article-body h2 {
    font-size: 28px;
    margin-top: 33px;
  }
  .article-body h3 {
    font-size: 24px;
  }
  .article-body > img {
    max-height: 280px;
  }
  .article-toc {
    padding: 20px;
    font-size: 12px;
  }
  .article-toc h2,
  .article-toc h3 {
    font-size: 24px;
  }
  .article-body blockquote {
    padding: 18px 20px;
  }
  .meal-day {
    padding: 20px 18px;
  }
  .meal-row {
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
    padding: 15px 0;
  }
  .meal-row > span:first-child {
    grid-column: 1/-1;
    font-size: 12px;
    margin-bottom: 4px;
  }
  .meal-row p {
    font-size: 12px;
  }
  .forum-topic {
    padding: 20px;
  }
  .forum-topic h2,
  .forum-topic h3 {
    font-size: 24px;
  }
  .forum-topic p {
    font-size: 14px;
  }
  .notice {
    font-size: 12px;
    padding: 13px 16px;
  }
  .editor-form {
    gap: 18px;
  }
  .editor-form .button {
    justify-self: stretch;
  }
  table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
  }
  th,
  td {
    padding: 11px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .filters,
  .toolbar,
  .article-toc,
  button {
    display: none !important;
  }
  body {
    background: white;
  }
  .page-shell {
    padding: 0;
    max-width: none;
  }
  .article-layout {
    display: block;
  }
  .notice {
    border: 1px solid #aaa;
  }
  .meal-day {
    break-inside: avoid;
  }
}

@media (max-width: 600px) {
  input,
  select,
  textarea,
  .search-field input,
  .calculator-form-row input,
  .input,
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
}

/* Interactive calculators, weekly menus and workout programmes. */
.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 36px;
  align-items: start;
}
.calculator-search {
  position: sticky;
  top: 22px;
}
.calculator-search h2 {
  font-size: 30px;
}
.tool-search {
  position: relative;
  display: block;
}
.tool-search > svg {
  position: absolute;
  left: 13px;
  top: 16px;
  color: #6e7667;
}
.tool-search .input {
  padding-left: 41px;
}
.food-search-results {
  max-height: 280px;
  overflow: auto;
  border: 1px solid #aab59f;
  border-radius: 7px;
  background: #fffcf6;
  margin: 12px 0 20px;
}
.food-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 15px;
  border: 0;
  border-bottom: 1px solid #e5e7dc;
  background: transparent;
  padding: 12px 13px;
  font-size: 14px;
  line-height: 1.5;
}
.food-option:last-child {
  border-bottom: 0;
}
.food-option small {
  flex-shrink: 0;
  color: #746872;
  font-size: 12px;
}
.food-option:hover,
.food-option.selected {
  background: #eee0e6;
}
.food-option.selected {
  box-shadow: inset 3px 0 var(--plum);
}
.food-no-results {
  padding: 18px;
  font-size: 14px;
}
.portion-field {
  max-width: 150px;
}
.calculator-search > .button {
  width: 100%;
}
.custom-food-toggle {
  border: 0;
  border-bottom: 1px solid #927d7c;
  background: transparent;
  color: var(--plum);
  padding: 0 0 3px;
  margin-top: 22px;
  font-size: 13px;
}
.custom-food-form {
  padding-top: 20px;
  margin-top: 21px;
  border-top: 1px solid #a9b39d;
}
.custom-food-form h3 {
  font-size: 26px;
}
.custom-food-form > .field {
  margin-bottom: 15px;
}
.custom-food-form .form-grid {
  gap: 13px;
}
.diary-panel > .toolbar {
  margin-top: 0;
  margin-bottom: 20px;
}
.diary-panel > .toolbar h2 {
  font-size: 33px;
}
.clear-diary {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b79aa7;
  padding: 0 0 3px;
  font-size: 12px;
}
.diary-panel .result-grid {
  margin: 0 0 25px;
  gap: 10px;
}
.diary-panel .result-stat {
  padding: 18px 12px;
  font-size: 12px;
}
.diary-panel .result-stat strong {
  font-size: 28px;
}
.empty-diary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  width: 57px;
  height: 57px;
  border: 1px solid #bda9b2;
  border-radius: 50%;
  color: var(--plum);
}
.diary-panel .empty-state h3 {
  margin-bottom: 14px;
}
.diary-entry {
  display: grid;
  grid-template-columns: 1fr 105px 35px;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.diary-entry p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.diary-entry > label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.diary-entry .input {
  min-height: 39px;
  padding: 8px;
  font-size: 14px;
}
.tool-status {
  margin-top: 20px;
  min-height: 22px;
  font-size: 13px;
  color: var(--plum);
}
.plans-selector {
  padding: 27px 30px;
  background: var(--plum);
  border-radius: 11px;
  color: var(--cream);
}
.plans-selector > .eyebrow {
  margin-bottom: 20px;
}
.calorie-targets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.calorie-target {
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  border: 1px solid #bfa6b1;
  background: var(--cream);
  color: var(--plum) !important;
  box-shadow: 0 3px 0 #381928;
  transition:
    background 0.2s,
    transform 0.2s;
}
.calorie-target strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.1;
}
.calorie-target span {
  font-size: 12px;
}
.calorie-target:hover {
  transform: translateY(-2px);
  background: white;
}
.calorie-target.active {
  border: 2px solid #f1dca4;
  outline: 2px solid #f1dca4;
  outline-offset: 3px;
}
.plan-actions {
  justify-content: flex-start;
  gap: 12px;
}
.shopping-list {
  list-style: none;
  padding: 0;
  margin: 23px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.shopping-list li {
  border-bottom: 1px solid var(--line);
}
.shopping-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
}
.shopping-list input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.shopping-list strong {
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
}
.shopping-list label:has(input:checked) span {
  text-decoration: line-through;
  color: #8d817f;
}
.day-tabs {
  display: flex;
  overflow: auto;
  gap: 8px;
  margin: 28px 0 0;
  padding: 6px 0 10px;
}
.day-tab {
  flex: 1;
  white-space: nowrap;
  background: #eee7dc;
  border: 1px solid #d3c9bd;
  min-height: 46px;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 13px;
}
.day-tab.active {
  background: var(--plum);
  color: white !important;
  border-color: var(--plum);
}
.meal-plan-panel {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 12px;
}
.plan-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.plan-day-heading h2 {
  font-size: 35px;
}
.plan-day-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.plan-meals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.plan-meal {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
  background: var(--paper);
}
.meal-order {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 13px;
}
.plan-meal h3 {
  font-size: 27px;
  line-height: 1.25;
  margin-bottom: 22px;
}
.plan-meal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 19px;
}
.plan-meal li {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #e7ded5;
  font-size: 14px;
}
.plan-meal li strong {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.plan-meal > p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.workout-builder {
  background: var(--sage);
  border-color: var(--sage);
}
.workout-builder .button {
  margin-top: 25px;
}
.workout-program {
  margin-top: 40px;
}
.workout-program .toolbar {
  align-items: flex-end;
}
.workout-program .toolbar .eyebrow {
  color: var(--plum);
  margin-bottom: 10px;
}
.workout-program .toolbar h2 {
  font-size: 35px;
}
.workout-summary {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}
.workout-preparation {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: #efe6d7;
  border-radius: 8px;
  padding: 21px 24px;
  margin: 23px 0;
}
.workout-preparation svg {
  flex-shrink: 0;
  color: var(--plum);
  margin-top: 3px;
}
.workout-preparation p {
  font-size: 14px;
  line-height: 1.85;
  color: #6e5949;
}
.workout-session-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
}
.workout-session {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
.workout-session > .eyebrow {
  color: var(--plum);
  font-size: 11px;
  margin-bottom: 13px;
}
.workout-session > h3 {
  font-size: 29px;
  margin-bottom: 24px;
}
.workout-session ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.workout-session li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.workout-session h4 {
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 7px;
}
.exercise-dose {
  font-size: 12px;
  color: var(--plum);
  font-weight: 500;
}
.workout-session li p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.workout-rest {
  background: #eee7dc;
  padding: 13px 16px;
  border-radius: 5px;
  font-size: 12px;
  color: #745b64;
  line-height: 1.8;
}
@media (max-width: 850px) {
  .calculator-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .calculator-search {
    position: static;
  }
  .food-search-results {
    max-height: 240px;
  }
  .diary-panel .result-stat {
    padding: 18px;
  }
  .plan-meals {
    gap: 18px;
  }
  .day-tab {
    font-size: 12px;
  }
  .workout-session-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workout-session {
    padding: 22px;
  }
}
@media (max-width: 600px) {
  .calculator-search h2 {
    font-size: 28px;
  }
  .food-option {
    font-size: 14px;
    padding: 13px 12px;
  }
  .food-option small {
    font-size: 11px;
  }
  .portion-field {
    max-width: none;
  }
  .custom-food-form .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .custom-food-toggle {
    font-size: 12px;
    text-align: left;
  }
  .diary-panel .toolbar {
    align-items: center;
    gap: 15px;
  }
  .diary-panel > .toolbar h2 {
    font-size: 31px;
  }
  .clear-diary {
    font-size: 11px;
  }
  .diary-panel .result-stat {
    padding: 18px 15px;
  }
  .diary-entry {
    grid-template-columns: 1fr 95px 30px;
    gap: 9px;
    font-size: 13px;
  }
  .diary-entry .input {
    font-size: 16px;
  }
  .tool-status {
    font-size: 12px;
  }
  .plans-selector {
    padding: 24px 21px;
  }
  .calorie-targets {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .calorie-target {
    padding: 19px 12px;
  }
  .calorie-target strong {
    font-size: 36px;
  }
  .calorie-target span {
    font-size: 11px;
  }
  .plan-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .shopping-list {
    grid-template-columns: 1fr;
  }
  .shopping-list label {
    font-size: 13px;
  }
  .day-tabs {
    gap: 7px;
    margin-top: 22px;
  }
  .day-tab {
    min-width: 106px;
  }
  .plan-day-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .plan-day-heading h2 {
    font-size: 32px;
  }
  .plan-meals {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .plan-meal {
    padding: 23px 20px;
  }
  .plan-meal h3 {
    font-size: 27px;
  }
  .plan-meal li {
    font-size: 13px;
  }
  .plan-meal > p {
    font-size: 13px;
  }
  .workout-builder .button {
    width: 100%;
  }
  .workout-program .toolbar {
    align-items: stretch;
  }
  .workout-program .toolbar h2 {
    font-size: 31px;
  }
  .workout-program .toolbar > .button {
    width: 100%;
    margin-top: 10px;
  }
  .workout-summary {
    font-size: 13px;
    line-height: 1.8;
  }
  .workout-preparation {
    padding: 18px;
    gap: 12px;
  }
  .workout-preparation p {
    font-size: 13px;
  }
  .workout-session-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .workout-session {
    padding: 23px;
  }
  .workout-session > h3 {
    font-size: 28px;
  }
  .workout-session h4 {
    font-size: 23px;
  }
  .workout-session li p {
    font-size: 14px;
  }
}
@media print {
  .plans-selector,
  .plan-actions,
  .day-tabs,
  .calculator-search,
  .workout-builder,
  .workout-program .toolbar > .button {
    display: none !important;
  }
  .workout-session {
    break-inside: avoid;
  }
  .plan-meal {
    break-inside: avoid;
  }
  .meal-plan-panel {
    border: 0;
  }
}

.print-week {
  display: none;
}
@media print {
  .meal-plan-panel {
    display: none;
  }
  .print-week {
    display: block;
  }
  .print-day {
    break-before: page;
    padding-top: 20px;
  }
  .print-day h3 {
    font-size: 26px;
    margin-bottom: 18px;
  }
  .print-day h4 {
    font-size: 20px;
    margin: 20px 0 9px;
  }
  .print-day p {
    font-size: 12px;
    line-height: 1.7;
  }
}

.plan-weight-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 12px;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 12px 24px;
  background: var(--plum);
  color: white;
  z-index: 100;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.article-cover {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 36px;
}
.article-heading {
  max-width: 960px;
}
.article-toc > a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.aside-offer {
  margin-top: 28px;
  background: var(--sage);
  padding: 24px;
  border-radius: 12px;
}
.aside-offer h3 {
  margin-bottom: 15px;
}
.aside-offer p {
  margin-bottom: 20px;
}
.article-note {
  font-size: 14px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.article-body section {
  scroll-margin-top: 100px;
  margin: 32px 0;
}
.article-body ul {
  list-style: disc;
  padding-left: 24px;
}
.article-body li {
  margin: 8px 0;
}
.article-body a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-body h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}
.listing-count {
  margin: 24px 0;
  font-size: 14px;
  color: var(--muted);
}
.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 44px;
}
.forum-layout aside {
  align-self: start;
}
.forum-topic {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 20px 0;
}
.forum-topic h3 {
  margin: 8px 0 14px;
}
.forum-topic p {
  margin-bottom: 15px;
}
.forum-topic small {
  font-size: 14px;
  color: var(--muted);
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.forum-form {
  display: grid;
  gap: 20px;
}
.forum-form h2 {
  font-size: 30px;
}
.forum-form .muted {
  font-size: 14px;
}
.narrow {
  max-width: 860px;
}
.editor-shell {
  max-width: 1440px;
}
.editor-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 35px;
}
.editor-scroll {
  max-height: 75vh;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.editor-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px 12px;
  background: transparent;
}
.editor-item:hover,
.editor-item.selected {
  background: var(--sage);
}
.editor-item span {
  display: block;
  font-size: 15px;
}
.editor-item small {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.editor-form {
  display: grid;
  gap: 20px;
}
.editor-form h2 {
  font-size: 32px;
}
.editor-body-input {
  font-family: var(--sans);
  line-height: 1.7;
  font-size: 16px;
}
.editor-status {
  color: var(--plum);
  font-size: 15px;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 12px;
}
.check-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--plum);
}
.access-form {
  margin-top: 40px;
  display: grid;
  gap: 18px;
}
.access-form h2 {
  font-size: 28px;
}
.card-copy {
  padding: 22px;
}
.card-copy .eyebrow {
  font-size: 12px;
}
.card-copy p {
  font-size: 15px;
}
.card-photo {
  display: block;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.35s;
}
.card-photo:hover img {
  transform: scale(1.025);
}
.card-copy h3 {
  margin: 10px 0 14px;
}
.card-copy .text-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
}
.article-body {
  overflow-wrap: anywhere;
}
.toolbar {
  align-items: flex-end;
}
.toolbar > .field {
  flex: 1;
}
.toolbar > .button {
  align-self: flex-end;
}
.content-card {
  overflow: hidden;
}
.page-head > p {
  max-width: 760px;
}
textarea.input {
  resize: vertical;
  min-height: 100px;
}
@media (max-width: 850px) {
  .forum-layout,
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-scroll {
    max-height: 260px;
  }
  .editor-layout {
    gap: 32px;
  }
  .article-toc {
    position: static;
  }
  .article-body section {
    margin: 28px 0;
  }
}
@media (max-width: 600px) {
  .card-copy {
    padding: 20px;
  }
  .article-body {
    font-size: 17px !important;
  }
  .forum-topic {
    padding: 22px;
  }
  .article-cover {
    border-radius: 8px;
  }
  .page-head {
    margin-bottom: 28px;
  }
  .toolbar {
    display: grid !important;
    grid-template-columns: 1fr;
  }
  .toolbar > .button {
    width: 100%;
  }
  .article-layout {
    gap: 24px;
  }
  .editor-form.tool-card {
    padding: 20px;
  }
  .editor-status {
    line-height: 1.6;
  }
  .page-head h1 {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
  }
  .article-toc {
    display: none;
  }
  .card-copy .eyebrow {
    font-size: 13px;
  }
  .card-copy p {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .editor-library,
  .access-form {
    display: none !important;
  }
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/font-0.ttf) format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/font-1.ttf) format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/font-2.ttf) format("truetype");
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/font-3.ttf) format("truetype");
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/font-4.ttf) format("truetype");
}

/* Section photography belongs to the section opening; article listings stay editorial. */
.section-page-heading {
  --section-ground: #eee4e8;
  --section-accent: #5f273f;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  min-height: 285px;
  margin: 8px 0 38px;
  overflow: hidden;
  border: 1px solid rgb(82 55 58 / 9%);
  border-radius: 13px;
  background: var(--section-ground);
}

.section-page-copy {
  align-self: center;
  min-width: 0;
  padding: 33px 38px 35px;
}

.section-page-copy > .eyebrow {
  margin-bottom: 15px;
  color: var(--section-accent);
  font-size: 12px;
  font-weight: 600;
}

.section-page-copy h1 {
  max-width: 730px;
  color: var(--ink);
  font-size: clamp(2.25rem, 3.45vw, 3.35rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
  overflow-wrap: normal;
  hyphens: manual;
}

.section-page-description {
  max-width: 570px;
  margin-top: 18px;
  color: #62555b;
  font-size: 16px;
  line-height: 1.8;
}

.section-page-photo {
  position: relative;
  min-width: 0;
  min-height: 285px;
  align-self: stretch;
  overflow: hidden;
  background: #e8ded4;
}

.section-page-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 285px;
  object-fit: cover;
  object-position: center;
}

.section-page-plans {
  --section-ground: #ecdee4;
  --section-accent: #6b304c;
}

.section-page-calculator {
  --section-ground: #dce4d2;
  --section-accent: #415538;
}

.section-page-recipes {
  --section-ground: #f1e2bd;
  --section-accent: #775124;
}

.section-page-journal {
  --section-ground: #eee2d8;
  --section-accent: #744c45;
}

.section-page-workouts {
  --section-ground: #e3e3d9;
  --section-accent: #4e5a40;
}

.section-page-products {
  --section-ground: #e4e8d4;
  --section-accent: #4c6039;
}

.section-page-supplements {
  --section-ground: #e1e8eb;
  --section-accent: #3e5b67;
}

.section-page-forum {
  --section-ground: #f0dfd7;
  --section-accent: #89533e;
}

.editorial-index-page > .toolbar {
  margin: 0 0 27px;
}

.editorial-index-page > .listing-count {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.editorial-index-page > .card-grid,
.article-detail-page .section-block > .card-grid {
  gap: 24px;
  align-items: stretch;
}

.editorial-card {
  --editorial-accent: #754356;
  --editorial-ground: #fffcf7;
  position: relative;
  height: 100%;
  border: 1px solid #d9cfc6;
  border-top: 3px solid var(--editorial-accent);
  border-radius: 7px;
  background: var(--editorial-ground);
  box-shadow: none;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.editorial-card[data-category="Питание"] {
  --editorial-accent: #63724f;
  --editorial-ground: #f8faf3;
}

.editorial-card[data-category="Рецепты"] {
  --editorial-accent: #a17b37;
  --editorial-ground: #fffcf5;
}

.editorial-card[data-category="Планы питания"] {
  --editorial-accent: #79425b;
  --editorial-ground: #fcf7fa;
}

.editorial-card[data-category="Движение"] {
  --editorial-accent: #5f7274;
  --editorial-ground: #f6f9f8;
}

.editorial-card[data-category="Привычки"] {
  --editorial-accent: #a66b51;
  --editorial-ground: #fff9f5;
}

.editorial-card[data-category="Натуральные продукты"] {
  --editorial-accent: #6a7a41;
  --editorial-ground: #fafbf4;
}

.editorial-card[data-category="БАДы"] {
  --editorial-accent: #587785;
  --editorial-ground: #f5f9fa;
}

.editorial-card:hover,
.editorial-card:focus-within {
  border-color: var(--editorial-accent);
  box-shadow: 0 7px 22px rgb(60 36 40 / 5%);
  transform: translateY(-2px);
}

.editorial-card > .card-copy {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 290px;
  padding: 25px 25px 26px;
}

.editorial-card .card-copy > .eyebrow {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(90 62 60 / 14%);
  color: var(--editorial-accent);
  font-size: 12px;
  line-height: 1.5;
}

.editorial-card .card-copy h3 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.editorial-card .card-copy h3 a {
  display: inline;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.editorial-card .card-copy h3 a:hover {
  color: var(--plum);
  text-decoration: underline;
}

.editorial-card .card-copy > p {
  margin: 0 0 27px;
  color: #6a5d63;
  font-size: 16px;
  line-height: 1.8;
}

.editorial-card .card-copy > .text-link {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 3px;
  color: var(--plum);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
  border-bottom-color: #b797a5;
}

.editorial-card .card-copy > .text-link:hover {
  border-bottom-color: var(--plum);
}

.article-detail-page .article-heading {
  max-width: 1010px;
  padding: 6px 0 35px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.article-detail-page .article-heading > .eyebrow {
  margin-bottom: 20px;
  color: var(--plum);
  font-size: 12px;
}

.article-detail-page .article-heading h1 {
  max-width: 960px;
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.article-detail-page .article-heading > p {
  max-width: 790px;
  margin-top: 23px;
  font-size: 18px;
  line-height: 1.85;
}

.article-detail-page .article-body > section:first-of-type {
  margin-top: 0;
}

.article-detail-page .article-body > section:first-of-type h2 {
  margin-top: 0;
}

.article-detail-page .section-block {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1000px) {
  .section-page-heading {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    min-height: 285px;
  }

  .section-page-copy {
    padding: 28px;
  }

  .section-page-copy h1 {
    font-size: 37px;
  }

  .section-page-description {
    font-size: 15px;
    line-height: 1.75;
  }

  .editorial-card > .card-copy {
    padding: 23px;
  }
}

@media (max-width: 700px) {
  .section-page-heading {
    grid-template-columns: 1fr;
    margin-top: 0;
    margin-bottom: 29px;
    border-radius: 10px;
  }

  .section-page-copy {
    padding: 26px 24px 28px;
  }

  .section-page-copy > .eyebrow {
    margin-bottom: 13px;
    font-size: 12px;
  }

  .section-page-copy h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 7.8vw, 2.65rem);
    line-height: 1.17;
  }

  .section-page-description {
    margin-top: 17px;
    font-size: 16px;
    line-height: 1.8;
  }

  .section-page-photo,
  .section-page-photo img {
    height: 195px;
    min-height: 195px;
  }

  .section-page-photo img {
    object-position: center 53%;
  }

  .editorial-index-page > .card-grid,
  .article-detail-page .section-block > .card-grid {
    gap: 19px;
  }

  .editorial-card > .card-copy {
    min-height: 0;
    padding: 24px;
  }

  .editorial-card .card-copy > .eyebrow {
    margin-bottom: 17px;
    font-size: 12px;
  }

  .editorial-card .card-copy h3 {
    font-size: 27px;
    line-height: 1.3;
  }

  .editorial-card .card-copy > p {
    margin-bottom: 23px;
    font-size: 16px;
    line-height: 1.85;
  }

  .editorial-card .card-copy > .text-link {
    font-size: 14px;
  }

  .article-detail-page .article-heading {
    padding-top: 0;
    padding-bottom: 27px;
    margin-bottom: 30px;
  }

  .article-detail-page .article-heading h1 {
    font-size: clamp(2.15rem, 8.8vw, 3rem);
    line-height: 1.18;
  }

  .article-detail-page .article-heading > p {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.85;
  }

  .article-detail-page .section-block {
    margin-top: 40px;
    padding-top: 25px;
  }
}

@media print {
  .section-page-heading {
    display: block;
    min-height: 0;
    border: 0;
    background: white;
  }

  .section-page-copy {
    padding: 0;
  }

  .section-page-photo {
    display: none;
  }

  .editorial-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
