@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --paper: #f5f3eb;
  --ink: #172723;
  --muted: #59665e;
  --line: #d2d7cc;
  --accent: #d4ed94;
  --forest: #294f3d;
  --white: #fbfcf6;
  --danger: #9e3828;
  --radius: 14px;
  --sans: Manrope, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: #d4ed94;
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--forest);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
input {
  accent-color: var(--forest);
  caret-color: var(--forest);
}
:focus-visible {
  outline: 3px solid #658629;
  outline-offset: 4px;
}
button:focus-visible {
  outline-offset: 4px;
}
.wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-light {
  font-weight: 450;
}
.site-header nav {
  display: flex;
  gap: 30px;
}
.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.home .site-header nav a[href="/"],
.blog .site-header nav a[href="/blog/"],
.article .site-header nav a[href="/blog/"] {
  text-decoration: underline;
  text-underline-offset: 9px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent);
  padding: 12px;
  z-index: 50;
}
.skip-link:focus {
  top: 8px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 {
  font-weight: 650;
}
h2 {
  font-weight: 650;
}
p {
  margin: 0 0 1.2em;
}
.meter-intro {
  padding: 25px 0 24px;
}
.meter-intro h1 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.meter-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.meter {
  background: var(--ink);
  color: var(--white);
  padding: 24px 32px 18px;
  border-radius: var(--radius);
}
.meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #c4d1c7;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #98aa9b;
  display: inline-block;
  margin-right: 9px;
}
body[data-measuring="true"] .status-dot {
  background: var(--accent);
}
.timer {
  font: 13px var(--mono);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.meter-core {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  padding: 32px 0 20px;
}
.reading-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #d5dfd6;
}
.reading-label span {
  font-size: 10px;
  border: 1px solid #64786b;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.01em;
}
.reading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  letter-spacing: -0.04em;
  line-height: 1.12;
  min-height: 125px;
  margin-top: 12px;
}
#reading {
  font-size: 108px;
  font-weight: 500;
  min-width: 3.1ch;
}
.reading-unit {
  font: 18px var(--sans);
  color: #c4d1c7;
  letter-spacing: 0;
}
.level-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-right: 24px;
  font-size: 14px;
  color: #c4d1c7;
  margin: 7px 0 0;
  min-height: 44px;
}
.sound-guide-link {
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sound-guide-link:hover {
  color: var(--white);
}
.sound-comparison {
  display: none;
  width: min(500px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 12px;
  padding: 18px 24px 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 70px #0004;
}
.sound-comparison:popover-open {
  display: block;
}
.comparison-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.comparison-heading h2 {
  font-size: 20px;
  margin: 0;
}
.comparison-status {
  margin: 6px 0 14px;
  font-size: 12px;
  color: var(--muted);
  min-height: 40px;
}
.scene-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.scene-row {
  display: grid;
  grid-template-columns: 110px 32px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.scene-row:last-child {
  border-bottom: 1px solid var(--line);
}
.scene-row[data-current="true"] {
  background: var(--accent);
}
.scene-range {
  font: 13px var(--mono);
  font-variant-numeric: tabular-nums;
}
.scene-current {
  display: block;
  margin-top: 4px;
  font: 10px var(--sans);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.scene-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--forest);
}
.scene-copy strong,
.scene-copy span {
  display: block;
}
.scene-copy strong {
  font-size: 15px;
  font-weight: 650;
}
.scene-copy span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.comparison-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.comparison-source {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
}
.peak-display {
  font-size: 11px;
  color: #d4ed94;
  margin-top: 5px;
}
.history-panel {
  position: relative;
}
.chart-heading {
  display: flex;
  justify-content: space-between;
  color: #c4d1c7;
  font-size: 11px;
  padding-right: 8px;
  margin-bottom: 12px;
}
.chart-heading span:first-child {
  color: var(--white);
  font-weight: 600;
}
.history-panel svg {
  height: 182px;
  width: 100%;
  display: block;
  overflow: visible;
  touch-action: pan-y;
}
.chart-grid path {
  fill: none;
  stroke: #354a3e;
  stroke-width: 1;
}
.chart-grid text {
  font: 11px var(--mono);
  fill: #a6b8aa;
}
#history-line {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linejoin: round;
}
#history-end {
  fill: var(--accent);
}
.chart-time {
  display: flex;
  justify-content: space-between;
  margin: 5px 40px 0 0;
  font: 10px var(--mono);
  color: #a6b8aa;
}
#history-empty {
  position: absolute;
  top: 87px;
  left: 15px;
  right: 40px;
  text-align: center;
  font-size: 12px;
  color: #b8c7bc;
}
.scale {
  padding-top: 4px;
}
.scale-bar {
  height: 7px;
  position: relative;
  background: linear-gradient(
    to right,
    #a4cbac 0 30.77%,
    #d4ed94 30.77% 53.85%,
    #edc56e 53.85% 76.92%,
    #ed9373 76.92% 100%
  );
  border-radius: 3px;
}
#scale-marker {
  width: 3px;
  height: 17px;
  background: #fff;
  position: absolute;
  top: -5px;
  box-shadow: 0 2px 8px #0008;
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  color: #b8c7bc;
  font: 10px var(--mono);
  margin-top: 12px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  padding: 24px 0 22px;
  margin-top: 12px;
  border-bottom: 1px solid #3a4f42;
}
.stats > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 7px;
  padding: 0 25px;
  border-right: 1px solid #3a4f42;
}
.stats > div:first-child {
  padding-left: 0;
}
.stats > div:last-child {
  border: 0;
}
.stats span {
  grid-column: 1/-1;
  font-size: 11px;
  color: #bccbbe;
  margin-bottom: 4px;
}
.stats strong {
  font: 32px var(--mono);
  font-weight: 450;
  letter-spacing: -0.03em;
}
.stats small {
  font-size: 12px;
  color: #b8c7bc;
}
.stats .stat-average strong {
  font-size: 36px;
  color: var(--accent);
}
.meter-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 22px;
}
.button {
  border: 0;
  border-radius: 7px;
  min-height: 48px;
  padding: 11px 20px;
  background: var(--forest);
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s;
}
.button:hover {
  background: #35684f;
  color: #fff;
}
.button:disabled {
  opacity: 0.45;
}
.meter .start {
  background: var(--accent);
  color: var(--ink);
  min-width: 225px;
  font-size: 14px;
}
.meter .start:hover {
  background: #e1f4b8;
}
.meter .report-button {
  background: #354b3e;
  color: #f5f8f2;
  border: 1px solid #52665a;
}
.meter .report-button:disabled {
  opacity: 0.45;
}
.peak-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
  color: #d3ded3;
  min-height: 44px;
  cursor: pointer;
}
.peak-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.meter-caption {
  font-size: 10px;
  color: #b3c3b7;
  margin: 10px 0 0;
}
.meter-footnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0 20px;
  font-size: 11px;
  color: var(--muted);
  gap: 20px;
}
.meter-footnote p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.meter-footnote a {
  flex-shrink: 0;
}
.settings {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  margin-left: auto;
}
details[open] > summary:after {
  content: "−";
}
.summary-hint {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
summary:has(.summary-hint):after {
  margin-left: 6px;
}
.settings-body {
  padding: 10px 0 25px;
  font-size: 13px;
  max-width: 900px;
}
.settings-overview {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
}
.settings-overview dl {
  margin: 0;
}
.settings-overview dl div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.settings-overview dd {
  margin: 0;
  font-family: var(--mono);
}
.adjust-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 15px 0 8px;
}
.adjust-row label {
  display: grid;
  gap: 4px;
  min-width: 165px;
}
.adjust-row label span {
  font-family: var(--mono);
  color: var(--muted);
}
.adjust-row input {
  flex: 1;
  min-width: 80px;
  min-height: 44px;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid #a9b5a6;
}
.secondary:hover {
  background: #e6eadf;
  color: var(--ink);
}
.settings-note {
  font-size: 11px;
  color: var(--muted);
}
.calibration {
  border-top: 1px solid var(--line);
}
.calibration-body {
  padding: 5px 0 20px;
  max-width: 72ch;
}
.calibration-body form {
  display: flex;
  gap: 15px;
  align-items: end;
  margin: 18px 0;
}
.calibration-body label {
  flex: 1;
}
.calibration-body input {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #9eac9d;
  background: var(--white);
  border-radius: 5px;
  margin-top: 5px;
  min-height: 44px;
}
.calibration-body li {
  margin-bottom: 8px;
}
.error-box {
  background: #fff0e6;
  color: #762c22;
  border: 1px solid #dbac93;
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 20px;
  font-size: 14px;
}
.error-box h2 {
  font-size: 18px;
  margin: 0 0 7px;
}
.error-box p {
  margin-bottom: 8px;
}
.error-box summary {
  font-size: 13px;
}
.note {
  background: #e9eddf;
  padding: 18px 22px;
  border-radius: 6px;
  font-size: 14px;
}
.content-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 8%;
}
.content-section h2 {
  font-size: 25px;
  margin: 0;
}
.content-section > div,
.content-section > p {
  max-width: 72ch;
}
.content-section .section-heading {
  margin: 0;
}
.content-section ul,
.content-section ol {
  padding-left: 22px;
}
.content-section li {
  margin-bottom: 12px;
}
.content-section p:last-child {
  margin-bottom: 0;
}
.steps {
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.6;
}
th {
  text-align: left;
  font-weight: 650;
  padding: 12px 14px;
  background: #e8ebdf;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:first-child {
  padding-left: 14px;
}
td:first-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 30px;
}
.use-grid h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:last-child {
  border: 0;
}
.faq-list summary {
  font-size: 14px;
}
.faq-list p {
  font-size: 14px;
  padding-bottom: 15px;
}
.site-footer {
  padding: 44px 0 30px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 25px;
}
.footer-brand {
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.site-footer p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 20px;
  align-content: start;
}
.site-footer nav a {
  min-height: 36px;
  font-size: 12px;
}
.site-footer .footer-note {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 0;
}
.text-button {
  background: none;
  border: 0;
  text-decoration: underline;
  font-size: 12px;
  padding: 8px 0;
  color: var(--muted);
}
.page-header {
  padding: 55px 0 38px;
  border-bottom: 1px solid var(--line);
  max-width: none;
}
.page-header h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  max-width: 20ch;
  margin: 0 0 20px;
}
.page-header .lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 65ch;
  margin: 0;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb {
  font-size: 12px;
  margin: 30px 0 -30px;
  display: flex;
  gap: 10px;
}
.prose {
  max-width: 72ch;
  margin: 40px auto 65px;
  font-size: 16px;
  line-height: 1.8;
}
.prose h2,
.article-body h2 {
  font-size: 28px;
  margin: 44px 0 17px;
}
.prose h3,
.article-body h3 {
  font-size: 20px;
  margin: 28px 0 12px;
}
.prose li,
.article-body li {
  margin-bottom: 10px;
}
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding-top: 36px;
}
.article-toc {
  align-self: start;
  position: sticky;
  top: 25px;
  font-size: 12px;
  padding-top: 10px;
  line-height: 1.65;
}
.article-toc h2 {
  font-size: 13px;
  margin: 0 0 16px;
  letter-spacing: 0;
}
.article-toc ol,
.article-toc ul {
  padding: 0;
  list-style: none;
}
.article-toc li {
  margin: 12px 0;
}
.article-toc a {
  color: var(--muted);
  text-decoration: none;
}
.article-toc a:hover {
  text-decoration: underline;
}
.article-toc details summary {
  display: none;
}
.article-toc details > nav {
  display: block;
}
.article-body {
  max-width: 72ch;
  line-height: 1.85;
}
.article-body h2:first-child {
  margin-top: 5px;
}
.article-body svg {
  max-width: 100%;
  height: auto;
}
.article-body figure {
  margin: 30px 0;
}
.article-body figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.sources {
  font-size: 13px;
}
.related-articles {
  padding: 30px 0;
  margin-top: 35px;
  border-top: 1px solid var(--line);
}
.related-articles h2 {
  font-size: 22px;
}
.related-articles ul {
  list-style: none;
  padding: 0;
}
.related-articles li {
  margin: 12px 0;
}
.reading-link {
  font-size: 13px;
  font-weight: 600;
}
.blog-controls {
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 30px 0 15px;
  flex-wrap: wrap;
}
.blog-controls label {
  font-size: 12px;
  font-weight: 600;
  display: grid;
  gap: 6px;
}
.blog-controls input,
.blog-controls select {
  min-height: 48px;
  border-radius: 5px;
  background: var(--white);
  border: 1px solid #a9b5a6;
  padding: 10px 14px;
  color: var(--ink);
}
.blog-controls input {
  width: 340px;
}
.blog-controls select {
  min-width: 190px;
}
.blog-controls button {
  min-height: 48px;
}
.blog-controls > p,
.result-count {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 15px;
}
.blog-list {
  margin: 10px 0 50px;
}
.blog-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 55px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.blog-entry h2 {
  font-size: 27px;
  margin: 0 0 12px;
  max-width: 32ch;
}
.blog-entry h2 a {
  text-decoration: none;
}
.blog-entry h2 a:hover {
  text-decoration: underline;
}
.blog-entry p {
  max-width: 65ch;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.blog-featured {
  padding: 38px 0;
}
.blog-featured h2 {
  font-size: 34px;
}
.blog-entry .article-meta {
  margin-top: 0;
}
.blog-entry .blog-art {
  background: #e4e9dc;
  border-radius: 8px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.blog-art svg {
  width: 100%;
  height: auto;
}
.blog-category {
  font-size: 11px;
  color: var(--forest);
  font-weight: 650;
  margin: 0 0 8px;
}
.empty-state {
  padding: 50px 0;
  font-size: 17px;
}
.empty-state p {
  color: var(--muted);
  font-size: 14px;
}
.consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, calc(100% - 32px));
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 30px #17272326;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
}
.consent p {
  font-size: 12px;
  margin: 0;
}
.consent > div {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.consent .button {
  font-size: 11px;
  min-height: 44px;
  padding: 8px 12px;
}
dialog {
  border: 0;
  border-radius: 12px;
  width: min(760px, calc(100% - 32px));
  max-height: 90vh;
  padding: 25px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 20px 70px #0004;
}
dialog::backdrop {
  background: #102018aa;
}
.report-dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.report-dialog-heading h2 {
  font-size: 22px;
  margin: 0;
}
.icon-button {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 44px;
  border-radius: 5px;
}
.icon-button:hover {
  background: #e4e9dc;
}
.report-notice {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 20px;
}
.report-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.report-sheet {
  background: #fff;
  padding: 25px;
  font-size: 13px;
}
.report-sheet h3 {
  font-size: 23px;
  margin: 0 0 10px;
}
.report-sheet dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.report-sheet dl div {
  padding: 8px 0;
}
.report-sheet dt {
  font-size: 11px;
  color: var(--muted);
}
.report-sheet dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 16px;
}
.report-sheet svg {
  display: block;
  width: 100%;
  height: 150px;
  margin: 20px 0;
}
.report-sheet .report-limit {
  font-size: 11px;
  color: #4e5c51;
}
.report-sheet table {
  font-size: 12px;
}
#export-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 15px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .meter {
    padding: 22px 25px;
  }
  .meter-core {
    grid-template-columns: 43% 57%;
    gap: 12px;
  }
  .reading {
    min-height: 100px;
  }
  #reading {
    font-size: 80px;
  }
  .reading-label {
    flex-wrap: wrap;
    gap: 6px;
  }
  .content-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 35px 0;
  }
  .content-section h2 {
    max-width: 25ch;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .article-toc {
    position: static;
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
  }
  .article-toc details summary {
    display: flex;
  }
  .article-toc details:not([open]) > nav {
    display: none;
  }
  .article-toc h2 {
    display: none;
  }
  .article-toc li {
    margin: 8px 0;
  }
  .blog-entry {
    grid-template-columns: 160px 1fr;
    gap: 25px;
  }
  .blog-controls input {
    width: 280px;
  }
  .settings-overview {
    gap: 25px;
  }
  .consent {
    flex-wrap: wrap;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .site-footer nav {
    justify-content: flex-start;
  }
}
@media (max-width: 540px) {
  body {
    font-size: 15px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 75px;
  }
  .brand {
    font-size: 20px;
    gap: 6px;
  }
  .brand svg {
    width: 25px;
  }
  .site-header nav {
    gap: 22px;
  }
  .site-header nav a {
    font-size: 12px;
  }
  .meter-intro {
    padding: 20px 0;
  }
  .meter-intro h1 {
    font-size: 19px;
    line-height: 1.35;
    max-width: 28ch;
  }
  .meter-intro p {
    font-size: 12px;
    line-height: 1.7;
  }
  .meter {
    padding: 19px 20px 15px;
    border-radius: 12px;
  }
  .meter-top {
    font-size: 11px;
  }
  .timer {
    font-size: 11px;
  }
  .meter-core {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 23px 0 17px;
    gap: 24px;
  }
  .reading-label {
    justify-content: center;
    gap: 8px;
    font-size: 12px;
  }
  .reading {
    justify-content: center;
    min-height: 96px;
    margin-top: 7px;
    gap: 9px;
  }
  #reading {
    font-size: 87px;
    min-width: 0;
  }
  .reading-unit {
    font-size: 15px;
  }
  .level-context {
    padding-right: 0;
    margin-top: 1px;
    font-size: 12px;
  }
  .sound-guide-link {
    font-size: 11px;
  }
  .sound-comparison {
    padding: 14px 16px;
  }
  .comparison-heading h2 {
    font-size: 18px;
  }
  .scene-row {
    grid-template-columns: 96px 28px minmax(0, 1fr);
    gap: 10px;
    padding-inline: 8px;
    min-height: 74px;
  }
  .scene-icon {
    width: 28px;
    height: 28px;
  }
  .scene-range {
    font-size: 12px;
  }
  .scene-copy strong {
    font-size: 13px;
  }
  .scene-copy span {
    font-size: 11px;
  }
  .peak-display {
    text-align: center;
  }
  .history-panel svg {
    height: 100px;
  }
  .chart-heading {
    font-size: 10px;
    margin-bottom: 6px;
  }
  #history-empty {
    top: 47px;
    font-size: 11px;
  }
  .chart-time {
    font-size: 9px;
  }
  .scale {
    padding-top: 0;
  }
  .scale-labels {
    font-size: 9px;
    margin-top: 10px;
  }
  .stats {
    padding: 18px 0;
    margin-top: 8px;
    grid-template-columns: 1fr 1.15fr 1fr;
  }
  .stats > div {
    padding: 0 12px;
    column-gap: 4px;
  }
  .stats span {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .stats strong {
    font-size: 23px;
  }
  .stats .stat-average strong {
    font-size: 26px;
  }
  .stats small {
    font-size: 9px;
  }
  .meter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 18px;
  }
  .meter .start {
    min-width: 0;
    grid-column: 1/-1;
    min-height: 50px;
  }
  .meter .report-button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .peak-toggle {
    margin: 0;
    justify-content: flex-end;
    font-size: 11px;
  }
  .meter-caption {
    font-size: 9px;
    line-height: 1.5;
    margin-top: 9px;
  }
  .meter-footnote {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0 19px;
    gap: 5px;
    font-size: 10px;
  }
  .meter-footnote p {
    align-items: flex-start;
    line-height: 1.8;
  }
  .meter-footnote p svg {
    flex-shrink: 0;
    margin-top: 2px;
  }
  .meter-footnote a {
    margin-left: 22px;
  }
  .settings summary {
    font-size: 13px;
  }
  .settings-body {
    font-size: 12px;
  }
  .settings-overview {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .adjust-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .adjust-row label {
    min-width: 140px;
  }
  .adjust-row input {
    width: calc(100% - 150px);
  }
  .adjust-row button {
    width: 100%;
    font-size: 12px;
  }
  .calibration-body form {
    flex-direction: column;
    align-items: stretch;
  }
  .content-section h2 {
    font-size: 24px;
  }
  .content-section {
    padding: 31px 0;
    gap: 17px;
  }
  .use-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .faq-list summary {
    font-size: 13px;
    line-height: 1.6;
    padding: 10px 0;
  }
  .faq-list p {
    font-size: 13px;
  }
  .site-footer {
    padding-top: 32px;
    gap: 17px;
  }
  .site-footer nav {
    gap: 0 19px;
  }
  .site-footer nav a {
    font-size: 11px;
    min-height: 44px;
  }
  .page-header {
    padding: 35px 0 28px;
  }
  .page-header h1 {
    font-size: 35px;
    max-width: 20ch;
  }
  .page-header .lede {
    font-size: 15px;
  }
  .article-meta {
    font-size: 10px;
    gap: 6px 12px;
  }
  .breadcrumb {
    margin: 20px 0 -15px;
    font-size: 11px;
  }
  .prose {
    margin-top: 28px;
    font-size: 15px;
  }
  .article-body {
    font-size: 15px;
  }
  .article-body h2 {
    font-size: 25px;
  }
  .blog-controls {
    gap: 12px;
    padding-top: 25px;
  }
  .blog-controls label:first-child {
    width: 100%;
  }
  .blog-controls input {
    width: 100%;
  }
  .blog-controls select {
    min-width: 175px;
  }
  .blog-entry {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px 0;
  }
  .blog-entry .blog-art {
    min-height: 120px;
    max-height: 130px;
    padding: 17px 35px;
  }
  .blog-entry .blog-art svg {
    max-height: 100px;
  }
  .blog-entry h2,
  .blog-featured h2 {
    font-size: 27px;
  }
  .report-actions {
    flex-direction: column;
  }
  .report-sheet {
    padding: 18px;
  }
  .report-sheet dl {
    gap: 5px;
  }
  .report-sheet dd {
    font-size: 13px;
  }
  .report-dialog-heading h2 {
    font-size: 19px;
  }
  dialog {
    padding: 18px;
  }
  .consent > div {
    width: 100%;
    justify-content: flex-end;
  }
  td,
  th {
    padding: 10px 8px;
  }
}
@media (max-height: 500px) and (min-width: 541px) {
  .site-header {
    height: 56px;
  }
  .meter-intro {
    padding: 8px 0;
  }
  .meter-intro h1 {
    margin-bottom: 4px;
  }
  .meter {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 9px 24px;
    padding: 12px 24px;
  }
  .meter-top {
    grid-column: 1 / -1;
  }
  .meter-core {
    display: contents;
  }
  .reading-panel,
  .history-panel {
    grid-row: 2;
    align-self: center;
  }
  .reading {
    min-height: 80px;
    margin-top: 0;
  }
  .level-context {
    margin-top: 0;
    padding-right: 0;
    font-size: 12px;
  }
  #reading {
    font-size: 76px;
  }
  .history-panel svg {
    height: 90px;
  }
  .chart-grid text {
    font-size: 17px;
  }
  .consent {
    position: static;
    margin: 24px auto;
  }
  #history-empty {
    top: 45px;
  }
  .meter-actions {
    grid-row: 3;
    grid-column: 1 / -1;
    padding-top: 0;
  }
  .scale,
  .stats,
  .error-box,
  .meter-caption {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  body > :not(main) {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .site-header,
  .site-footer,
  .meter-intro,
  .meter,
  .meter-footnote,
  .settings,
  .content-section,
  .error-box,
  .note,
  .consent,
  .report-dialog-heading,
  .report-notice,
  .report-actions,
  #export-error {
    display: none !important;
  }
  main {
    width: 100% !important;
  }
  dialog#report-dialog {
    display: block !important;
    position: static;
    width: 100%;
    max-height: none;
    padding: 0;
    box-shadow: none;
    background: #fff;
    overflow: visible;
  }
  dialog::backdrop {
    display: none;
  }
  .report-sheet {
    padding: 0;
  }
  #report-preview {
    display: block;
  }
  body.printing > header,
  body.printing > footer {
    display: none;
  }
  .report-sheet p {
    break-inside: avoid;
  }
}
.meter-page .site-header nav a[href="/"],
.blog-page .site-header nav a[href="/blog/"],
.article-page .site-header nav a[href="/blog/"] {
  text-decoration: underline;
  text-underline-offset: 9px;
}
.breadcrumb ol {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.breadcrumb li + li:before {
  content: "/";
  margin-right: 10px;
  color: var(--muted);
}
.publish-date,
.small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.home-content .prose {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}
.section-body {
  min-width: 0;
}
.blog-entry .blog-entry-body {
  min-width: 0;
}
.blog-entry-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  margin-top: 18px;
  color: var(--muted);
}
.blog-entry > .article-meta {
  display: block;
  align-self: start;
  font-size: 11px;
}
.blog-entry > .article-meta span {
  display: block;
  margin-bottom: 6px;
}
.blog-controls .secondary-button,
.empty-state .secondary-button {
  min-height: 48px;
  border: 1px solid #a9b5a6;
  border-radius: 5px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.blog-controls .secondary-button:hover,
.empty-state .secondary-button:hover {
  background: #e6eadf;
}
.blog-controls label {
  margin-bottom: 6px;
}
.blog-return {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.blog-return p {
  font-size: 16px;
  margin-bottom: 8px;
}
.article-body.prose {
  margin: 0 0 30px;
}
.article-toc details summary {
  display: flex;
}
.article-toc a,
.blog-entry-footer a,
.article-action a,
.blog-return a,
.related-articles a,
.site-footer nav a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}
.article-toc details:not([open]) ol {
  display: none;
}
.article-action {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 540px) {
  .blog-controls .search-field {
    width: 100%;
  }
  .blog-entry > .article-meta {
    display: flex;
    gap: 12px;
  }
  .blog-entry > .article-meta span {
    display: inline;
  }
  .blog-entry-footer {
    font-size: 10px;
  }
  .home-content .prose {
    font-size: 14px;
  }
}
@media (max-width: 540px) {
  .meter {
    display: grid;
    grid-template-columns: 1fr;
  }
  .meter-top {
    grid-row: 1;
  }
  .meter-core {
    display: contents;
  }
  .reading-panel {
    grid-row: 2;
    padding-top: 24px;
  }
  .meter-actions {
    grid-row: 3;
    padding-top: 20px;
  }
  .error-box {
    grid-row: 4;
    margin: 16px 0 0;
  }
  .history-panel {
    grid-row: 5;
    margin-top: 25px;
  }
  .scale {
    grid-row: 6;
    margin-top: 17px;
  }
  .stats {
    grid-row: 7;
  }
  .meter-caption {
    grid-row: 8;
  }
}

@media (max-width: 540px) {
  .chart-grid text {
    font-size: 22px;
  }
  .chart-heading,
  .stats span {
    font-size: 11px;
  }
  .chart-time,
  .scale-labels,
  .meter-caption {
    font-size: 10px;
  }
  .meter-footnote {
    font-size: 12px;
  }
}
