* { box-sizing: border-box }
body { margin: 0; background: #f7f4ed; color: #273c31; font: 1rem/1.6 system-ui, sans-serif }
.wrap { width: min(100% - 2rem, 42rem); margin-inline: auto }
header { background: #fffdf8; border-bottom: 1px solid #d5ded2 }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 64px }
header a { color: inherit; font-weight: 750 }
main { padding-block: 1.5rem 3rem }
.hero, .panel { padding: clamp(1.25rem, 5vw, 2.5rem); border-radius: 1rem }
.hero { background: #e5ede4; border-top: 4px solid #874733 }
.panel { background: #fffdf8; border: 1px solid #d5ded2; margin-top: 1rem }
h1, h2 { margin: 0; line-height: 1.14; letter-spacing: -.025em }
h1 { font-size: clamp(2rem, 7vw, 3.2rem) }
h2 { font-size: clamp(1.4rem, 5vw, 2.1rem) }
p { margin: .65rem 0 1rem }
nav { display: flex; flex-wrap: wrap; gap: .5rem }
.role, .button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1rem; border-radius: .65rem; font: inherit; font-weight: 700 }
.role { border: 1px solid #586f61; background: #fffdf8; color: #273c31; text-decoration: none }
.role[aria-current] { background: #273c31; color: white }
.button, button { border: 1px solid #874733; background: #874733; color: white; text-decoration: none; cursor: pointer }
label { display: block; font-weight: 700; margin-block: 1rem .25rem }
input[type=email] { display: block; width: 100%; min-height: 44px; margin-bottom: .75rem; border: 1px solid #586f61; padding: .55rem; border-radius: .45rem; font: inherit }
.label, .note { color: #58665c; font-size: .9rem }
:focus-visible { outline: 3px solid #273c31; outline-offset: 3px }

.library { margin-top: 2rem }
.library h3 { margin: 0 0 .4rem; line-height: 1.25; font-size: 1.2rem }
.resources { list-style: none; padding: 0; margin: 0 }
.resources li + li { border-top: 1px solid #d5ded2 }
.resources a { display: block; min-height: 44px; padding-block: .7rem; color: inherit; text-decoration-offset: .2em }
.resources small { display: block; color: #435749; line-height: 1.45; font-size: .9rem }

.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .6rem; margin-top: .75rem }
.book { display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding: .8rem 1rem; border: 1px solid #d5ded2; border-radius: .65rem; background: #f7f4ed; color: #273c31 }
.book h4 { margin: 0; font-size: 1rem }
.book small { margin-top: auto; font-size: .85rem; color: #435749 }
.book-ready { background: #e5ede4; border-color: #9cafa2; text-decoration: none }
.book-ready small { color: #874733; font-weight: 700; text-decoration: underline }
.book-ready:hover { border-color: #586f61 }
.book-link a { display: inline-flex; align-items: center; min-height: 44px; color: #273c31 }

.newsletter-choice { display: flex; align-items: flex-start; gap: .65rem; margin-block: 1rem; font-weight: 400 }
.newsletter-choice input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: .25rem 0 0; accent-color: #874733 }

.newsletter-name { display: none; margin-bottom: .75rem }
.newsletter-choice:has(input:checked) + .newsletter-name { display: block }
.newsletter-name input { width: 100%; min-height: 44px; padding: .55rem; border: 1px solid #586f61; border-radius: .45rem; font: inherit }

@font-face {
  font-family: Inter;
  src: url('/assets/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body { font-family: Inter, system-ui, sans-serif; line-height: 1.65 }
.wrap { width: min(100% - 2rem, 64rem) }
header .wrap { min-height: 68px }
header a { text-decoration: none }
header span { color: #435749; font-size: .9rem }
main { padding-block: clamp(1.25rem, 4vw, 2.5rem) 4rem }
.hero, .panel { padding: clamp(1.15rem, 3.8vw, 2.5rem); border-radius: 1.15rem }
.hero { background: #e5ede4; border: 1px solid #c9d7c8; border-top: 4px solid #874733 }
.hero > p { max-width: 62ch }
h1, h2, h3 { text-wrap: balance }
h1 { max-width: 19ch; font-size: clamp(2rem, 4.6vw, 3.55rem); letter-spacing: -.05em }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.15rem); letter-spacing: -.035em }
.library h3 { font-size: 1.22rem; letter-spacing: -.02em }
.library-grid { display: grid; gap: .85rem }
.library-grid > .panel { margin-top: 0 }
.library > h2 { margin-bottom: .95rem }
.news-stack { display: grid; gap: .6rem; margin-block: .85rem }
.news-item { border: 1px solid #c9d7c8; border-radius: .75rem; background: #f2f5ee }
.news-item summary { position: relative; display: grid; gap: .2rem; min-height: 48px; padding: .8rem 2.45rem .8rem .9rem; list-style: none; cursor: pointer; border-radius: .75rem }
.news-item summary::-webkit-details-marker { display: none }
.news-item summary::after { content: '+'; position: absolute; inset: .72rem .95rem auto auto; color: #874733; font-size: 1.25rem }
.news-item[open] summary::after { content: '−' }
.news-item summary span { color: #435749; font-size: .9rem; line-height: 1.45 }
.news-body { padding: 0 .9rem .25rem; max-width: 67ch }
.book, .role, .button, button { transition: background-color .15s, border-color .15s }
.book-ready { background: #f2f5ee; border-color: #c9d7c8 }
.book-ready:hover { background: #e5ede4 }
.button:hover, button:hover { background: #733b2b }
:focus-visible { outline-color: #874733 }
@media (min-width: 780px) {
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start }
  .library-wide { grid-column: 1 / -1 }
}
@media (max-width: 480px) {
  .role { flex: 1 1 7.5rem }
  .panel form > button { width: 100% }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none }
}

.site-header .wrap { position: relative; gap: .75rem }
.site-header .brand { display: flex; align-items: center; gap: .55rem; line-height: 1.2 }
.site-header .brand img { flex: 0 0 36px; border-radius: .4rem; object-fit: contain }
.site-header .brand span { color: #273c31; font-size: clamp(.9rem, 3.8vw, 1.1rem); font-weight: 780 }
.site-menu { position: relative; flex: 0 0 auto }
.site-menu summary { display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem .75rem; border: 1px solid #879e8b; border-radius: .65rem; background: #e5ede4; color: #273c31; font-weight: 700; list-style: none; cursor: pointer }
.site-menu summary::-webkit-details-marker { display: none }
.site-menu[open] summary { background: #cfddcf }
.site-menu nav { position: absolute; z-index: 1; inset: calc(100% + .5rem) 0 auto auto; display: grid; width: min(17rem, 82vw); gap: 0; padding: .35rem; border: 1px solid #c9d7c8; border-radius: .75rem; background: #fffdf8; box-shadow: 0 .45rem 1.2rem #273c3120 }
.site-menu nav a { display: flex; align-items: center; min-height: 44px; padding: .45rem .65rem; border-radius: .4rem; font-weight: 650 }
.site-menu nav a:hover { background: #e5ede4 }
:target { scroll-margin-top: 1rem }
