@font-face {
  font-family: "Libre Franklin";
  src: url("/fonts/LibreFranklin-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rosarivo";
  src: url("/fonts/Rosarivo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant SC";
  src: url("/fonts/CormorantSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant SC";
  src: url("/fonts/CormorantSC-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya";
  src: url("/fonts/Alegreya-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya";
  src: url("/fonts/Alegreya-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #121316;
  --ink-soft: #26282c;
  --mute: #4a4c50;
  --source: #35373b; /* secondary, stronger than mute for 16px notes */
  --paper: #f3f4f1;
  --accent: #3f4928; /* leaf/beetle green, slightly duller and darker than #5b6f2b; footer band #232b1d */
  --accent-hover: #2c331c;
  --rule: rgba(63, 73, 40, 0.28);
  --s1: 13px;
  --s2: 21px;
  --s3: 34px;
  --s4: 55px;
  --s5: 89px;
  --measure: 720px;
  --rail: 1165px; /* 720 × φ */
  --text-size: 18px;
  --text-leading: 1.6;
  --display: "Cormorant Garamond", "Palatino Linotype", Palatino, "Iowan Old Style", serif;
  --small: "Cormorant SC", "Cormorant Garamond", Palatino, serif;
  --label: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --text: "Alegreya", "Palatino Linotype", Palatino, "Iowan Old Style", serif;
  --banner-ground: #ebece7;
}

html[data-text-size="md"] { --text-size: 18px; }
html[data-text-size="lg"] { --text-size: 20px; }
html[data-text-size="xl"] { --text-size: 22px; }

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

html {
  font-size: var(--text-size);
  background: var(--paper);
  color: var(--ink);
  hanging-punctuation: first last;
}

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

img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
a:hover { color: var(--accent-hover); }
a:focus-visible,
.skip:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--s2);
  top: -89px;
  background: var(--paper);
  padding: 8px 13px;
  z-index: 10;
}
.skip:focus { top: var(--s2); }

.rail {
  width: min(100% - 2 * var(--s4), var(--rail));
  margin-inline: auto;
}

.center {
  text-align: center;
  margin-inline: auto;
}

header.site {
  padding-top: var(--s3);
  padding-bottom: 0;
}
header.site .rail,
footer.site .rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s2);
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}

.brand {
  font-family: var(--display);
  font-size: 1.167rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
}
.brand:hover { color: var(--accent); }

.text-size {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  padding: 5px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  flex: 0 0 auto;
}
.text-size button {
  appearance: none;
  background: transparent;
  border: 0;
  margin: 0;
  color: var(--mute);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
}
.text-size button[data-size="md"] { font-size: 13px; }
.text-size button[data-size="lg"] { font-size: 16px; }
.text-size button[data-size="xl"] { font-size: 21px; }
.text-size button[aria-pressed="true"] {
  color: var(--accent);
  background: rgba(63, 73, 40, 0.12);
}
.text-size button:hover { color: var(--accent); }

nav.menu {
  display: flex;
  justify-content: flex-start;
  gap: var(--s3);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 13px 0;
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.944rem;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
nav.menu a { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
nav.menu a:hover,
nav.menu a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

main { padding-top: var(--s4); padding-bottom: var(--s5); }

.kicker {
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.944rem;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s2);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: 3.055rem;
  line-height: 1.24;
  margin: 0 0 var(--s3);
  letter-spacing: -0.02em;
  font-weight: 500;
}
h2 {
  font-size: 1.889rem;
  line-height: 1.3;
  margin: var(--s4) 0 var(--s2);
  letter-spacing: -0.015em;
  font-weight: 400;
}
h3 {
  font-size: 1.167rem;
  line-height: 1.5;
  margin: var(--s3) 0 var(--s1);
}

p { margin: 0 0 var(--s2); }
p.lead { margin-bottom: var(--s3); }
.mute { color: var(--mute); }
.meta {
  font-size: 0.889rem;
  line-height: 1.6;
  color: var(--source);
}

blockquote.quoted {
  margin: 0 auto var(--s3);
  padding: 0;
  border: 0;
  text-align: center;
  max-width: var(--measure);
}
blockquote.quoted p.prompt {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.167rem;
  line-height: 1.5;
  color: var(--accent);
  margin: 0 0 var(--s2);
  text-wrap: balance;
}
blockquote.quoted p.words {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.889rem;
  line-height: 1.3;
  margin: 0 0 var(--s1);
  text-wrap: balance;
}
.qm { color: var(--accent); font-style: italic; }
blockquote.quoted footer {
  font-family: var(--label);
  font-size: 0.889rem;
  line-height: 1.6;
  color: var(--source);
  font-weight: 500;
}
blockquote.quoted footer a { color: var(--source); font-weight: 600; }
blockquote.quoted footer a:hover { color: var(--accent); }

.pair {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin: var(--s4) 0 var(--s5);
}

.hair {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: var(--s4) 0;
}

.cycle-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s3);
}
.cycle-card {
  flex: 1 1 calc((100% - var(--s3)) / 2);
  max-width: calc((100% - var(--s3)) / 2);
  min-width: 0;
  text-decoration: none;
  font-weight: 500;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  text-align: left;
}
.cycle-card:hover { color: inherit; }
.cycle-card:hover .kicker,
.cycle-card:hover h2 { color: var(--accent); }
.cycle-card img {
  width: 100%;
  aspect-ratio: 1080 / 1350;
  object-fit: cover;
  background: #d8dad4;
}
.cycle-card h2 {
  font-size: 1.167rem;
  line-height: 1.5;
  margin: 0;
}
.cycle-card .kicker { white-space: nowrap; }
.cycle-card p { margin: 0; font-size: 1rem; line-height: var(--text-leading); color: var(--ink-soft); }
/* A lone last row is centered, and its text is centered with it. */
.cycle-card:last-child:nth-child(odd) {
  flex-basis: calc((100% - var(--s3)) / 2);
  max-width: calc((100% - var(--s3)) / 2);
  margin-inline: auto;
  text-align: center;
}

figure.card {
  margin: var(--s4) 0 0;
}
figure.card img {
  width: 100%;
  background: #d8dad4;
}
figure.card figcaption {
  margin-top: var(--s2);
  font-family: var(--label);
  font-size: 0.889rem;
  line-height: 1.6;
  color: var(--source);
  text-align: center;
}

/* Cycle 4: the three cards run side by side on one seamless table, full rail. */
figure.card-run { margin: var(--s4) 0 0; }
figure.card-run .run { display: flex; }
figure.card-run .run img { flex: 1 1 0; min-width: 0; width: 33.333%; background: #f6f4ee; }
figure.card-run figcaption {
  margin-top: var(--s2);
  font-family: var(--label);
  font-size: 0.889rem;
  line-height: 1.6;
  color: var(--source);
  text-align: center;
}
table.sources.sources-wrap td:nth-child(2) { width: 52%; }
table.sources.sources-wrap td:last-child,
table.sources.sources-wrap th:last-child { white-space: normal; }
p.sign {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.167rem;
  line-height: 1.5;
  color: var(--accent);
  margin: var(--s3) 0 0;
}
.q-queue .plan {
  font-family: var(--label);
  font-size: 0.944rem;
  line-height: 1.6;
  color: var(--source);
}

table.sources {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.889rem;
  line-height: 1.6;
  color: var(--source);
  margin: var(--s2) 0 var(--s3);
}
table.sources th,
table.sources td {
  text-align: left;
  vertical-align: top;
  padding: 12px 13px 12px 0;
  border-bottom: 1px solid var(--rule);
}
table.sources th {
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.944rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
table.sources td:last-child,
table.sources th:last-child { white-space: nowrap; }

.log-entry {
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule);
}
.log-entry:first-of-type { border-top: 1px solid var(--rule); }
.narrow .log-entry { text-align: center; }
.log-entry h2 { margin-top: 0; font-size: 1.167rem; line-height: 1.5; }

footer.site {
  padding: 0 0 var(--s5);
  text-align: center;
  font-family: var(--label);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 500;
}
footer.site .rail {
  border-top: 1px solid var(--rule);
  padding-top: var(--s4);
  align-items: center;
  gap: var(--s2);
}
footer.site p { margin: 0; max-width: var(--measure); }
footer.site .credit { margin-top: var(--s3); }
footer.site .mark {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
footer.site a { font-weight: 600; }
footer.site .links a { white-space: nowrap; }

.narrow {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
}


/* The free line, under the home hero. */
p.free {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.167rem;
  line-height: 1.5;
  color: var(--accent);
  margin: calc(-1 * var(--s1)) 0 var(--s3);
  text-wrap: balance;
}

/* The central question, set like the quotes above it. */
.thesis { margin: 0 auto var(--s4); }
.thesis h2 { margin: 0 0 var(--s3); }
.thesis-text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.444rem;
  line-height: 1.5;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
.thesis .kicker { margin: 0 0 var(--s2); }
.thesis-note { margin: 0 0 var(--s2); text-wrap: balance; }
.thesis-history {
  font-family: var(--label);
  font-size: 0.944rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 var(--s3);
}
.thesis .more {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s1) var(--s3);
}
.thesis .more a,
button.share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}
.thesis-card { margin: 0; }
button.share {
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0 var(--s1);
  margin: 0;
  cursor: pointer;
  text-decoration: none;
}
button.share:hover { color: var(--accent-hover); }
.share-status {
  flex-basis: 100%;
  min-height: 1.6em;
  text-align: center;
  font-family: var(--label);
  font-size: 0.944rem;
  color: var(--ink-soft);
}
.q-card { scroll-margin-top: var(--s4); }

/* The daily rhythm: four steps on the shared rail, centered. */
.rhythm {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s3);
}
.rhythm-item {
  flex: 1 1 calc((100% - var(--s3)) / 2);
  max-width: calc((100% - var(--s3)) / 2);
  min-width: 0;
  border-top: 1px solid var(--rule);
  padding-top: var(--s3);
  text-align: center;
}
.rhythm-item .kicker { margin-bottom: var(--s1); }
.rhythm-item p:last-child { margin-bottom: 0; }

/* A centered row of links to the rest of the notebook. */
p.inside {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2) var(--s3);
  margin: var(--s4) 0 0;
}

/* Questions: five cards, a lone last card is centered with its text. */
.q-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s3);
}
.q-card {
  flex: 1 1 calc((100% - var(--s3)) / 2);
  max-width: calc((100% - var(--s3)) / 2);
  min-width: 0;
  border-top: 1px solid var(--rule);
  padding: var(--s3) var(--s2) 0;
  text-align: center;
}
.q-card h2 { margin: 0 0 var(--s2); }
.q-card p:last-child { margin-bottom: 0; }

/* The full source list. */
table.sources.sources-all {
  font-size: 1rem;
  margin-top: var(--s3);
}
table.sources.sources-all td:last-child,
table.sources.sources-all th:last-child { white-space: nowrap; }
table.sources.sources-all td:nth-child(3) { white-space: nowrap; }
table.sources.sources-all td:first-child { width: 46%; }
table.sources.sources-all a { overflow-wrap: anywhere; }

.banner {
  /* Width comes from .rail so the hero shares the header, nav, grid and footer edges. */
  padding: 0;
  background: var(--banner-ground);
  line-height: 0;
}
.banner img {
  width: 100%;
  height: 377px;
  object-fit: cover;
  object-position: center 82%;
  display: block;
}
.banner-cycle img { height: 144px; }
.banner-cycle-0 img { object-position: center 68%; }
.banner-cycle-1 img { object-position: center 80%; }
.banner-cycle-2 img { object-position: center 82%; }
.banner-cycle-3 img { object-position: center 80%; }
.banner-cycle-4 img { object-position: center 76%; }

.deeper {
  margin-top: var(--s5);
  text-align: left;
}
.deeper > h2 {
  text-align: center;
  margin-top: 0;
}
.deeper details {
  border-top: 1px solid var(--rule);
  padding: var(--s3) 0;
}
.deeper details:last-of-type {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.deeper summary {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.167rem;
  line-height: 1.5;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: var(--s2);
}
.deeper summary::-webkit-details-marker,
.deeper summary::marker {
  display: none;
  content: "";
}
.deeper summary::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.35em;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
  flex: 0 0 auto;
  transition: transform 160ms ease;
}
.deeper details[open] summary::before {
  transform: rotate(45deg);
  margin-top: 0.2em;
}
.deeper .panel {
  padding-top: var(--s3);
}
.deeper .panel > :last-child { margin-bottom: 0; }
.deeper blockquote.source {
  margin: 0 0 var(--s3);
  padding: 0 0 0 var(--s3);
  border-left: 1px solid var(--accent);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  text-align: left;
  max-width: none;
}
.deeper blockquote.source p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.167rem;
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
}
.deeper blockquote.source cite {
  display: block;
  margin-top: var(--s1);
  font-family: var(--text);
  font-style: normal;
  font-size: 0.889rem;
  line-height: 1.6;
  color: var(--source);
}
.deeper ul, .deeper ol {
  margin: 0 0 var(--s3);
  padding-left: var(--s3);
}
.deeper li { margin: 0 0 var(--s1); }
.deeper li:last-child { margin-bottom: 0; }
.deeper .reading { list-style: none; padding-left: 0; }
.deeper .limit { color: var(--source); font-size: 0.889rem; line-height: 1.6; }

@media (max-width: 720px) {
  nav.menu { gap: 0 var(--s1); letter-spacing: 0.02em; flex-wrap: wrap; justify-content: space-between; }
  table.sources th { letter-spacing: 0.04em; }
  table.sources td:last-child,
  table.sources th:last-child { white-space: normal; }
  .rail { width: min(100% - 2 * var(--s2), var(--rail)); }
  .narrow { max-width: none; }
  h1 { font-size: 1.889rem; line-height: 1.24; }
  h2 { font-size: 1.444rem; line-height: 1.3; }
  blockquote.quoted p.prompt { font-size: 1rem; line-height: var(--text-leading); }
  blockquote.quoted p.words { font-size: 1.444rem; line-height: 1.3; }
  .banner img { height: 233px; }
  .banner-cycle img { height: 89px; }
  .deeper summary { font-size: 1.167rem; line-height: 1.5; }
  nav.menu { gap: 0 var(--s1); flex-wrap: wrap; }
  .mast { gap: var(--s1); }
  .brand { font-size: 1.056rem; }
  .cycle-card,
  .cycle-card:last-child:nth-child(odd) {
    flex-basis: 100%;
    max-width: 100%;
    text-align: left;
  }
  .rhythm-item,
  .q-card { flex-basis: 100%; max-width: 100%; }
  table.sources.sources-wrap thead { display: none; }
  table.sources.sources-wrap,
  table.sources.sources-wrap tbody,
  table.sources.sources-wrap tr,
  table.sources.sources-wrap td { display: block; width: 100%; }
  table.sources.sources-wrap tr { padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
  table.sources.sources-wrap td { border: 0; padding: 0 0 6px; }
  table.sources.sources-wrap td:first-child { display: none; }
  figure.card-run .run { flex-direction: column; gap: var(--s2); }
  figure.card-run .run img { width: 100%; flex: none; }
  .thesis-text { font-size: 1.222rem; }
  table.sources.sources-all thead { display: none; }
  table.sources.sources-all,
  table.sources.sources-all tbody,
  table.sources.sources-all tr,
  table.sources.sources-all td { display: block; width: 100%; }
  table.sources.sources-all tr {
    padding: var(--s2) 0;
    border-bottom: 1px solid var(--rule);
  }
  table.sources.sources-all td {
    border: 0;
    padding: 0 0 6px;
    white-space: normal;
  }
  table.sources.sources-all td:first-child { width: 100%; }
  table.sources.sources-all td:last-child,
  table.sources.sources-all td:nth-child(3) { white-space: normal; }
  table.sources.sources-all td:not(:first-child)::before {
    content: attr(data-label) " · ";
    font-family: var(--label);
    font-size: 0.944rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
  }
  /* A single-column list does not leave a short last row. */
}
