/* Engineering English Learning — shared foundations */

:root {
  --bg: #eef2f7;
  --bg-soft: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #f3f7fb;
  --ink: #102235;
  --ink-soft: #40566d;
  --muted: #6b7e92;
  --line: #dbe4ef;
  --line-strong: #c4d2e2;
  --brand: #1e4e79;
  --brand-2: #2f6da3;
  --accent: #c7892d;
  --accent-soft: #fbf0dc;
  --green: #1d7a5f;
  --red: #b53b31;
  --header-bg: rgba(246, 249, 252, 0.84);
  --shadow: 0 22px 50px -30px rgba(15, 34, 54, 0.45);
  --shadow-soft: 0 10px 28px -20px rgba(15, 34, 54, 0.4);
  --grid: rgba(30, 78, 121, 0.055);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0a121d;
  --bg-soft: #0e1926;
  --surface: #101d2c;
  --surface-2: #0c1724;
  --ink: #e9f0f8;
  --ink-soft: #b8c7d8;
  --muted: #8ea2b6;
  --line: #1f3045;
  --line-strong: #2a3f57;
  --brand: #7fb0dc;
  --brand-2: #a7c8ea;
  --accent: #e2ad55;
  --accent-soft: #2a2417;
  --green: #57c69b;
  --red: #f08a80;
  --header-bg: rgba(10, 18, 29, 0.82);
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.85);
  --shadow-soft: 0 14px 36px -24px rgba(0, 0, 0, 0.8);
  --grid: rgba(127, 176, 220, 0.075);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1100px 620px at 8% -12%, rgba(47, 109, 163, 0.14), transparent 62%),
    radial-gradient(900px 560px at 104% 2%, rgba(199, 137, 45, 0.1), transparent 58%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
}

.shell {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  margin-right: auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  color: #fff;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__sub {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.site-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.site-nav a.is-active {
  background: var(--brand);
  color: #fff;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  color: var(--brand);
  border-color: var(--line-strong);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle .icon-moon,
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.lead {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.pre-line {
  white-space: pre-line;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 12px 24px -16px rgba(30, 78, 121, 0.9);
}

.btn--ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--danger {
  border-color: rgba(181, 59, 49, 0.35);
  background: transparent;
  color: var(--red);
}

.btn--small {
  min-height: 34px;
  padding: 5px 12px;
  font-size: 12.5px;
  border-radius: 9px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--brand);
  border-color: var(--line-strong);
}

/* ---------- Cards & progress ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  transition: width 0.5s ease;
}

.progress__bar--accent {
  background: linear-gradient(90deg, var(--accent), #dbab63);
}

.ring {
  --value: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--value) * 1%), var(--line) 0);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ring__inner {
  position: relative;
  text-align: center;
}

.ring__value {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ring__value small {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}

.ring__label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 72px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Home ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: center;
  padding: 66px 0 40px;
}

.hero h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero__lead {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero__meta b {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.hero__meta span {
  color: var(--muted);
  font-size: 12px;
}

.hero__ring {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.hero__ring-note {
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 54px 0 20px;
}

.section-head h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  font-size: 13px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -30px rgba(15, 34, 54, 0.5);
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0.85;
}

.module-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-card__index {
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.module-card h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.module-card__desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  min-height: 48px;
}

.module-card__stats {
  display: flex;
  gap: 28px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.module-card__stats b {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.module-card__stats span {
  color: var(--muted);
  font-size: 11.5px;
}

.module-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 700;
}

.module-card__link:hover {
  gap: 10px;
}

.mini-chapters {
  display: grid;
  gap: 7px;
}

.mini-chapter {
  display: grid;
  grid-template-columns: 1fr 62px;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}

.mini-chapter__bar {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.mini-chapter__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
}

.chip.is-done {
  border-color: rgba(29, 122, 95, 0.35);
  background: rgba(29, 122, 95, 0.08);
  color: var(--green);
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.overview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 30px;
}

.overview h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.overview__list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.overview__list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}

.overview__list b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-top: 20px;
}

.panel {
  padding: 24px;
}

.panel h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.panel .lead {
  font-size: 12.5px;
}

.activity {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.activity li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.activity li:last-child {
  border-bottom: 0;
}

.activity__dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.activity__text {
  flex: 1;
  min-width: 0;
}

.activity__time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 16px 0;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tools .btn {
  flex: 1 1 auto;
}

.storage-note {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

/* ---------- Page hero ---------- */

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 52px 0 28px;
}

.page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 4.6vw, 44px);
  letter-spacing: -0.035em;
}

.page-hero .lead {
  max-width: 620px;
}

.page-hero__side {
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.page-hero__side .tag {
  justify-self: start;
}

.page-hero__progress {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.page-hero__progress b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 20px;
}

/* ---------- Vocabulary page ---------- */

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.chapter-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.chapter-card__no {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.chapter-card h3 {
  margin: 8px 0 4px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.chapter-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11.5px;
  margin-bottom: 10px;
}

.chapter-card .progress {
  height: 5px;
}

.word-group {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.word-group > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 650;
}

.word-group > summary::-webkit-details-marker {
  display: none;
}

.word-group > summary::before {
  content: "+";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 16px;
  width: 14px;
}

.word-group[open] > summary::before {
  content: "−";
}

.word-group > summary .tag {
  margin-left: auto;
}

.word-row {
  display: grid;
  grid-template-columns: 24px minmax(150px, 1.3fr) minmax(120px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  transition: background 0.12s ease;
}

.word-row:hover {
  background: var(--surface-2);
}

.word-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  cursor: pointer;
}

.word-row__en {
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.word-row__zh {
  color: var(--muted);
  font-size: 13px;
}

.word-row.is-mastered .word-row__en {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* ---------- Communication page ---------- */

.module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comm-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.comm-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.comm-card__head .tag {
  flex: none;
  white-space: nowrap;
}

.comm-card h2 {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.comm-card__no {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.comm-card__outline {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}

.comm-card__outline li {
  display: flex;
  gap: 8px;
}

.comm-card__outline li::before {
  content: "·";
  color: var(--accent);
}

.comm-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.status-pill.is-done {
  color: var(--green);
}

.scale-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.scale-strip div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.scale-strip b {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
}

.scale-strip span {
  color: var(--muted);
  font-size: 11.5px;
}

.notice {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  max-width: min(480px, calc(100vw - 32px));
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  border-color: rgba(181, 59, 49, 0.4);
  color: var(--red);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 48px;
  }

  .hero__ring {
    justify-self: start;
  }

  .module-grid,
  .module-list,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .overview {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .scale-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 28px);
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .brand__sub {
    display: none;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0 6px;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.4vw, 40px);
  }

  .page-hero {
    padding-top: 36px;
  }

  .word-row {
    grid-template-columns: 24px minmax(0, 1.35fr) auto;
    row-gap: 4px;
  }

  .word-row__zh {
    grid-column: 2 / 3;
  }

  .word-row .speak {
    grid-row: 1 / span 2;
    grid-column: 3;
  }

  .overview {
    padding: 22px;
    gap: 22px;
  }

  .module-card {
    padding: 20px;
  }

  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .scale-strip {
    grid-template-columns: 1fr 1fr;
  }

  .hero__meta {
    gap: 18px;
  }

  .hero__ring .ring {
    width: 160px;
    height: 160px;
  }

  .ring__value {
    font-size: 38px;
  }

  .word-row {
    padding-inline: 14px;
  }

  .word-group > summary {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
