@font-face { font-family: 'IM Fell English'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/im-fell-english-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'IM Fell English'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/im-fell-english-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Sorts Mill Goudy'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/sorts-mill-goudy-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Sorts Mill Goudy'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/sorts-mill-goudy-latin-400-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #efe6d3;
  --fg-light-base-body: #2b2116;
  --fg-light-base-heading: #2b2116;
  --fg-light-base-muted: #5c4a35;
  --fg-light-base-link: #8f3a1f;
  --fg-light-base-inverse: #2b2116;
  --bg-light-card: #f7f1e4;
  --fg-light-card-body: #2b2116;
  --fg-light-card-heading: #2b2116;
  --fg-light-card-muted: #5c4a35;
  --fg-light-card-link: #8f3a1f;
  --fg-light-card-inverse: #2b2116;
  --bg-light-elevated: #ead8ab;
  --fg-light-elevated-body: #2b2116;
  --fg-light-elevated-heading: #2b2116;
  --fg-light-elevated-muted: #5c4a35;
  --fg-light-elevated-link: #8f3a1f;
  --fg-light-elevated-inverse: #2b2116;
  --brand-light-accent: #8f3a1f;
  --brand-light-accent-hover: #6f2a14;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #8f3a1f;
  --border-light-default: #8a7556;
  --border-light-subtle: #d6c7a6;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

:root {
  --fell: 'IM Fell English', 'Iowan Old Style', Georgia, serif;
  --goudy: 'Sorts Mill Goudy', 'Iowan Old Style', Georgia, serif;
  --terracotta: var(--brand-light-accent);
  --ochre: #a8741a;
  --moss: #4f5f31;
  --rule: 1px solid var(--border-light-default);
  --rule-soft: 1px solid var(--border-light-subtle);
  --column: 35rem;
  --gutter: clamp(1rem, 4.5vw, 3rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--goudy);
  font-size: 1.1875rem;
  line-height: 1.65;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 2px solid var(--focus-light-ring);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--bg-light-card);
  border: var(--rule);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Masthead (static) ---------- */

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 3px double var(--border-light-default);
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
}

.brand {
  display: inline-flex;
  min-width: 0;
  text-decoration: none;
}

.brand .site-logo {
  display: block;
  width: 14rem;
  max-width: 100%;
  height: auto;
}

.almanac-bar {
  display: none;
}

.masthead-toggle {
  position: relative;
  flex: none;
}

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  border: var(--rule);
  font-family: var(--fell);
  font-style: italic;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

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

.menu-icon {
  position: relative;
  width: 1rem;
  height: 0.7rem;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -0.75px;
  border-top: 1.5px solid var(--terracotta);
}

.site-menu[open] > summary {
  border-color: var(--terracotta);
}

.site-menu > ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(20rem, calc(100vw - 2rem));
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg-light-card);
  border: var(--rule);
  box-shadow: 4px 4px 0 var(--border-light-subtle);
}

.site-menu ul a {
  display: block;
  padding: 0.55rem 1rem;
  text-decoration: none;
  line-height: 1.3;
}

.site-menu ul a:hover {
  text-decoration: underline;
}

.site-menu > ul > li > a {
  font-family: var(--fell);
  font-size: 1.1rem;
}

.site-menu > ul ul {
  list-style: none;
  margin: 0 0 0.4rem 1rem;
  padding: 0 0 0 0.8rem;
  border-left: 1px solid var(--moss);
  font-size: 1rem;
}

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

.almanac-leaf {
  flex: 1 0 auto;
  min-width: 0;
}

.breadcrumbs {
  padding: 1.1rem var(--gutter) 0;
  font-size: 0.95rem;
  font-style: italic;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: '\2767';
  margin: 0 0.55rem;
  color: var(--moss);
  font-style: normal;
}

.almanac-page {
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
}

.almanac-page h1 {
  margin: 0;
  font-family: var(--fell);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  text-wrap: balance;
}

/* ---------- Woodcut ornaments ---------- */

.woodcut-rule {
  display: block;
  width: 100%;
  max-width: 30rem;
  height: auto;
  margin: 1.5rem 0;
  color: var(--terracotta);
}

.woodcut-rule .sprig {
  fill: var(--moss);
}

.leaf-veins {
  stroke: var(--bg-light-base);
}

/* ---------- Journal column prose ---------- */

.almanac-column {
  max-width: var(--column);
}

.almanac-column > :first-child,
.entry-body > :first-child,
.keeper-body > :first-child {
  margin-top: 0;
}

.almanac-column p,
.almanac-column ul,
.almanac-column ol {
  margin: 0 0 1.05em;
}

.almanac-column ul,
.almanac-column ol {
  padding-left: 1.3em;
}

.almanac-column li {
  margin-bottom: 0.45em;
}

.almanac-column li::marker {
  color: var(--terracotta);
}

.almanac-column h2 {
  margin: 2.1em 0 0.5em;
  font-family: var(--fell);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  text-wrap: balance;
}

.almanac-column h3 {
  margin: 1.6em 0 0.4em;
  font-family: var(--fell);
  font-style: italic;
  font-weight: 400;
  font-size: 1.28rem;
  line-height: 1.25;
}

.almanac-column blockquote {
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 2px solid var(--ochre);
  font-style: italic;
}

.almanac-column strong {
  font-weight: 400;
  font-style: italic;
}

.almanac-column .photo-hero,
.almanac-column figure {
  margin: 0 0 2rem;
  padding: 0.45rem;
  background: var(--bg-light-card);
  border: var(--rule);
}

.almanac-column img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.18) saturate(0.9);
}

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

section[data-section] {
  background-size: cover;
  background-position: center;
  padding: clamp(1.5rem, 5vw, 3rem);
}

/* ---------- Home: almanac spread (stepped) ---------- */

.spread-masthead {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: var(--rule);
}

.season-wheel {
  width: 9rem;
  height: auto;
  color: var(--terracotta);
}

.wheel-quarters .q-spring { fill: var(--moss); }
.wheel-quarters .q-summer { fill: var(--ochre); }
.wheel-quarters .q-autumn { fill: var(--terracotta); }
.wheel-quarters .q-winter { fill: var(--border-light-default); }

.wheel-leaf,
.ornament-leaf {
  fill: var(--terracotta);
}

.page-home h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
}

.spread-lines {
  margin-top: 1.2rem;
  max-width: 34rem;
}

.spread-lines .display-line {
  margin: 0 0 0.5rem;
  padding-left: 1.4rem;
  position: relative;
  font-style: italic;
}

.spread-lines .display-line::before {
  content: '\2766';
  position: absolute;
  left: 0;
  color: var(--moss);
  font-style: normal;
}

.lead-story {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.lead-body > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.06em 0 0;
  font-family: var(--fell);
  font-size: 3.6em;
  line-height: 0.8;
  color: var(--terracotta);
}

.calendar-strip {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: var(--rule);
  border-top: 4px solid var(--ochre);
}

.strip-head {
  margin: 0 0 1.25rem;
  font-family: var(--fell);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}

.strip-tracks {
  display: grid;
  gap: 1.75rem;
}

.track-name {
  margin: 0 0 0.6rem;
  font-family: var(--fell);
  font-size: 1.3rem;
}

.track-name a {
  text-decoration: none;
  border-bottom: 1px solid var(--moss);
}

.strip-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: day;
  border-top: var(--rule);
  border-left: var(--rule);
}

.strip-days li {
  counter-increment: day;
  position: relative;
  padding: 2.4rem 0.8rem 0.9rem;
  border-right: var(--rule);
  border-bottom: var(--rule);
}

.strip-days li::before {
  content: counter(day, upper-roman);
  position: absolute;
  top: 0.5rem;
  left: 0.8rem;
  font-family: var(--fell);
  font-size: 1.15rem;
  color: var(--terracotta);
  font-variant-numeric: lining-nums;
}

.strip-days a {
  display: block;
  font-size: 1.02rem;
  line-height: 1.3;
  text-decoration: none;
}

.strip-days a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.strip-days a:hover {
  text-decoration: underline;
}

.strip-days li:has(a:focus-visible) {
  outline: 2px solid var(--focus-light-ring);
  outline-offset: -2px;
}

.strip-days a:focus-visible {
  outline: none;
}

/* ---------- Topic hub: season chapter (stepped) ---------- */

.chapter-head {
  max-width: 44rem;
}

.chapter-head h1 {
  font-style: italic;
  color: var(--terracotta);
}

.chapter-entries {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: var(--rule);
  border-top: 4px solid var(--moss);
}

.entries-head {
  margin: 0 0 1rem;
  font-family: var(--fell);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
}

.entries-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: entry;
}

.entries-list li {
  counter-increment: entry;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: var(--rule-soft);
}

.entries-list li::before {
  content: counter(entry, upper-roman);
  font-family: var(--fell);
  font-size: 1.25rem;
  color: var(--terracotta);
}

.entries-list a {
  font-family: var(--fell);
  font-size: 1.2rem;
  line-height: 1.3;
  text-decoration: none;
}

.entries-list a:hover {
  text-decoration: underline;
}

/* ---------- Article: journal entry ---------- */

.entry-column {
  margin: 0 auto;
}

.entry-body h2 {
  color: var(--moss);
}

.tip-sidebar {
  margin-top: 2.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--ochre);
}

.tip-head {
  margin: 0 0 0.5rem;
  font-family: var(--fell);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
}

.tip-links {
  margin: 0;
  padding-left: 1.1em;
}

.tip-links li {
  margin: 0.3rem 0;
}

/* ---------- About: keeper's note ---------- */

.keeper-letter {
  margin: 0 auto;
}

.keeper-ornament {
  display: block;
  width: 5.5rem;
  height: auto;
  margin: 0 0 1.25rem;
  color: var(--moss);
}

.keeper-head h1 {
  font-style: italic;
}

.keeper-head {
  margin-bottom: 1.75rem;
}

.keeper-body {
  font-style: italic;
}

.keeper-body h2 {
  font-style: normal;
}

.keeper-seasons {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--moss);
}

.seasons-head {
  margin: 0 0 0.5rem;
  font-family: var(--fell);
  font-weight: 400;
  font-size: 1.2rem;
}

.keeper-seasons ul {
  margin: 0;
  padding-left: 1.2em;
}

/* ---------- Contact: letters to the journal (two-column) ---------- */

.letters-split {
  display: grid;
  gap: 2.5rem;
}

.letters-head h1 {
  font-style: italic;
}

.letters-invite {
  margin: 1rem 0 1.75rem;
  max-width: 30rem;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
}

.letters-form {
  align-self: start;
  margin: 0;
  padding: 1.25rem 1.4rem 1.5rem;
  border: var(--rule);
  box-shadow: 6px 6px 0 var(--border-light-subtle);
}

.letters-form .woodcut-rule {
  margin: 0 0 1.25rem;
}

.letters-field {
  margin: 0 0 1.1rem;
}

.letters-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--fell);
  font-style: italic;
  font-size: 1.1rem;
}

.letters-field input,
.letters-field textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border-light-default);
  border-radius: 0;
  background: var(--bg-light-base);
  font: inherit;
  color: inherit;
}

.letters-field textarea {
  resize: vertical;
  line-height: 1.5;
}

.letters-actions {
  margin: 1.4rem 0 0;
}

.letters-button {
  min-height: 2.9rem;
  padding: 0.55rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: var(--brand-light-accent);
  color: var(--brand-light-on-accent);
  font-family: var(--fell);
  font-size: 1.1rem;
  cursor: pointer;
}

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

/* ---------- Thank you: postscript (stepped) ---------- */

.postscript {
  max-width: var(--column);
  margin: 0 auto;
  text-align: center;
}

.postscript-head h1 {
  font-style: italic;
}

.moss-rule .woodcut-rule {
  margin: 1.5rem auto;
  color: var(--moss);
}

.postscript-body {
  margin: 0 auto;
  font-style: italic;
}

.postscript-body h2 {
  font-style: normal;
}

.postscript-return {
  margin-top: 2.25rem;
  font-family: var(--fell);
  font-size: 1.2rem;
}

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

.site-footer {
  border-top: 3px double var(--border-light-default);
}

.footer-inner {
  padding: 1.75rem var(--gutter) 2.25rem;
  max-width: 48rem;
}

.footer-name {
  margin: 0 0 0.3rem;
  font-family: var(--fell);
  font-size: 1.2rem;
}

.footer-note {
  margin: 0;
  font-size: 1rem;
  font-style: italic;
}

/* ---------- Wider screens ---------- */

@media (min-width: 46rem) {
  .spread-masthead {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .season-wheel {
    width: 11rem;
  }

  .lead-story {
    margin-left: clamp(2rem, 9vw, 8rem);
  }

  .calendar-strip {
    margin-left: clamp(4rem, 18vw, 16rem);
  }

  .strip-tracks {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-hub .woodcut-rule,
  .chapter-body {
    margin-left: clamp(2rem, 8vw, 6rem);
  }

  .chapter-entries {
    margin-left: clamp(4rem, 16vw, 12rem);
    max-width: 44rem;
  }

  .letters-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }

  .postscript-body {
    padding-left: 2rem;
  }

  .postscript-return {
    padding-left: 4rem;
  }
}

@media (min-width: 64rem) {
  .masthead-row {
    justify-content: center;
    padding-top: 1.4rem;
    padding-bottom: 0.8rem;
  }

  .brand .site-logo {
    width: 20rem;
  }

  .masthead-toggle {
    display: none;
  }

  .almanac-bar {
    display: block;
    position: relative;
    border-top: var(--rule-soft);
  }

  .almanac-bar .site-nav > ul {
    display: flex;
    justify-content: center;
    gap: 0.25rem 2.25rem;
    margin: 0;
    padding: 0 var(--gutter);
    list-style: none;
    counter-reset: season;
  }

  .almanac-bar .site-nav > ul > li > a,
  .almanac-bar summary {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--fell);
    font-size: 1.12rem;
    line-height: 1.3;
    text-decoration: none;
  }

  .almanac-bar .site-nav > ul > li:has(details) {
    counter-increment: season;
  }

  .almanac-bar summary {
    position: relative;
    padding-right: 1.3rem;
    cursor: pointer;
    list-style: none;
  }

  .almanac-bar summary::-webkit-details-marker {
    display: none;
  }

  .almanac-bar summary::before {
    content: 'Season ' counter(season, upper-roman);
    margin-right: 0.5em;
    font-style: italic;
    color: var(--moss);
  }

  .almanac-bar summary::after {
    content: '';
    position: absolute;
    right: 0.15rem;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    margin-top: -0.32rem;
    border-right: 1.5px solid var(--terracotta);
    border-bottom: 1.5px solid var(--terracotta);
    transform: rotate(45deg);
  }

  .almanac-bar details[open] > summary {
    color: var(--terracotta);
  }

  .almanac-bar details[open] > summary::after {
    transform: rotate(-135deg);
    margin-top: -0.05rem;
  }

  .almanac-bar .site-nav > ul > li > a:hover,
  .almanac-bar summary:hover {
    text-decoration: underline;
  }

  .almanac-bar details > ul {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 100%;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.5rem;
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.5rem 2rem 1.75rem;
    list-style: none;
    background: var(--bg-light-card);
    border: var(--rule);
    border-top: 4px solid var(--ochre);
    box-shadow: 6px 6px 0 var(--border-light-subtle);
  }

  .almanac-bar details > ul > li:first-child {
    grid-column: 1 / -1;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--moss);
  }

  .almanac-bar details > ul > li:first-child a {
    font-family: var(--fell);
    font-style: italic;
    font-size: 1.45rem;
  }

  .almanac-bar details > ul a {
    display: block;
    padding: 0.4rem 0;
    line-height: 1.3;
    text-decoration: none;
  }

  .almanac-bar details > ul a:hover {
    text-decoration: underline;
  }
}

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