:root {
  --paper: #f5f3ec;
  --ink: #343632;
  --muted: #767771;
  --line: #cccac1;
  --soft: #eae8df;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --hand: 'Segoe Print', 'Bradley Hand', cursive;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background-image: url('assets/paper.svg'); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, h3:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 5; padding: 14px; background: var(--paper); }
.skip-link:focus { top: 12px; }
.site-shell { max-width: 1160px; padding: 0 48px; margin: auto; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; text-decoration: none; min-height: 44px; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -0.6px; line-height: 1.2; }
.brand span { min-width: 0; }
.brand__icon { width: 33px; height: 33px; transform: rotate(-5deg); }
.site-header nav { display: flex; flex-shrink: 0; gap: 26px; font-size: 13px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent; }
.site-header nav a:hover { text-decoration-color: currentColor; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 14px; padding: 65px 0 64px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 2.3px; color: var(--muted); }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.pencil-line { width: 28px; height: 1px; background: var(--muted); transform: rotate(-6deg); }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.8vw, 58px); line-height: 1.16; letter-spacing: -2.1px; margin: 0; }
h1 em { font-weight: 400; }
.hero__description { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 24px 0 18px; }
.text-link { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--ink); }
.text-link span { font-size: 23px; }
.hero__art { margin: 4px -14px 0 0; position: relative; }
.hero__art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.hero__art figcaption { font: 11px var(--hand); color: var(--muted); text-align: center; transform: rotate(-4deg); margin-top: -12px; }
.dictionary { border-top: 1px solid var(--line); padding-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin: 0 0 8px; }
.section-heading h2 { margin: 0; font: 400 35px var(--serif); letter-spacing: -1px; }
.entry-count { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.sample-note { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; }
.sample-note span { margin-right: 5px; }
.search-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 22px 0 30px; flex-wrap: wrap; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 13px; min-width: 240px; max-width: 420px; flex: 1 1 270px; height: 52px; border: 1px solid #b9b9b0; border-radius: 4px 8px 5px 7px; background: #ffffff24; position: relative; }
.search-field::after { content: ''; pointer-events: none; position: absolute; inset: 2px -2px -2px 1px; border: 1px solid #8d8d7f32; border-radius: 5px 6px 7px 4px; transform: rotate(-0.3deg); }
.search-field .icon { width: 20px; height: 20px; color: var(--muted); }
.search-field input { min-width: 0; width: 100%; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-field input:focus-visible { outline-offset: -2px; }
.search-field input::placeholder { color: #92928a; }
kbd { font: 10px var(--hand); color: var(--muted); }
.alphabet { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.letter-button { min-width: 44px; min-height: 44px; border: 1px solid transparent; background: transparent; font-size: 12px; cursor: pointer; border-radius: 48% 44% 51% 42%; }
.letter-button:first-child { padding: 0 11px; }
.letter-button[aria-pressed='true'] { border-color: #77796e; background: #45483a06; transform: rotate(-3deg); }
.letter-button:hover { background: var(--soft); }
.dictionary__pages { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 47px; align-items: start; }
.list-caption { font-size: 9px; letter-spacing: 2px; color: var(--muted); padding: 0 8px 14px; margin: 4px 0 0; }
.word-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); max-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.word-list li { border-bottom: 1px solid var(--line); }
.word-button { width: 100%; min-height: 76px; border: 0; background: transparent; display: grid; grid-template-columns: 23px 1fr 16px; align-items: center; gap: 11px; text-align: left; padding: 11px 12px 11px 8px; cursor: pointer; }
.word-button[aria-pressed='true'] { background: #45483a09; box-shadow: inset 2px 0 var(--ink); }
.word-button:hover { background: #45483a06; }
.word-button__number { align-self: start; padding-top: 9px; color: #99998f; font-size: 10px; font-family: var(--serif); }
.word-button__name { display: block; font: 23px var(--serif); }
.word-button__kind { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.word-button__arrow { color: var(--muted); opacity: 0; }
.word-button[aria-pressed='true'] .word-button__arrow { opacity: 1; }
.entry-area { min-width: 0; }
.entry-sheet { min-height: 470px; padding: 35px 39px 22px; position: relative; background: #ffffff38; border: 1px solid #c5c4b9; border-radius: 3px 7px 5px 2px; box-shadow: 3px 4px 0 #4e504211; }
.entry-sheet::after { content: ''; pointer-events: none; position: absolute; inset: 4px -3px -3px 4px; border: 1px solid #6c6e5c25; border-radius: 2px 5px 3px 5px; transform: rotate(-0.15deg); }
.entry-sheet__eyebrow { font-size: 8px; letter-spacing: 2px; color: var(--muted); margin: 0 50px 16px 0; }
.entry-sheet__number { position: absolute; top: 27px; right: 32px; font: italic 41px var(--serif); color: #bcbbb0; }
.entry-sheet h3 { font: 400 48px/1.1 var(--serif); letter-spacing: -1px; margin: 0; overflow-wrap: anywhere; }
.word-kind { font: italic 12px var(--serif); color: var(--muted); margin: 9px 0 27px; }
.entry-definition { display: flex; gap: 11px; align-items: baseline; font-family: var(--serif); }
.definition-index { color: var(--muted); font-size: 13px; }
.meaning { margin: 0; font-size: 18px; line-height: 1.65; }
.sentence-block { margin-top: 28px; padding: 19px 0 19px 17px; border-left: 1px solid #a6a69a; }
.field-label { margin: 0 0 10px; color: var(--muted); font-size: 8px; letter-spacing: 1.8px; }
.sentence { margin: 0; font: italic 17px/1.65 var(--serif); }
.sentence::before { content: '“'; }
.sentence::after { content: '”'; }
.voice-slot { margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 19px; }
.voice-slot__heading { display: flex; align-items: center; gap: 12px; }
.voice-slot__heading > .icon { width: 23px; height: 23px; }
.voice-title { margin: 0 0 3px; font: 15px var(--serif); }
.voice-description { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.voice-pending { width: 44px; height: 44px; margin-left: auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50% 46% 49% 44%; background: transparent; color: #9b9c92; flex-shrink: 0; }
.voice-pending .icon { width: 19px; height: 19px; }
.audio-container audio { width: 100%; height: 42px; margin-top: 14px; }
.audio-error { font-size: 12px; color: var(--ink); }
.entry-sheet__footnote { margin: 26px 0 0; color: #8c8d82; font: 10px var(--hand); }
.entry-sheet__footnote span { margin-right: 4px; }
.empty-page { padding: 50px 22px; border: 1px dashed var(--line); text-align: center; }
.empty-page h3 { font: 27px var(--serif); }
.empty-page p { font-size: 13px; color: var(--muted); }
.quiet-button { min-height: 44px; padding: 8px 17px; background: transparent; border: 1px solid var(--line); border-radius: 4px 7px 3px 6px; cursor: pointer; }
.story { display: flex; gap: 24px; max-width: 670px; padding: 60px 25px 55px; margin: 30px auto 0; }
.story__star { width: 34px; height: 34px; margin-top: 3px; transform: rotate(-9deg); }
.story h2 { margin: 0 0 13px; font: 400 24px var(--serif); }
.story p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0; }
.story p.story__signature { margin-top: 14px; font: 12px var(--hand); transform: rotate(-2deg); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); min-height: 88px; font-size: 11px; color: var(--muted); }
.site-footer > span:first-child { font: 16px var(--serif); color: var(--ink); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (max-width: 900px) {
  .site-shell { padding: 0 28px; }
  .hero { padding-top: 48px; padding-bottom: 48px; }
  .dictionary__pages { grid-template-columns: 205px minmax(0, 1fr); gap: 25px; }
  .entry-sheet { padding: 29px 25px 22px; }
  .entry-sheet__number { right: 24px; }
}
@media (max-width: 640px) {
  .site-shell { padding: 0 22px; }
  .site-header { min-height: 84px; gap: 13px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand__icon { width: 27px; height: 27px; }
  .site-header nav { gap: 14px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding: 40px 0 34px; gap: 4px; }
  h1 { font-size: clamp(35px, 8.8vw, 49px); letter-spacing: -1.3px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1.8px; margin-bottom: 18px; }
  .hero__description { font-size: 13px; margin-top: 19px; }
  .desktop-break { display: none; }
  .hero__art { width: min(310px, 90%); justify-self: center; margin: -12px 0 0; }
  .hero__art figcaption { font-size: 10px; margin-top: -15px; }
  .dictionary { padding-top: 25px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading .eyebrow { font-size: 8px; letter-spacing: 1.7px; }
  .entry-count { font-size: 10px; }
  .search-row { gap: 11px; margin-bottom: 23px; }
  .search-field { max-width: none; min-width: 0; flex-basis: 100%; }
  .alphabet { gap: 2px; }
  .dictionary__pages { grid-template-columns: 1fr; gap: 26px; }
  .word-list { display: grid; grid-template-columns: 1fr 1fr; max-height: 290px; column-gap: 10px; }
  .word-button { min-height: 67px; grid-template-columns: 15px 1fr 10px; gap: 6px; padding-right: 8px; }
  .word-button__name { font-size: 21px; overflow-wrap: anywhere; }
  .list-caption { padding-bottom: 10px; }
  .entry-sheet { min-height: 0; padding: 29px 24px 23px; }
  .entry-sheet h3 { font-size: 43px; }
  .meaning { font-size: 17px; }
  .story { padding: 45px 0 36px; gap: 17px; margin-top: 13px; }
  .story__star { width: 27px; height: 27px; }
  .site-footer { flex-wrap: wrap; gap: 8px; padding: 18px 0; min-height: 80px; }
  .site-footer > span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
