:root {
  color-scheme: light;
  --paper: #faf4e8;
  --ink: #302522;
  --rule: #c9b99d;
  --accent: #8b342c;
  font: 17px/1.75 "Avenir Next", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
header, footer { max-width: 66rem; margin: auto; padding: 1.25rem clamp(1.2rem, 5vw, 4rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
header { border-bottom: 1px solid var(--rule); }
.wordmark { font: bold 1.7rem/1 Georgia, serif; color: var(--ink); text-decoration: none; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: #471810; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
article { max-width: 46rem; margin: auto; padding: clamp(2.2rem, 8vw, 5.5rem) 1.3rem 4rem; overflow-wrap: break-word; }
h1, h2 { line-height: 1.13; font-family: Georgia, "Apple SD Gothic Neo", serif; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.045em; margin: 0; }
h2 { font-size: clamp(1.65rem, 4vw, 2.3rem); margin: 0 0 1rem; letter-spacing: -.027em; }
.intro { font-size: 1.25rem; margin-bottom: 1.8rem; }
section { margin-top: 2.5rem; padding-top: 1.9rem; border-top: 1px solid var(--rule); }
figure { margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; background: #fffaf0; text-align: center; }
th, td { border: 1px solid var(--rule); padding: .4rem; }
th { font-weight: 600; font-size: .9rem; }
tbody td { font: 1.65rem/1.7 Georgia, serif; }
.marked { background: #eadab8; font-weight: bold; }
caption { text-align: left; font-size: .87rem; padding-bottom: .45rem; }
details, aside { background: #f1e7d3; border-left: 3px solid #aa7967; padding: 1rem 1.2rem; margin: 1.5rem 0; }
details p, aside p { margin: .6rem 0 0; }
summary, dt { font-weight: 700; }
summary { cursor: pointer; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.25rem; }
dd { margin: 0; }
.cta { display: inline-block; padding: .7rem 1.4rem; background: #722d27; border-radius: 3px; color: white; font-weight: 600; text-decoration: none; }
.cta:hover { color: white; background: #4d221f; }
footer { border-top: 1px solid var(--rule); flex-wrap: wrap; font-size: .9rem; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 400px) { :root { font-size: 16px; } dl { grid-template-columns: 1fr; gap: .15rem; } dd { margin-bottom: .65rem; } }
[data-hour-lab] { border-block: 1px solid var(--rule); padding: 1rem 0; }
[data-hour-lab] label { font-weight: 650; }
select { margin-inline-start: .4rem; border: 1px solid var(--rule); border-radius: 4px; padding: .3rem; font: inherit; color: var(--ink); background: #fffaf0; }
output { display: block; margin-top: .6rem; }

footer button { appearance: none; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
footer button[hidden] { display: none; }
