@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: 'Crimson Pro'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/crimson-pro-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f3e9d0;
  --fg-light-base-body: #1d3528;
  --fg-light-base-heading: #1d3528;
  --fg-light-base-muted: #4b5a4d;
  --fg-light-base-link: #8a2e1c;
  --fg-light-base-inverse: #1d3528;
  --bg-light-card: #e9dbb5;
  --fg-light-card-body: #1d3528;
  --fg-light-card-heading: #1d3528;
  --fg-light-card-muted: #4b5a4d;
  --fg-light-card-link: #8a2e1c;
  --fg-light-card-inverse: #1d3528;
  --bg-light-elevated: #fbf6e8;
  --fg-light-elevated-body: #1d3528;
  --fg-light-elevated-heading: #1d3528;
  --fg-light-elevated-muted: #4b5a4d;
  --fg-light-elevated-link: #8a2e1c;
  --fg-light-elevated-inverse: #1d3528;
  --brand-light-accent: #24513a;
  --brand-light-accent-hover: #173826;
  --brand-light-on-accent: #fbf6e8;
  --focus-light-ring: #24513a;
  --border-light-default: #9a3b26;
  --border-light-subtle: #cdbb8f;
}
.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); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Lodi Joint Journal: large-print almanac */

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

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

body {
  margin: 0;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.7;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

@media (min-width: 900px) {
  body { font-size: 1.375rem; }
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'IM Fell English', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg-heading);
}

h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; }

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

img { display: block; }

figure { margin: 2rem 0; }

.photo-hero img,
.photo-inline img {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-light-default);
  background: var(--bg-light-elevated);
}

/* ---------- Header and full-width menu panel ---------- */

.almanac-head {
  position: relative;
  z-index: 10;
  border-bottom: 4px double var(--border-light-default);
}

.almanac-head-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.almanac-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 48px;
  text-decoration: none;
  color: var(--fg-heading);
}

.almanac-brand .site-logo { width: 44px; height: 44px; flex: none; }

.almanac-brand-name {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  line-height: 1.1;
}

.site-menu { flex: none; }

.site-menu > summary {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.35rem clamp(0.75rem, 3vw, 1.1rem);
  border: 1px solid var(--brand-light-accent);
  font-size: 1.2rem;
  color: var(--fg-heading);
}

.site-menu > summary:hover { background: var(--bg-light-elevated); }

.menu-icon {
  position: relative;
  display: inline-block;
  width: 1.3rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.site-menu[open] .menu-icon {
  box-shadow: none;
  height: 1.3rem;
  width: 1.3rem;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
}

.site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 1.5rem clamp(1rem, 5vw, 4rem) 2rem;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 3rem;
  background: var(--bg-light-base);
  border-bottom: 4px double var(--border-light-default);
}

.site-menu > ul > li {
  margin: 0;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light-subtle);
}

.site-menu > ul > li > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  text-decoration: none;
}

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

.site-menu li ul {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0 0 0 1rem;
}

.site-menu li ul li { margin: 0; }

.site-menu li ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.15rem;
}

@media (min-width: 760px) {
  .site-menu > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (min-width: 1100px) {
  .site-menu > ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: max(4rem, calc((100% - 72rem) / 2 + 4rem));
    padding-right: max(4rem, calc((100% - 72rem) / 2 + 4rem));
  }
}

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

.almanac-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 7vw, 6rem) 4rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 1.1rem 0 0;
  font-size: 1.05rem;
  font-style: italic;
}

.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; padding: 0 0.55rem; color: var(--fg-muted); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }

.prose { max-width: 38rem; }

.prose h2 { margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose > h2:first-child { margin-top: 0; }

.prose section[data-section] {
  margin: 2.5rem 0;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
}

.prose section[data-section] > div {
  padding: 1.25rem 1.5rem 0.5rem;
  border: 1px solid var(--border-light-default);
}

.prose section[data-section] > div > h2:first-child { margin-top: 0; }

/* ---------- Title page (home) ---------- */

.title-block {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 5rem) 0 2.5rem;
}

.title-block h1 {
  font-size: clamp(3rem, 12vw, 7.5rem);
  line-height: 0.98;
  max-width: 11ch;
  margin: 0 auto;
}

.ornament-rule {
  display: flex;
  justify-content: center;
  margin: 1.75rem auto;
  color: var(--border-light-default);
}

.ornament-rule svg { width: min(240px, 70%); height: auto; }

.title-headline {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.75rem, 4.6vw, 3rem);
  line-height: 1.2;
  max-width: 22ch;
  margin: 0 auto 1.5rem;
}

.title-lines { max-width: 34rem; margin: 0 auto; }
.title-lines p { margin: 0 0 0.4em; font-size: 1.15em; }

.featured-guides {
  max-width: 44rem;
  margin: 0 auto 3.5rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  border-top: 4px double var(--border-light-default);
  border-bottom: 4px double var(--border-light-default);
}

.featured-guides h2 { font-size: 1.5rem; margin: 0 0 0.75rem; text-align: center; font-style: italic; }

.featured-list { margin: 0; padding-left: 2.2em; }

.featured-list li {
  margin: 0;
  padding: 0.35rem 0;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: clamp(1.45rem, 3.6vw, 1.9rem);
  line-height: 1.25;
}

.featured-list li::marker { color: var(--fg-heading); }

.featured-list a { display: inline-block; padding: 0.25rem 0; }

.title-body { margin: 0 auto; }

.title-body > .photo-hero { margin-top: 0; }

/* ---------- Guide (article) ---------- */

.guide-head {
  max-width: 44rem;
  padding: clamp(2rem, 6vw, 3.5rem) 0 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light-default);
}

.guide-text { counter-reset: step; }

.guide-text > p:first-of-type { font-size: 1.15em; line-height: 1.6; }

.guide-text h2 {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  column-gap: 0.6rem;
  align-items: baseline;
}

.guide-text h2::before {
  content: counter(step) ".";
  color: var(--border-light-default);
  font-size: 1.15em;
}

.guide-text > p:last-of-type {
  margin: 2.5rem 0 1rem;
  padding: 1.25rem 1.5rem;
  border: 4px double var(--border-light-default);
  font-size: 1.1em;
  line-height: 1.6;
}

/* ---------- Chapter index (topic hub) ---------- */

.chapter-head {
  max-width: 44rem;
  padding: clamp(2rem, 6vw, 3.5rem) 0 1.5rem;
}

.chapter-index {
  margin: 0 0 3rem;
  padding: 1.25rem 0 0.75rem;
  border-top: 4px double var(--border-light-default);
  border-bottom: 1px solid var(--border-light-default);
}

.chapter-index h2 { font-size: 1.4rem; font-style: italic; margin: 0 0 0.75rem; }

.chapter-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: chapter;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3.5rem;
}

.chapter-index li {
  counter-increment: chapter;
  display: flex;
  align-items: baseline;
  margin: 0;
  padding: 0.5rem 0;
}

.chapter-index li a {
  order: 1;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.25;
  flex: 0 1 auto;
  min-width: 0;
}

.chapter-index li::before {
  content: "";
  order: 2;
  flex: 1 1 1.5rem;
  min-width: 1.5rem;
  margin: 0 0.6rem;
  border-bottom: 2px dotted var(--border-light-default);
}

.chapter-index li::after {
  content: counter(chapter, upper-roman);
  order: 3;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1.3rem;
  color: var(--fg-heading);
  flex: none;
  white-space: nowrap;
}

@media (min-width: 760px) {
  .chapter-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Foreword (about) ---------- */

.foreword { max-width: 40rem; margin: 0 auto; padding-top: clamp(2rem, 6vw, 3.5rem); }

.foreword-ornament { display: flex; justify-content: center; color: var(--border-light-default); }

.foreword-head { text-align: center; padding: 0.75rem 0 2rem; }

.foreword-text { margin: 0 auto; }

.foreword-text > p:first-of-type::first-letter {
  float: left;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 3.6em;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  color: var(--fg-heading);
}

/* ---------- Letter (contact) ---------- */

.letter-head {
  max-width: 44rem;
  padding: clamp(2rem, 6vw, 3.5rem) 0 1.75rem;
}

.letter-grid { display: grid; gap: 2.5rem; }

.letter-sheet {
  align-self: start;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--border-light-default);
}

.letter-sheet h2 { margin: 0 0 1.25rem; }

.letter-form { display: grid; gap: 1.25rem; }

.letter-pair { display: grid; gap: 1.25rem; }

.letter-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.letter-field input,
.letter-field textarea {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 1.25rem;
  color: var(--fg-body);
  background: var(--bg-light-elevated);
  border: 1px solid var(--brand-light-accent);
  border-radius: 0;
}

.letter-field textarea { min-height: 12rem; resize: vertical; }

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

.letter-post {
  justify-self: start;
  min-height: 3.5rem;
  padding: 0.6rem 1.75rem;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1.4rem;
  color: var(--brand-light-on-accent);
  background: var(--brand-light-accent);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.letter-post:hover { background: var(--brand-light-accent-hover); }

@media (min-width: 560px) {
  .letter-pair { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .letter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; }
}

/* ---------- Acknowledgment (thank you, not found) ---------- */

.acknowledgment { padding: clamp(2.5rem, 8vw, 5rem) 0 1rem; }

.ack-frame {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--border-light-default);
  outline: 1px solid var(--border-light-default);
  outline-offset: -9px;
}

.ack-head { text-align: center; margin-bottom: 1.5rem; }

.ack-head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }

.ack-text h2 { font-size: 1.5rem; margin-top: 1.5em; }

.ack-return {
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light-default);
  text-align: center;
}

.ack-return a { display: inline-flex; align-items: center; min-height: 44px; }

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

.almanac-foot { border-top: 4px double var(--border-light-default); }

.almanac-foot-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 2rem) 2.5rem;
  text-align: center;
}

.almanac-foot-line { font-style: italic; margin-bottom: 0.75rem; }

.almanac-foot-top { margin: 0; }

.almanac-foot-top a { display: inline-flex; align-items: center; min-height: 44px; }

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