:root {
  --bg: #f5f1ea;
  --ink: #171411;
  --muted: #5f574f;
  --line: rgba(23, 20, 17, 0.12);
  --line-strong: rgba(23, 20, 17, 0.22);
  --accent: #204f46;
  --accent-warm: #a55a2a;
  --accent-soft: rgba(32, 79, 70, 0.08);
  --quote: #fbf7f0;
  --page-width: 1320px;
  --article-width: 900px;
  --table-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

a {
  color: inherit;
}

p,
li {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 2rem), var(--page-width));
  margin: 0 auto;
  padding: 1.4rem 0 4.5rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 2rem;
}

.brand {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.masthead {
  display: block;
  align-items: start;
  margin-bottom: 1.2rem;
}

.lede {
  padding-top: 0.5rem;
  max-width: var(--article-width);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Newsreader", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

h1 span {
  display: block;
}

.title-subline {
  margin-top: 0.18em;
  color: var(--accent);
  font-size: 0.78em;
  background-image: linear-gradient(92deg, var(--accent) 0%, #2d6c60 42%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-tagline {
  margin-top: 0.3em;
  color: rgba(23, 20, 17, 0.36);
  font-size: 0.62em;
  letter-spacing: 0;
}

.kicker {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-grid {
  display: block;
}

.article {
  padding: 0;
}

.measure {
  max-width: var(--article-width);
  margin-left: auto;
  margin-right: auto;
}

.prose {
  max-width: var(--article-width);
  margin-left: auto;
  margin-right: auto;
}

.contents-card {
  padding-top: 1rem;
  margin-bottom: 2rem;
}

.contents-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.contents-card ol {
  margin: 0;
  padding-left: 1.2rem;
}

.contents-card li {
  margin-bottom: 0.45rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.contents-card a {
  text-decoration: none;
}

.contents-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.97rem;
  color: var(--muted);
}

.section + .section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 1rem;
}

.section p.prose + p.prose,
.section p.prose + ul.prose,
.section p.prose + ol.prose,
.section ul.prose + p.prose,
.section ol.prose + p.prose,
.section .note.prose + p.prose,
.section .note.prose + ul.prose,
.section .note.prose + ol.prose {
  margin-top: 1rem;
}

.section ul.prose,
.section ol.prose {
  padding-left: 1.2rem;
}

.section > .measure:first-child,
.section > .prose:first-child {
  margin-top: 0;
}

.section li + li {
  margin-top: 0.55rem;
}

.note {
  margin: 1.35rem auto 0;
  padding: 1rem 1.1rem;
  background: var(--quote);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.note p {
  margin: 0;
  font-size: 1rem;
}

.device-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.table-stage {
  width: min(100%, var(--table-width));
  margin: 1rem auto 0;
}

.device-table {
  width: 100%;
  border-collapse: collapse;
}

.device-table th,
.device-table td {
  padding: 0.9rem 0.7rem;
  text-align: left;
  vertical-align: middle;
  max-width: 250px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.device-table th {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.device-cell {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  min-width: 220px;
}

.device-thumb {
  width: 104px;
  height: 78px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.3rem;
}

.device-name {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

.device-subname {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.software-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.software-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.software-row + .software-row {
  margin-top: 0.45rem;
}

.mic-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.mic-status svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mic-status--on {
  color: #17804a;
}

.mic-status--off {
  color: #c54949;
}

.airplay-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--article-width);
  margin: 0 auto;
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  text-decoration-color: rgba(25, 22, 18, 0.2);
  text-underline-offset: 0.16em;
}

@media (max-width: 980px) {
  .lede {
    padding-top: 1rem;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 1rem), var(--page-width));
    padding-bottom: 3rem;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .article {
    padding: 1.35rem 1.15rem 1.6rem;
  }

  h1 {
    max-width: none;
  }

  .device-table th,
  .device-table td {
    min-width: 140px;
  }
}
