:root {
  color-scheme: light;
  --ink: #26342f;
  --ink-soft: #53625c;
  --muted: #737b76;
  --paper: #faf9f6;
  --surface: #ffffff;
  --surface-soft: #f3f4ef;
  --line: #e3e6df;
  --sage: #345e53;
  --sage-dark: #294b42;
  --sage-light: #dcece5;
  --lavender: #eee8f5;
  --lavender-dark: #9f8ab8;
  --peach: #f2dfd0;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --shadow-soft: 0 16px 45px rgb(38 52 47 / 7%);
  --shadow-card: 0 8px 28px rgb(38 52 47 / 6%);
  --content-width: 1160px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input {
  font-family: var(--font-body);
}

img,
svg {
  display: block;
  max-width: 100%;
}

svg {
  height: auto;
}

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

button {
  color: inherit;
}

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

a:hover {
  color: var(--sage-dark);
}

:focus-visible {
  outline: 3px solid #a889c5;
  outline-offset: 4px;
  border-radius: 4px;
}

::selection {
  background: #dcece5;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--content-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  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;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--sage-dark);
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: white;
}

/* Header and navigation */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgb(38 52 47 / 7%);
  background: rgb(250 249 246 / 94%);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  width: min(calc(100% - 2rem), 1320px);
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand:hover {
  color: var(--sage);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 10px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-lines::before {
  transform: translateY(-5px);
}

.menu-lines::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] .menu-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-lines::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-lines::after {
  transform: rotate(-45deg);
}

.primary-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  display: none;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.menu-toggle[aria-expanded="true"] + .primary-nav {
  display: grid;
}

.primary-nav a {
  padding: 0.72rem 0.85rem;
  border-radius: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--sage-dark);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.55rem;
  color: var(--sage-dark);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta span {
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.header-cta:hover span {
  transform: translate(2px, -2px);
}

/* Shared type and controls */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.75rem, 10vw, 5.2rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
}

h3 {
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 62ch;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 2.5vw, 1.2rem);
  line-height: 1.75;
}

.small-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 7px 18px rgb(52 94 83 / 16%);
}

.button-primary:hover {
  background: var(--sage-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgb(52 94 83 / 21%);
}

.button-secondary {
  border-color: #cbd8d1;
  background: #fff;
  color: var(--sage-dark);
}

.button-secondary:hover {
  border-color: #9fb9ad;
  background: #f3f7f3;
  color: var(--sage-dark);
}

.text-link,
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--sage-dark);
  font-size: 0.91rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link span,
.card-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.card-link:hover span {
  transform: translateX(4px);
}

.text-button {
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--sage-dark);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Home hero */
.hero {
  display: grid;
  gap: 2.6rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 4.4rem;
}

.hero-copy {
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  margin-top: 1.75rem;
}

.hero-art,
.subhero-art {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(38 52 47 / 7%);
  border-radius: var(--radius-lg);
  background: #f0f1ec;
  box-shadow: var(--shadow-soft);
}

.hero-art svg {
  width: 100%;
}

.art-caption {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  left: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 999px;
  background: rgb(250 249 246 / 82%);
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* Sections and charts */
.rhythm-section,
.topics-section {
  padding-top: 1rem;
  padding-bottom: 4.6rem;
}

.section-heading {
  display: grid;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  max-width: 18ch;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 55ch;
  margin-bottom: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.chart-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.chart-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.chart-title h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.chart-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.chart-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.stacked-chart {
  padding: 0.2rem 0 0.4rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 5.8rem minmax(0, 1fr) 2.2rem;
  align-items: center;
  gap: 0.55rem;
}

.bar-label,
.bar-total {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.bar-total {
  text-align: right;
  font-weight: 750;
}

.stack {
  display: flex;
  height: 2rem;
  overflow: hidden;
  border-radius: 0.45rem;
  background: #f0f1ed;
}

.seg {
  display: block;
  width: var(--w);
  min-width: 0;
}

.work,
.dot.work {
  background-color: #83aa9b;
}

.sleep,
.dot.sleep {
  background-color: #bca9d2;
}

.care,
.dot.care {
  background-color: #e2b99c;
}

.leisure,
.dot.leisure {
  background-color: #dfd6a8;
}

.other,
.dot.other {
  background-color: #b7c8c0;
}

.axis {
  display: flex;
  justify-content: space-between;
  margin: 0.65rem 2.75rem 0 6.35rem;
  color: #858c87;
  font-size: 0.66rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  display: inline-block;
  width: 0.63rem;
  height: 0.63rem;
  flex: 0 0 auto;
  border-radius: 50%;
}

.chart-summary {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.65;
}

.chart-summary strong {
  color: var(--ink);
}

/* Topic cards */
.topic-list {
  display: grid;
  gap: 1.2rem;
}

.topic-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 6px 22px rgb(38 52 47 / 4%);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.topic-image {
  overflow: hidden;
  background: var(--surface-soft);
}

.topic-image svg {
  width: 100%;
  transition: transform 350ms ease;
}

.topic-card:hover .topic-image svg {
  transform: scale(1.025);
}

.topic-content {
  padding: 1.35rem;
}

.topic-content .eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.66rem;
}

.topic-content h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.topic-content > p:not(.eyebrow) {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.tag-row span {
  padding: 0.32rem 0.62rem;
  border: 1px solid #e5e7e1;
  border-radius: 999px;
  background: #f8f8f5;
  color: #68736d;
  font-size: 0.68rem;
  font-weight: 650;
}

.card-link {
  font-size: 0.85rem;
}

/* Process section */
.process-section {
  padding: 4.3rem 0;
  background: #f0f2ed;
}

.process-grid {
  display: grid;
  gap: 2.7rem;
  align-items: center;
}

.process-copy h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
}

.process-copy > p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  gap: 1.2rem;
  margin: 1.8rem 0 1.7rem;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.8rem;
}

.steps li > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.68rem;
  font-weight: 850;
}

.steps strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
  font-size: 0.94rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.process-visual {
  position: relative;
  padding-bottom: 2.5rem;
}

.process-visual > svg {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.mini-chart {
  position: relative;
  width: min(100% - 1rem, 420px);
  margin: -1.5rem auto 0;
  padding: 1.1rem;
}

.mini-chart .chart-title {
  margin-bottom: 0.8rem;
}

.mini-bars {
  display: grid;
  gap: 0.65rem;
}

.mini-bars > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0.45rem;
}

.mini-bars span,
.mini-bars b {
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.mini-bars b {
  text-align: right;
}

.mini-bars i,
.hbar-row i {
  display: block;
  width: var(--bar);
  height: 0.58rem;
  border-radius: 99px;
  background: linear-gradient(90deg, #a6c7b9, #8eaa9d);
}

.mini-chart .chart-summary {
  font-size: 0.75rem;
}

/* Closing callout */
.closing-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  margin-top: 3.4rem;
  margin-bottom: 4rem;
  padding: 2rem;
  border: 1px solid #e4e1e9;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #f2edf7 0%, #edf3ed 100%);
}

.closing-band h2 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

/* Guide page hero and article */
.subhero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3.2rem;
}

.subhero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.65rem, 9vw, 4.65rem);
}

.subhero-copy .small-note {
  margin-top: 1rem;
}

.subhero-art svg {
  width: 100%;
}

.article-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 4.5rem;
}

.article-copy {
  min-width: 0;
  max-width: 76ch;
}

.article-copy h2 {
  margin: 2.8rem 0 0.9rem;
  font-size: clamp(1.7rem, 4.5vw, 2.25rem);
  line-height: 1.16;
}

.article-copy > h2:first-child {
  margin-top: 0;
}

.article-copy p {
  margin-bottom: 1.15rem;
  color: #4f5d57;
  font-size: 0.98rem;
  line-height: 1.85;
}

.article-copy strong {
  color: var(--ink);
}

.article-aside {
  display: grid;
  gap: 1rem;
}

.aside-art {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.aside-art svg {
  width: 100%;
}

.aside-art svg text,
.chart-svg text {
  fill: #59665f;
  font-family: var(--font-body);
  font-size: 12px;
}

.aside-art > p {
  margin: 0;
  padding: 1rem 1.15rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.aside-art > p strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.aside-note {
  padding: 1.25rem;
  border: 1px solid #e7e0ee;
  border-radius: var(--radius-md);
  background: #f3eff7;
}

.aside-note .eyebrow {
  margin-bottom: 0.45rem;
}

.aside-note p:last-child {
  margin: 0;
  color: #4f5d57;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Interactive visualizations */
.interactive-card {
  margin: 2rem 0 2.3rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.2rem 0 1.25rem;
}

.selector-button {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.selector-button:hover {
  border-color: #afc4b8;
  color: var(--sage-dark);
}

.selector-button.is-selected,
.selector-button[aria-pressed="true"] {
  border-color: var(--sage);
  background: var(--sage);
  color: #fff;
}

.chart-svg {
  width: 100%;
  min-height: 130px;
  border-radius: var(--radius-sm);
  background: #f4f6f2;
}

.chart-svg text {
  font-size: 11px;
  font-weight: 650;
}

.horizontal-bars {
  display: grid;
  gap: 1rem;
  padding: 0.4rem 0;
}

.hbar-row {
  display: grid;
  grid-template-columns: 3.8rem minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: 0.7rem;
}

.hbar-row > span,
.hbar-row > b {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.hbar-row > b {
  text-align: right;
}

.hbar-row i {
  height: 0.85rem;
  background: linear-gradient(90deg, #a8cbbc, #81a293);
}

.week-grid {
  display: grid;
  grid-template-columns: minmax(5.2rem, 1.2fr) repeat(7, minmax(1rem, 1fr));
  gap: 0.55rem 0.38rem;
  align-items: center;
  overflow-x: auto;
  padding: 0.35rem 0 0.65rem;
}

.week-grid > b {
  color: var(--muted);
  font-size: 0.66rem;
  text-align: center;
}

.week-grid > span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.3;
}

.week-grid > i {
  display: block;
  width: var(--fill);
  min-width: 0.25rem;
  height: 0.8rem;
  border-radius: 99px;
  background: #81a997;
}

.week-grid > i.muted {
  background: #d6b297;
}

.timeline-hours {
  padding: 0.75rem 0.2rem 0.2rem;
}

.time-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.timeline-track {
  position: relative;
  height: 2rem;
  overflow: hidden;
  border: 1px solid #e1e5df;
  border-radius: 0.55rem;
  background-color: #f5f6f2;
  background-image: linear-gradient(to right, transparent calc(25% - 1px), #e1e5df 25%, transparent calc(25% + 1px));
  background-size: 25% 100%;
}

.timeline-track i {
  position: absolute;
  top: 0.23rem;
  left: var(--start);
  width: var(--width);
  height: 1.4rem;
  border-radius: 0.3rem;
}

.timeline-track .sleep {
  background: #bca9d2;
}

.timeline-track .work {
  background: #83aa9b;
}

.timeline-track .care {
  background: #e2b99c;
}

.timeline-track .leisure {
  background: #dfd6a8;
}

.timeline-hours .legend {
  margin-top: 0.95rem;
}

/* Related reading */
.related-links {
  display: grid;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f5f6f2;
}

.related-links h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e2e6df;
  color: var(--sage-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.related-links a:last-child {
  border-bottom: 0;
}

.related-links a span {
  transition: transform 180ms ease;
}

.related-links a:hover span {
  transform: translateX(4px);
}

/* Footer */
.site-footer {
  padding: 3rem 0 1.2rem;
  background: #263b35;
  color: #e5ece7;
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
}

.footer-brand {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-brand:hover {
  color: #dcece5;
}

.footer-about > p {
  max-width: 36ch;
  margin-bottom: 1rem;
  color: #bdcbc3;
  font-size: 0.87rem;
}

.footer-about address {
  color: #bdcbc3;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.8;
}

.footer-about address strong {
  color: #f1f4f0;
  font-weight: 700;
}

.footer-about address a {
  color: #dcece5;
  overflow-wrap: anywhere;
}

.footer-grid > div:not(.footer-about) h2 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-preferences {
  padding: 0;
  border: 0;
  background: transparent;
  color: #bdcbc3;
  cursor: pointer;
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: left;
  text-decoration: none;
}

.footer-links a:hover,
.footer-preferences:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgb(255 255 255 / 15%);
  color: #aebdb4;
  font-size: 0.73rem;
}

/* Cookie preference panel */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 1.25rem;
  width: auto;
  max-height: min(85vh, 42rem);
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid #94a39b;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #1a2521;
  box-shadow: 0 20px 80px rgba(15, 30, 24, 0.25);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cookie-banner:not([hidden]) {
  animation: bannerSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bannerSlideUp {
  0% { transform: translateY(2rem); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.cookie-copy strong {
  display: block;
  color: #111a16;
  font-size: 1.05rem;
  font-weight: 800;
}

.cookie-copy p,
.cookie-settings > p {
  margin: 0.5rem 0 0;
  color: #31423a;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.cookie-actions .button {
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 750;
}

.cookie-actions .button-secondary {
  border-color: #687e72;
  color: #1b362e;
}

.cookie-actions .button-secondary:hover {
  background: #f0f4f2;
}

.cookie-actions .text-button {
  color: #1b362e;
  font-size: 0.85rem;
}

.cookie-settings {
  display: grid;
  gap: 0.85rem;
  padding-top: 1.1rem;
  border-top: 1px solid #cbd5cf;
}

.cookie-settings label {
  display: flex;
  min-height: 2.2rem;
  align-items: center;
  gap: 0.65rem;
  color: #1f2f27;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-settings label span {
  margin-left: auto;
  color: #4b5952;
  font-size: 0.8rem;
  font-weight: 500;
}

.cookie-settings input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--sage);
  cursor: pointer;
}

@media (min-width: 560px) {
  .wrap {
    width: min(calc(100% - 3.5rem), var(--content-width));
  }

  .header-inner {
    width: min(calc(100% - 3.5rem), 1320px);
  }

  .brand {
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 4.4rem;
  }

  .chart-card {
    padding: 1.55rem;
  }

  .topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .topic-card:last-child .topic-image,
  .topic-card:last-child .topic-content {
    min-width: 0;
  }

  .topic-card:last-child .topic-image svg {
    height: 100%;
    object-fit: cover;
  }

  .closing-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.4rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .cookie-banner {
    right: 1.5rem;
    bottom: 1.5rem;
    left: auto;
    width: min(560px, calc(100vw - 3rem));
    padding: 1.75rem;
  }
}

@media (min-width: 760px) {
  .header-inner {
    min-height: 82px;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .primary-nav a {
    padding: 0.6rem 0.7rem;
    font-size: 0.82rem;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 3.2rem;
    padding-top: 5rem;
    padding-bottom: 5.2rem;
  }

  .hero-art {
    transform: rotate(1deg);
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    gap: 2rem;
    margin-bottom: 2.1rem;
  }

  .topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
  }

  .topic-card:last-child {
    grid-column: auto;
    display: block;
  }

  .topic-content {
    padding: 1.5rem;
  }

  .process-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 3rem;
  }

  .subhero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4.3rem;
  }

  .subhero-art {
    transform: rotate(0.7deg);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3rem;
  }

  .article-aside {
    position: sticky;
    top: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(140px, 0.8fr) minmax(150px, 0.8fr);
    gap: 3rem;
  }
}

@media (min-width: 1020px) {
  .primary-nav {
    gap: 0.3rem;
  }

  .primary-nav a {
    padding-inline: 0.8rem;
    font-size: 0.86rem;
  }

  .hero {
    gap: 4rem;
    padding-top: 5.7rem;
    padding-bottom: 6rem;
  }

  .rhythm-section,
  .topics-section {
    padding-bottom: 5.6rem;
  }

  .topic-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-card:last-child {
    grid-column: auto;
  }

  .process-section {
    padding: 5.5rem 0;
  }

  .process-grid {
    gap: 4rem;
  }

  .subhero {
    gap: 4rem;
    padding-top: 4.7rem;
    padding-bottom: 4.7rem;
  }

  .article-layout {
    grid-template-columns: minmax(0, 760px) 310px;
    justify-content: space-between;
    gap: 4rem;
  }

  .article-copy p {
    font-size: 1rem;
  }

  .footer-grid {
    gap: 4rem;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: min(calc(100% - 1.5rem), var(--content-width));
  }

  .header-inner {
    width: calc(100% - 1.5rem);
  }

  .brand {
    gap: 0.45rem;
    font-size: 0.75rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .bar-row {
    grid-template-columns: 4.9rem minmax(0, 1fr) 2rem;
    gap: 0.35rem;
  }

  .axis {
    margin-left: 5.25rem;
    margin-right: 2.2rem;
  }

  .chart-title {
    flex-wrap: wrap;
  }

  .week-grid {
    grid-template-columns: minmax(4.5rem, 1.1fr) repeat(7, minmax(0.85rem, 1fr));
    gap: 0.45rem 0.25rem;
  }

  .cookie-banner {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    max-height: 80vh;
    padding: 1.15rem;
  }
}

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