/* Public-facing editorial components. */
@import url("./theme.css?v=20260911");
html { scrollbar-color: var(--line-strong) var(--bg); scroll-padding-top: 24px; }
body, [data-theme="light"] body { background: var(--bg); font-family: var(--font-body); }
body::before, body::after { content: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 12px; color: var(--bg); }
.site-header { min-height: 96px; padding: 22px max(40px, calc((100vw - 1280px) / 2)); padding-right: max(104px, calc((100vw - 1280px) / 2 + 64px)); background: var(--bg); gap: 32px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; background: none; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 700; letter-spacing: -1px; }
.brand-dot { margin-left: 12px; color: var(--accent); font-size: 32px; font-weight: 400; line-height: 1; }
.site-nav { gap: 30px; color: var(--text); font-size: 14px; font-weight: 500; }
.site-nav a { padding: 6px 0; }
.site-nav a:hover { text-shadow: none; }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 8px; }
.theme-toggle { position: absolute; top: 27px; right: max(32px, calc((100vw - 1280px) / 2)); width: 40px; height: 40px; border-color: var(--line); background: transparent; border-radius: 50%; box-shadow: none; }
.theme-toggle:hover { box-shadow: none; transform: none; background: var(--soft); }
.shell { width: min(1120px, calc(100% - 80px)); padding: 76px 0 100px; }
.page-head { margin-bottom: 46px; }
.page-head h1, .article h1, .headline h1 { margin-bottom: 18px; font-family: var(--font-serif); font-size: clamp(36px, 4.5vw, 56px); font-weight: 500; letter-spacing: -.04em; background: none; color: var(--text); }
.page-head p { max-width: 640px; line-height: 1.9; }
.page-head .eyebrow { margin-bottom: 20px; }
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .09em; line-height: 1.8; }
.list { gap: 0; border-top: 1px solid var(--line); }
.list .item { position: relative; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 32px 42px 32px 0; background: transparent; }
.list a.item::after { position: absolute; right: 8px; top: 32px; content: "↗"; font-size: 24px; }
.list a.item:hover { transform: none; background: var(--soft); box-shadow: none; }
.list .item h2 { margin-bottom: 12px; font-family: var(--font-serif); font-size: 27px; font-weight: 500; }
.list .item p { font-size: 14px; }
.article { max-width: 800px; line-height: 1.95; }
.article h2, .article h3 { margin-top: 2em; font-family: var(--font-serif); font-weight: 500; }
.article pre { background: var(--soft); color: var(--text); }
.upload-button { background: var(--text); color: var(--bg); box-shadow: none; }
.upload-button:hover:not(:disabled) { color: var(--bg); background: var(--accent); }
.upload-button::after { content: none; }
/* Media states use the same paper palette as the surrounding page. */
.gallery-card, .gallery-card:hover { box-shadow: none; }
.gallery-card:hover { transform: translateY(-2px); }
.image-thumb-fallback { background: var(--soft); color: var(--muted); font-weight: 400; }
.folder-icon { background: var(--card-paper); }
.folder-icon::before { background: var(--terracotta); border: 1px solid var(--line-strong); }
.folder-icon::after { background: var(--bg-soft); border: 1px solid var(--line-strong); box-shadow: none; }
.video-thumb { background: var(--card-sage); color: var(--text); }
.video-thumb-label { border: 1px solid var(--line-strong); border-radius: 4px; font-weight: 500; }
.video-play-badge { border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); box-shadow: none; }
.video-play-badge::before { border-left-color: currentColor; }
.reaction-button, .reaction-button:hover { box-shadow: none; }
.reaction-button:hover { background: var(--soft); transform: none; }
.lightbox { background: var(--bg); color: var(--text); backdrop-filter: none; -webkit-backdrop-filter: none; }
.lightbox-media img, .lightbox-media video { box-shadow: none; border: 1px solid var(--line); border-radius: 4px; }
.lightbox-frame figcaption { color: var(--muted); }
.lightbox-frame a { color: var(--text); font-weight: 500; }
.lightbox-reactions .reaction-button { background: var(--bg-soft); color: var(--text); border-color: var(--line-strong); }
.lightbox-close, .lightbox-nav { background: var(--bg-soft); color: var(--text); border-color: var(--line-strong); }
.lightbox-close:hover, .lightbox-nav:hover:not(:disabled) { background: var(--soft); box-shadow: none; transform: none; }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible, .lightbox-reactions .reaction-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.editorial-audio .search-input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.breadcrumb button:hover, .breadcrumb button[aria-current="page"] { background: var(--soft); }
.topbar { background: var(--bg); box-shadow: none; padding-top: 22px; padding-bottom: 22px; }
.editorial-audio > .theme-toggle { position: fixed; top: 24px; right: 18px; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.brand-copy span { background: none; color: var(--muted); font-weight: 400; }
.brand-mark { background: var(--accent); box-shadow: none; }
.top-nav { font-weight: 500; }
.top-nav > a:not(.icon-link) { border-color: transparent; background: transparent; }
.sound-card, .sidebar, .stat { box-shadow: none; }
.sound-card:hover { box-shadow: none; }
.headline p { font-size: 15px; font-weight: 400; line-height: 1.8; }
.headline .eyebrow { font-size: 11px; letter-spacing: .09em; }
.sound-card[data-current="true"] .play-symbol { background: var(--accent-strong); color: var(--bg); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 32px; min-height: 49px; padding: 12px 22px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-weight: 500; transition: background-color 160ms ease, color 160ms ease; }
.button-dark { background: var(--text); color: var(--bg); }
.button-dark:hover { background: var(--accent); color: var(--bg); }
.button-outline { border-color: var(--text); color: var(--text); background: transparent; }
.button-outline:hover { background: var(--text); color: var(--bg); }
.text-link { display: inline-flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer { width: min(1280px, calc(100% - 80px)); margin: 0 auto; padding: 44px 0 26px; border-top: 1px solid var(--line); }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top p { color: var(--muted); font-family: var(--font-serif); font-size: 18px; }
.footer-bottom { margin-top: 64px; color: var(--muted); font-size: 11px; letter-spacing: .035em; }
.lab-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lab-option { display: flex; flex-direction: column; align-items: flex-start; padding: 36px; background: var(--card-paper); }
.lab-option:nth-child(2) { background: var(--card-sage); }
.lab-option h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 500; }
.lab-option p:not(.eyebrow) { margin: 0 0 32px; color: var(--muted); }
.lab-option .button { margin-top: auto; }
@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 24px; }
  .brand { font-size: 25px; }
  .site-nav { gap: 24px; font-size: 13px; }
  .theme-toggle { top: 24px; right: 24px; }
  .shell { width: calc(100% - 48px); padding: 46px 0 64px; }
  .page-head { margin-bottom: 32px; }
  .site-footer { width: calc(100% - 48px); padding-top: 28px; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-wrap: wrap; gap: 12px 24px; }
  .footer-bottom { margin-top: 28px; }
  .lab-options { grid-template-columns: 1fr; }
  .lab-option { padding: 28px; }
}
@media (max-width: 540px) {
  .brand-copy strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
