/* Readable base; only the journal furniture needs component classes. */
:root {
  color-scheme: light;
  --ink: #332a30;
  --paper: #f6eee3;
  --earth: #663d2c;
  --line: #9b897e;
  --sage: #dce5cf;
  --lilac: #e7dcec;
  --peach: #f0bea6;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-size: 18px; }
body { margin: 0; font-family: "Segoe UI", "Trebuchet MS", "Gill Sans", Calibri, sans-serif; line-height: 1.65; }
body, main, article, section, nav, div { min-width: 0; }
main { max-width: 1180px; margin-inline: auto; padding: 3rem 2rem 4rem; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.13; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.7vw, 4.3rem); letter-spacing: -.035em; margin: .6rem 0 1.1rem; font-weight: 650; }
h2, .td-topic { font-size: clamp(1.35rem, 2.3vw, 1.85rem); letter-spacing: -.018em; margin: 0 0 1.1rem; font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 650; margin: 1.5rem 0 .75rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.3rem; }
li { padding-block: .25rem; }
a { color: var(--earth); text-decoration-thickness: 1.5px; text-underline-offset: .2em; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; padding: .45rem .25rem; overflow-wrap: anywhere; }
a:hover { color: var(--ink); text-decoration-thickness: 2.5px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--earth); outline-offset: 4px; border-radius: .3rem; }
button, summary { font: inherit; font-size: 1rem; min-height: 48px; min-width: 48px; cursor: pointer; }
button { border: 2px solid var(--ink); padding: .65rem 1.1rem; background: var(--ink); color: var(--paper); border-radius: 1.1rem .9rem 1.2rem 1rem; box-shadow: 0 4px 0 #b49b8b; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; font-size: 1rem; }
figure { margin: 0; }
figcaption { font-size: 1rem; padding: .7rem 1rem; }
time { font-variant-numeric: tabular-nums; }
section { scroll-margin-top: 1rem; }
.td-skip { position: absolute; z-index: 10; inset: .5rem auto auto 1rem; transform: translateY(-180%); background: var(--paper); border: 2px solid var(--ink); padding: .7rem 1rem; }
.td-skip:focus { transform: none; }
.td-strip { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.3rem; padding: .9rem max(1.5rem, calc((100vw - 1108px) / 2)); border-bottom: 1px solid var(--line); background: #ede2d4; }
.td-name { color: var(--ink); flex-direction: column; align-items: flex-start; font-weight: 650; text-decoration: none; line-height: 1.3; padding: .4rem 0; }
.td-name span { font-size: 1rem; font-weight: 400; margin-top: .2rem; }
.td-utility { display: flex; gap: 1rem; }
.td-utility a { color: var(--ink); }
.td-menu { position: relative; }
.td-menu summary { background: var(--sage); border: 1px solid var(--line); border-radius: 1.5rem 1.2rem 1.4rem 1.1rem; padding: .55rem 1rem; box-shadow: inset 0 -4px 0 #c6d1b6; }
.td-menu nav { position: absolute; z-index: 5; top: calc(100% + .7rem); right: 0; width: 330px; max-width: calc(100vw - 3rem); background: var(--paper); padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 1.2rem .7rem 1.5rem .9rem; box-shadow: 0 12px 24px #332a3020; }
.td-menu ul { margin: 0; padding: 0; list-style: none; }
.td-menu li { padding: 0; }
.td-menu a { display: flex; padding: .45rem .6rem; min-height: 48px; border-bottom: 1px solid #d2c3b8; color: var(--ink); }
.td-menu li:last-child a { border-bottom: 0; }
.td-menu a[aria-current] { background: var(--sage); border-radius: .4rem; text-decoration: none; }
.td-opener { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 2.5rem; align-items: center; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.td-kicker { color: var(--earth); margin: 0; font-weight: 650; letter-spacing: .035em; }
.td-lead { font-size: 1.17rem; line-height: 1.5; max-width: 55ch; }
.td-date { margin: 1.3rem 0 0; font-size: 1rem; }
.td-place { border: 1px solid #ad9688; border-radius: 3rem 2rem 3.5rem 1.5rem; overflow: hidden; background: #e4cdb9; box-shadow: 0 8px 0 #c7ae9c; transform: rotate(1deg); }
.td-place img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; color: var(--ink); }
.td-clay-mark { width: clamp(80px, 16vw, 170px); height: clamp(80px, 16vw, 170px); background: var(--peach); border-radius: 46% 52% 43% 57%; border: 1px solid #ad9688; box-shadow: inset 8px 8px 0 #f6d5c2, inset -10px -12px 0 #d6977c, 10px 13px 0 #dbc7b5; justify-self: center; transform: rotate(-8deg); }
.td-prose { max-width: 68ch; margin-inline: auto; }
.td-prose > section { margin-bottom: 2.75rem; }
.td-prose > section > p:last-child { margin-bottom: 0; }
.td-topic-group > section { margin-bottom: 2.75rem; }
.td-topic-group > section:last-child { margin-bottom: 0; }
.td-topic-group > section > p:last-child { margin-bottom: 0; }
.td-recap { background: var(--sage); padding: 1.7rem 1.9rem; border: 1px solid var(--line); border-radius: 1.4rem 2rem 1.2rem 1.8rem; box-shadow: inset 0 -5px 0 #c7d2b8; }
.td-recap h2 { font-size: 1.25rem; }
.td-sources { background: var(--lilac); padding: 1.6rem 1.9rem; margin-bottom: 2rem; border: 1px solid var(--line); border-radius: .75rem 1.7rem 1.3rem .85rem; }
.td-sources h2 { font-size: 1.25rem; }
.td-sources ul { padding: 0; margin: 0; list-style: none; }
.td-sources li { padding: 0; }
.td-sources a { width: 100%; line-height: 1.4; padding-block: .7rem; }
.td-turn { display: flex; justify-content: space-between; gap: 1.4rem; margin-bottom: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.td-turn a { flex: 1; min-height: 48px; }
.td-turn a:last-child { justify-content: flex-end; text-align: right; }
.td-journal { margin: 3.5rem auto 0; max-width: 68ch; border-top: 2px solid var(--ink); padding-top: 2rem; }
.td-journal h3 { color: var(--earth); margin-top: 2.1rem; }
.td-journal ul { list-style: none; padding: 0; margin: 0; }
.td-entry { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid #bfae9e; }
.td-entry a { width: 100%; min-height: 52px; font-weight: 650; color: var(--ink); justify-content: space-between; gap: .8rem; }
.td-entry p { margin: 0; color: var(--earth); font-size: 1rem; }
.td-footer { padding: 2rem max(1.5rem, calc((100vw - 1108px) / 2)); border-top: 1px solid var(--line); background: #ede2d4; }
.td-footer p { max-width: 68ch; }
.td-footer nav { display: flex; gap: 1.5rem; }
.td-footer a { min-height: 48px; color: var(--ink); }
.td-checklist > ul { list-style: none; padding: 0; }
.td-checklist li { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.td-checklist h3 { margin: 0 0 .6rem; }
.td-checklist li p { margin-bottom: .7rem; }
.td-answer { display: block; height: 2.6rem; border-bottom: 1px solid var(--line); }
@media (max-width: 740px) {
  main { padding: 2rem 1.2rem 3rem; }
  .td-strip { grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: .65rem 1.2rem; }
  .td-name { font-size: 1rem; }
  .td-utility { grid-column: 1 / -1; grid-row: 2; gap: 1.2rem; }
  .td-menu { grid-column: 2; grid-row: 1; }
  .td-menu summary { padding-inline: .8rem; }
  .td-menu nav { width: 330px; max-width: calc(100vw - 2.4rem); }
  .td-opener { grid-template-columns: 1fr; gap: 1.8rem; padding-bottom: 2rem; margin-bottom: 2.5rem; }
  .td-opener h1 { font-size: clamp(2.1rem, 8.5vw, 3rem); }
  .td-lead { font-size: 1.1rem; }
  .td-place { max-width: 34rem; transform: none; border-radius: 2.5rem 1.6rem 2.7rem 1.1rem; }
  .td-clay-mark { position: absolute; top: -.8rem; right: .1rem; width: 50px; height: 50px; opacity: .8; z-index: -1; }
  .td-recap, .td-sources { padding: 1.35rem 1.2rem; }
  .td-entry { grid-template-columns: 1fr; gap: 0; padding-block: .55rem; }
  .td-entry p { padding: 0 .25rem .3rem; }
  .td-footer { padding: 1.75rem 1.2rem; }
  .td-footer nav { flex-wrap: wrap; gap: .7rem 1.4rem; }
  .td-turn { gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  @page { margin: 18mm; }
  html { background: #fff; font-size: 12pt; }
  body { color: #000; line-height: 1.45; }
  .td-strip, .td-skip, .td-footer, .td-turn, #td-print, .td-clay-mark, .td-place { display: none !important; }
  main { max-width: none; padding: 0; }
  .td-opener { display: block; border: 0; margin: 0 0 1.2rem; padding: 0; }
  h1, .td-opener h1 { font-size: 24pt; }
  h2, .td-topic { font-size: 17pt; }
  h3 { font-size: 13pt; }
  .td-prose { max-width: none; }
  .td-checklist li { break-inside: avoid; border-color: #777; padding: .65rem 0; }
  .td-answer { border-color: #777; height: 1.75rem; }
  .td-recap, .td-sources { background: #fff; border: 1px solid #777; box-shadow: none; border-radius: 0; break-inside: avoid; }
  a { color: #000; min-height: 0; min-width: 0; padding: .2rem 0; }
  body.td-printing .td-prose > section:not(.td-checklist) { display: none; }
  body.td-printing .td-sources { display: none; }
  body.td-printing .td-prose > .td-checklist { margin-bottom: 0; }
}
