:root {
  color-scheme: light;
  --paper: #f8f6f2;
  --ink: #192429;
  --muted: #686b6d;
  --yellow: #ffca32;
  --line: #e9e5df;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 48% 70%, #ffffff80, transparent 70%), var(--paper); }
button, input, a, summary { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a, summary { touch-action: manipulation; }
button { -webkit-appearance: none; appearance: none; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
:is(button, a, input, summary):focus-visible { outline: 3px solid #ab7900; outline-offset: 5px; }
:is(button, a, input, summary):focus:not(:focus-visible) { outline: none; }
.icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; vertical-align: middle; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: 85.75%; max-width: 1316px; margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; padding: 12px; background: var(--yellow); z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header { height: 87px; border-bottom: 1px solid #e8e4de99; position: relative; z-index: 5; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 24px; font-weight: 500; white-space: nowrap; }
.brand .app-icon { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 1px 3px #7654001f; }
.navigation { display: flex; gap: 52px; align-items: center; position: absolute; left: 44.2%; transform: translateX(-50%); font-size: 15px; }
.navigation a, .navigation button { padding: 12px 0; }
.navigation a:hover, .navigation button:hover { color: #9b7000; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(110deg, #ffce3c, #ffd03b); border: 1px solid #ffce32; border-radius: 11px; color: #0d171a; transition: background .18s, transform .18s, box-shadow .18s; }
.button:hover { background: #ffda58; box-shadow: 0 5px 18px #cc9c1720; transform: translateY(-2px); }
.header-download { height: 40px; font-size: 15px; padding: 0 16px; border-radius: 9px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-picker { position: relative; }
.language-picker summary { list-style: none; min-width: 57px; height: 40px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #e3ded4; border-radius: 9px; background: #fffaf2cc; color: #394145; font-size: 13px; cursor: pointer; user-select: none; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover, .language-picker[open] summary { border-color: #d5c9b3; background: #fff; }
.language-picker summary img { width: 18px; height: 18px; }
.language-menu { position: absolute; z-index: 12; top: calc(100% + 8px); right: 0; width: 156px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf9; box-shadow: 0 14px 38px #33281921; }
.language-menu [data-locale] { display: block; width: 100%; min-height: 36px; padding: 7px 28px 7px 10px; border-radius: 7px; position: relative; text-align: left; font-size: 14px; color: inherit; text-decoration: none; }
.language-menu [data-locale]:hover { background: #f5f0e7; }
.language-menu [data-locale][aria-checked="true"] { background: #fff2c7; }
.language-menu [data-locale][aria-checked="true"]::after { content: '✓'; position: absolute; right: 10px; color: #9a6d00; font-weight: 700; }
.mobile-language-picker, .mobile-language-trigger { display: none; }
.menu-toggle, .mobile-nav-download { display: none; }
.hero { height: 496px; position: relative; overflow: hidden; background: #f4ede1 url('../images/reading-room.webp') center bottom / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f8f6f2eb 0%, #f8f6f2b0 32%, #f8f6f210 60%, transparent); pointer-events: none; }
.hero-inner { position: relative; height: 100%; padding-top: 76px; }
.hero-copy { position: relative; z-index: 2; width: 540px; max-width: 47%; }
h1 { font-size: 74px; font-weight: 500; line-height: 1.02; letter-spacing: -1.8px; }
.tagline { font-size: 21px; line-height: 1.5; margin-top: 24px; color: #565e62; white-space: nowrap; }
.app-download { margin-top: 35px; font-size: 17px; min-height: 51px; padding: 12px 20px; }
.app-download .icon { width: 20px; height: 24px; }
.devices { position: absolute; width: 530px; height: 100%; right: 50px; top: 0; }
.device { position: absolute; background: #111716; border: 2px solid #93948a; box-shadow: 0 2px 2px #fff8 inset, 0 0 0 1px #222, 8px 18px 21px -13px #4b3a2b80; }
.device img { width: 100%; height: auto; background: #f7f7f4; }
.tablet { width: 330px; left: 0; top: 20px; padding: 15px 13px; border-radius: 25px; }
.tablet::before { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #252d30; top: 5px; left: 50%; }
.tablet img { border-radius: 10px; }
.phone { width: 184px; right: 0; bottom: 26px; padding: 6px; border-radius: 30px; }
.phone::before { content: ''; position: absolute; left: -4px; top: 68px; width: 2px; height: 24px; background: #70736b; box-shadow: 0 32px #70736b; border-radius: 2px; }
.phone img { border-radius: 23px; }
.features { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7.5%; padding-block: 39px 32px; }
.feature h2 { font-size: 28px; font-weight: 500; letter-spacing: -.55px; line-height: 1.2; }
.feature-copy > p { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 9px; max-width: 300px; }
.preview-card { position: relative; display: block; padding: 0; width: 100%; background: #f7f7f4; border: 1px solid #fff9; border-radius: 10px; box-shadow: 0 8px 24px #4737220a; overflow: hidden; }
.feature > .preview-card { margin-top: 27px; max-width: 340px; height: 160px; }
.preview-card img { width: 100%; height: 100%; object-fit: contain; }
.preview-card.reading-progress { background: #fff; }
.site-footer { border-top: 1px solid var(--line); color: #777; font-size: 13px; }
.footer-inner { min-height: 105px; padding-block: 22px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 7px 24px; }
.footer-links a, .filing-links a { text-decoration: underline; text-decoration-color: #c6c0b7; text-underline-offset: 3px; }
.operator { grid-column: 1; font-size: 12px; color: #8a8781; }
.filing-links { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.filing-links[hidden] { display: none; }
.police-filing-link { display: inline-flex; align-items: center; gap: 6px; }
.police-filing-link img { width: 14px; height: 16px; object-fit: contain; flex: none; }
.site-footer a:hover { color: #9b7000; }
dialog { width: min(460px, calc(100% - 32px)); max-height: 85vh; overflow: auto; border: 1px solid #e9e3d6; border-radius: 22px; background: #fbf8f2; color: var(--ink); padding: 38px; box-shadow: 0 24px 100px #0003; }
dialog::backdrop { background: #19242966; backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; border-radius: 50%; }
.dialog-close:hover { background: #eee8dc; }
.eyebrow { font-size: 12px; letter-spacing: 2px; color: #9d740c; margin-bottom: 12px; }
dialog h2 { font-size: 32px; }
dialog p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.65; margin-top: 14px; }
dialog ul { padding-left: 20px; line-height: 1.9; font-size: 15px; color: #586064; }
dialog .button { padding: 12px 18px; margin-top: 8px; }
dialog .fine-print { font-size: 12px !important; }
#language-dialog { width: min(360px, calc(100% - 32px)); padding: 34px 30px 28px; }
#language-dialog h2 { padding-right: 32px; }
#language-dialog .mobile-language-picker { display: block; }
#language-dialog .language-menu { position: static; width: 100%; margin-top: 22px; box-shadow: none; }
#language-dialog .language-menu [data-locale] { padding-block: 10px; }
@media (min-width: 1600px) { .hero { height: 530px; } .hero-inner { padding-top: 88px; } .devices { right: 20px; } .tablet { top: 35px; width: 345px; } .phone { width: 190px; } }
@media (max-width: 1150px) {
  h1 { font-size: 58px; }
  .hero-copy { max-width: 50%; }
  .tagline { font-size: 17px; }
  .hero { height: 440px; }
  .hero-inner { padding-top: 75px; }
  .devices { width: 425px; right: 0; }
  .tablet { width: 285px; top: 22px; padding: 12px 10px; }
  .phone { width: 154px; bottom: 25px; padding: 5px; border-radius: 25px; }
  .phone img { border-radius: 18px; }
  .features { gap: 5%; }
  .feature h2 { font-size: 24px; }
  .feature-copy > p { font-size: 14px; }
  .feature > .preview-card { margin-top: 23px; height: 145px; }
}
@media (min-width: 701px) and (max-width: 950px) {
  h1 { font-size: 49px; }
  .tagline { white-space: normal; max-width: 300px; }
  .devices { width: 320px; }
  .tablet { width: 228px; top: 50px; }
  .phone { width: 127px; bottom: 30px; }
  .app-download { font-size: 15px; padding-inline: 13px; }
  .navigation { left: 57%; gap: 25px; }
  .brand { font-size: 21px; }
  .feature h2 { font-size: 21px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .site-header { height: 74px; }
  .brand { font-size: 23px; }
  .brand .app-icon { width: 34px; height: 34px; }
  .header-download { display: none; }
  .header-actions { gap: 4px; }
  .header-actions > .language-picker { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; }
  .menu-toggle .icon { width: 27px; height: 27px; }
  .menu-close, .menu-toggle[aria-expanded=true] .menu-open { display: none; }
  .menu-toggle[aria-expanded=true] .menu-close { display: block; }
  .navigation { display: none; position: absolute; top: 64px; left: 20px; right: 20px; transform: none; background: #fffcf6; border: 1px solid var(--line); box-shadow: 0 12px 24px #29251d12; border-radius: 14px; padding: 18px; font-size: 16px; }
  .navigation.is-open { display: flex; flex-direction: column; gap: 3px; align-items: stretch; }
  .navigation a, .navigation button { text-align: left; padding: 12px; }
  .navigation .mobile-language-trigger { display: block; }
  .mobile-nav-download { display: block; }
  .hero { height: auto; }
  .hero-inner { padding-top: 35px; padding-bottom: 350px; }
  .hero-copy { width: 100%; max-width: none; }
  h1 { font-size: clamp(40px, 9vw, 58px); }
  .tagline { font-size: 16px; white-space: normal; max-width: 310px; margin-top: 18px; }
  .app-download { margin-top: 23px; }
  .devices { width: 300px; height: 310px; top: auto; bottom: 18px; right: calc(50% - 150px); }
  .tablet { width: 217px; top: 0; }
  .phone { width: 130px; bottom: 0; }
  .features { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .feature { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
  .feature:last-child { border: 0; padding-bottom: 0; }
  .feature h2 { font-size: 29px; }
  .feature-copy > p { font-size: 16px; max-width: none; }
  .feature > .preview-card { width: 100%; max-width: 380px; height: 195px; }
  .footer-inner { min-height: 0; display: flex; flex-direction: column; align-items: flex-start; padding-block: 28px; gap: 17px; }
  .footer-links { flex-direction: column; gap: 13px; }
  .filing-links { align-items: flex-start; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
