/* Everyday Writing Intro — matches product visual language */

:root {
  --bg: #fafafa;
  --bg-soft: #f5f5f5;
  --surface: #ffffff;
  --text: #37352f;
  --text-strong: #171717;
  --text-secondary: #525252;
  --text-muted: #737373;
  --text-faint: #a3a3a3;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --primary: #2f4a6a;
  --primary-hover: #3a5c82;
  --primary-fg: #fafafa;
  --primary-soft: rgba(47, 74, 106, 0.1);
  --primary-ring: rgba(47, 74, 106, 0.22);
  --shadow-sm: 0 1px 2px rgba(23, 23, 23, 0.04);
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 3.5rem;
  --toc-w: 15.5rem;
  --content-max: 92rem;
  --page-pad: clamp(1.25rem, 3.2vw, 2.75rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.25rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 12% -10%, rgba(23, 23, 23, 0.045), transparent 55%),
    radial-gradient(ellipse 70% 45% at 92% 8%, rgba(23, 23, 23, 0.03), transparent 50%),
    linear-gradient(180deg, #fafafa 0%, #f7f7f7 45%, #fafafa 100%);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Top bar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--page-pad);
  background: rgba(250, 250, 250, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  border-radius: 0.65rem;
  transition: opacity 0.2s var(--ease);
}

.brand:hover {
  opacity: 0.82;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.55rem;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  margin: 0.1rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  grid-column: 2;
}

.topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  grid-column: 3;
  min-width: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  position: relative;
  z-index: 50;
}

.lang-switcher-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.lang-dd {
  position: relative;
}

.lang-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 7.25rem;
  max-width: 9.5rem;
  height: 2rem;
  padding: 0 0.55rem 0 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.lang-dd-trigger:hover {
  border-color: #a3a3a3;
  background: #fff;
}

.lang-dd.is-open .lang-dd-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.lang-dd-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.lang-dd-chevron {
  flex-shrink: 0;
  color: var(--text-faint);
  transition: transform 0.2s var(--ease);
}

.lang-dd.is-open .lang-dd-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.lang-dd-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 100%;
  width: max-content;
  max-height: min(18rem, 60vh);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s var(--ease);
}

.lang-dd.is-open .lang-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-dd-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.lang-dd-option:hover {
  background: var(--bg-soft);
  color: var(--text-strong);
}

.lang-dd-option.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.privacy-wish {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.55rem 0.95rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text-strong);
}

.menu-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: var(--text-muted);
}

.menu-toggle:hover {
  background: var(--bg-soft);
  color: var(--text-strong);
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.75rem var(--page-pad) 3.25rem;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: min(56rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  border-radius: 0.85rem;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  opacity: 0;
  animation: rise-in 0.7s var(--ease) 0.05s forwards;
}

.hero-brand:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.hero-brand:hover .hero-brand-mark {
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.18);
}

.hero-brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.12);
}

.hero-brand-label {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
  color: var(--text-strong);
  opacity: 0;
  animation: rise-in 0.75s var(--ease) 0.15s forwards;
}

.hero-title-line {
  display: inline;
}

.hero-lead {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  opacity: 0;
  animation: rise-in 0.75s var(--ease) 0.28s forwards;
}

.hero-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  opacity: 0;
  animation: rise-in 0.75s var(--ease) 0.4s forwards;
}

.hero-site {
  margin: 1.35rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
  text-decoration: none;
  opacity: 0;
  animation: rise-in 0.75s var(--ease) 0.5s forwards;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}

.hero-site:hover {
  border-color: #a3a3a3;
  background: #fff;
  transform: translateY(-1px);
}

.hero-site:active {
  transform: scale(0.98);
}

.hero-site-label {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-site-url {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  word-break: break-all;
}

.callout a,
.footer a {
  color: var(--text-strong);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.callout a:hover,
.footer a:hover {
  color: var(--text-secondary);
}

.footer p + p {
  margin-top: 0.35rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Layout ── */
.layout {
  display: grid;
  grid-template-columns: var(--toc-w) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem var(--page-pad) 4rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  max-height: calc(100vh - var(--nav-h) - 2rem);
  overflow-y: auto;
  padding: 0.25rem 0.25rem 0.25rem 0;
}

.toc-title {
  margin: 0 0 0.75rem;
  padding-left: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.toc-list a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.toc-list a:hover {
  background: rgba(23, 23, 23, 0.04);
  color: var(--text-strong);
}

.toc-list a.is-active {
  background: #f5f5f5;
  color: var(--text-strong);
  font-weight: 500;
  box-shadow: inset 3px 0 0 #d4d4d4;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Sections ── */
.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  content-visibility: auto;
  contain-intrinsic-size: auto 680px;
}

#overview {
  content-visibility: visible;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section.is-hydrated {
  content-visibility: visible;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.section-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.1rem;
  color: var(--text-muted);
}

.section h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.35;
}

.section-kicker {
  margin: 0.2rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.section p {
  margin: 0.65rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.section p:first-of-type {
  margin-top: 0;
}

.section h3 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-strong);
}

.section ol,
.section ul {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

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

.section li::marker {
  color: var(--text-faint);
}

.callout {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
}

.callout-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-strong);
}

.callout p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
}

.subcard {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #f0f0f0;
  background: var(--bg-soft);
}

.subcard h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-strong);
}

.subcard p {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

.feature-tile {
  padding: 0.85rem 0.9rem;
  border-radius: 0.625rem;
  border: 1px solid #f0f0f0;
  background: var(--bg-soft);
  text-align: center;
}

.feature-tile strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-strong);
}

.feature-tile span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

table {
  width: 100%;
  margin-top: 0.85rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-strong);
  background: var(--bg-soft);
}

td {
  color: var(--text-secondary);
}

.steps {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid #f0f0f0;
  background: var(--bg-soft);
}

.step-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
}

.step-body strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-strong);
}

.step-body p {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.faq details {
  margin-top: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-faint);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  content: '−';
}

.faq .faq-body {
  padding: 0 1rem 0.95rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.faq .faq-body p {
  margin: 0;
  font-size: inherit;
}

.rhythm-list {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rhythm-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid #f0f0f0;
  background: var(--bg-soft);
}

.rhythm-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-strong);
}

.rhythm-item p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--page-pad) 2.5rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.footer .footer-brand {
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--primary-fg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.back-top-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-top-track {
  fill: none;
  stroke: rgba(47, 74, 106, 0.16);
  stroke-width: 2.5;
}

.back-top-bar {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.12s linear;
}

.back-top-core {
  position: relative;
  z-index: 1;
  width: 2.05rem;
  height: 2.05rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(47, 74, 106, 0.28);
  transition: background 0.2s var(--ease);
}

.back-top:hover .back-top-core {
  background: var(--primary-hover);
}

.back-top.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toc-backdrop {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  :root {
    --toc-w: 13.5rem;
    --content-max: 100%;
  }

  .layout {
    gap: 1.5rem;
  }

  .hero-inner {
    max-width: min(48rem, 100%);
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 3.25rem;
  }

  .topbar {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .brand {
    flex: 1;
    min-width: 0;
    gap: 0.55rem;
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 0.875rem;
  }

  .topbar-actions {
    display: none;
  }

  .topbar-end {
    flex-shrink: 0;
    gap: 0.35rem;
  }

  .lang-switcher-label {
    display: none;
  }

  .lang-dd-trigger {
    min-width: 6.5rem;
    max-width: 7.5rem;
    height: 1.9rem;
    font-size: 0.6875rem;
    padding: 0 0.45rem 0 0.55rem;
  }

  .layout {
    grid-template-columns: 1fr;
    padding-top: 1.25rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .toc {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    bottom: 0;
    width: min(18rem, 86vw);
    z-index: 45;
    margin: 0;
    padding: 1rem;
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: 8px 0 30px rgba(23, 23, 23, 0.08);
    transform: translateX(-105%);
    transition: transform 0.3s var(--ease);
    max-height: none;
  }

  .toc.is-open {
    transform: translateX(0);
  }

  .toc-backdrop {
    display: block;
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 44;
    background: rgba(23, 23, 23, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
  }

  .toc-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .rhythm-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .hero {
    padding: 2.5rem var(--page-pad) 2.25rem;
  }

  .hero-inner {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
    line-height: 1.35;
  }

  .hero-title-line {
    display: block;
  }

  .section {
    padding: 1.15rem 1rem 1.25rem;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    white-space: nowrap;
  }

  /* 完成度等长文案表允许换行 */
  #overview td:last-child,
  #writing td:last-child,
  #proficiency td:last-child,
  #user-center td:last-child {
    white-space: normal;
    min-width: 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-cta,
  .hero-site,
  .section {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
