@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { color-scheme: light; --ink: #192b2b; --muted: #5c6c69; --paper: #f7f8f4; --accent: #216555; --line: #dde3da; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #277b65; outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 14px; background: white; z-index: 10; }
.skip-link:focus { top: 10px; }
.site-header, main, footer { max-width: 1240px; margin-inline: auto; padding-inline: 40px; }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--ink); color: white; border-radius: 10px; font-size: 18px; }
.brand-label { font-size: 9px; letter-spacing: 1.6px; border-left: 1px solid #bdc8bf; padding-left: 16px; margin-left: 6px; color: var(--muted); }
.header-link { font-size: 13px; font-weight: 600; text-decoration: none; }
.hero { padding-block: 66px 62px; display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 65px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; line-height: 1.6; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
h1 { font-size: clamp(38px, 4.4vw, 59px); font-weight: 800; line-height: 1.13; letter-spacing: -2.7px; margin: 24px 0; }
h1 span { color: var(--accent); }
.hero-description { max-width: 440px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.primary-link { margin-top: 20px; padding: 15px 20px; display: inline-flex; gap: 36px; background: var(--ink); color: white; text-decoration: none; font-size: 13px; border-radius: 7px; font-weight: 600; }
.primary-link:hover { background: var(--accent); }
.featured { background: #e9eee4; border: 1px solid #dce3d5; border-radius: 14px; padding: 24px 28px; overflow: hidden; }
.featured-top { display: flex; align-items: center; justify-content: space-between; color: #4f655b; }
.manual-stack { position: relative; width: 210px; height: 170px; margin: 18px auto 22px; }
.manual-stack > span { position: absolute; width: 130px; height: 156px; border-radius: 3px 8px 8px 3px; top: 5px; left: 40px; box-shadow: 0 10px 18px #243e2d16; }
.stack-back { transform: translateX(29px) rotate(15deg); background: #b4c1a3; border: 1px solid #9aac89; }
.stack-middle { transform: translateX(-26px) rotate(-14deg); background: #d5dbc5; border: 1px solid #bdc7ad; }
.manual-stack .stack-front { display: flex; flex-direction: column; padding: 18px 14px; background: #244f43; color: #f1f4dc; border-left: 5px solid #1e4238; transform: rotate(-3deg); }
.stack-front small { font-size: 6px; letter-spacing: 1px; }
.stack-front strong { font-family: Manrope, sans-serif; font-size: 28px; margin-top: 20px; letter-spacing: 1px; }
.stack-front > span { font-size: 10px; letter-spacing: 2px; margin-top: 3px; }
.stack-front i { height: 18px; border-block: 1px solid #91ad89; margin-top: 20px; background: repeating-linear-gradient(90deg, transparent 0 8px, #91ad8955 8px 9px); }
.featured h2 { font-size: 20px; letter-spacing: -.6px; margin: 0 0 8px; }
.featured p { font-size: 13px; color: #526658; line-height: 1.7; margin: 0; }
.featured a { display: flex; justify-content: space-between; border-top: 1px solid #ccd7c5; padding-top: 16px; margin-top: 18px; font-size: 12px; font-weight: 700; text-decoration: none; }
.featured a:hover { text-decoration: underline; }
.library { border-top: 1px solid var(--line); padding-block: 36px 55px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.section-heading .eyebrow { color: var(--accent); margin: 0 0 8px; }
.section-heading h2 { font-size: 28px; letter-spacing: -1px; margin: 0; }
.section-heading > p { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.search-wrap label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-field { display: flex; gap: 14px; align-items: center; padding: 0 18px; border: 1px solid #d7ded5; background: white; border-radius: 8px; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #21655515; }
.search-field > span { font-size: 28px; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; padding: 17px 0; background: none; border: 0; color: var(--ink); font-size: 14px; }
.search-field input:focus-visible { outline-offset: 0; outline: 2px solid var(--accent); border-radius: 3px; }
.search-field input::placeholder { color: #708078; }
kbd { border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; color: #738073; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.filters button { display: inline-flex; align-items: center; gap: 9px; background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; font-size: 11px; font-weight: 600; color: #526058; cursor: pointer; }
.filters button span { font-size: 10px; opacity: .8; }
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.results-heading { display: flex; justify-content: space-between; align-items: center; margin: 23px 0 13px; font-size: 11px; color: var(--muted); }
.results-heading p { margin: 0; }
.manual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.manual-card { min-width: 0; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; background: #fff; transition: transform .18s, box-shadow .18s, border-color .18s; }
.manual-card:hover { transform: translateY(-3px); border-color: #8da99a; box-shadow: 0 8px 24px #213e3010; }
.card-top { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.category-tag { font-size: 10px; color: var(--accent); font-weight: 600; }
.format { font-size: 9px; letter-spacing: .6px; color: #6c776f; border: 1px solid #e5e9e1; border-radius: 4px; padding: 3px 5px; }
.format.collection { color: var(--accent); background: #edf3eb; border-color: #edf3eb; }
.manual-card h3 { font-size: 17px; letter-spacing: -.5px; line-height: 1.5; margin: 23px 0 6px; }
.manual-card p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 24px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid #eef0ea; font-size: 11px; font-weight: 600; }
.card-bottom > span:last-child { color: var(--accent); font-size: 17px; }
.library-note { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 24px; }
.library-note a { text-underline-offset: 3px; }
.empty-state { text-align: center; padding: 55px 20px; border: 1px dashed #bacabb; border-radius: 9px; }
.empty-state p { color: var(--muted); }
.empty-state button { padding: 12px 18px; border: 0; border-radius: 6px; background: var(--ink); color: white; cursor: pointer; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 90px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-brand { font-weight: 700; color: var(--ink); font-size: 13px; }
@media (max-width: 1000px) { .hero { gap: 30px; } .brand-label { display: none; } .manual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } h1 { letter-spacing: -1.8px; } }
@media (max-width: 700px) {
  .site-header, main, footer { padding-inline: 22px; }
  .site-header { min-height: 78px; }
  .brand { font-size: 16px; gap: 9px; }
  .header-link { font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding-block: 40px; gap: 35px; }
  h1 { font-size: clamp(36px, 8vw, 52px); }
  .hero-description { max-width: 100%; }
  .featured { padding: 22px; }
  .manual-stack { height: 150px; margin-block: 10px 25px; transform: scale(.9); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .manual-grid { grid-template-columns: 1fr; }
  .results-heading > span { font-size: 10px; }
  .filters { gap: 7px; }
  .filters button { padding: 10px; }
  footer { flex-wrap: wrap; padding-block: 24px; gap: 15px; }
  footer p { order: 3; width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .manual-card { transition: none; } .manual-card:hover { transform: none; } }
