:root {
  --ink: #17201c;
  --paper: #f3f0e8;
  --paper-deep: #e7e2d5;
  --accent: #e4572e;
  --acid: #c9ef5b;
  --muted: #6f756f;
  --line: rgba(23, 32, 28, 0.17);
  --card: rgba(255, 255, 255, 0.42);
  --shadow: 0 28px 80px rgba(35, 39, 30, 0.09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); z-index: 10; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.bot-field { position: fixed !important; left: -10000px; top: -10000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.page-shell { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }

.topbar { height: 92px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 800; letter-spacing: -.04em; text-decoration: none; font-size: 18px; }
.brand > span:last-child span { color: var(--accent); }
.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(45deg); }
.brand-mark i { display: block; background: var(--ink); border-radius: 1px 8px 1px 8px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: var(--accent); }
.beta-badge { margin-right: auto; margin-left: 14px; padding: 5px 9px; border: 1px solid var(--accent); color: var(--accent); border-radius: 99px; font: 500 9px "DM Mono"; letter-spacing: .11em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 600; }
nav a { text-decoration: none; }
.theme-button, .language-button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.language-button { width: auto; min-width: 42px; border-radius: 99px; font: 500 10px "DM Mono"; letter-spacing: .08em; }

.hero { min-height: 640px; padding: 110px 6% 70px; position: relative; overflow: hidden; }
.hero::after { content: "ETYMOLOGIE"; position: absolute; right: -3%; top: 45%; font-family: "DM Mono"; font-size: clamp(70px, 11vw, 160px); color: transparent; -webkit-text-stroke: 1px rgba(23,32,28,.08); transform: rotate(90deg) translateX(30%); transform-origin: right top; letter-spacing: .08em; }
.eyebrow, .section-label { font-family: "DM Mono"; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 500; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.eyebrow > span:first-child { flex: 0 0 34px; width: 34px; height: 2px; background: var(--accent); }
.hero h1 { max-width: 900px; margin: 20px 0; font: 600 clamp(58px, 8vw, 124px)/.86 "Newsreader", serif; letter-spacing: -.065em; }
.hero h1::first-letter { color: var(--accent); }
.hero-copy { max-width: 610px; font-size: clamp(18px, 2vw, 24px); line-height: 1.55; color: #4d554f; }
.search { max-width: 890px; margin-top: 52px; position: relative; z-index: 1; }
.search > label { display: block; font: 500 11px "DM Mono"; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 11px; }
.search-control { padding: 7px; background: #fff; border-radius: 4px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; box-shadow: var(--shadow); border: 1px solid rgba(23,32,28,.09); }
.search-icon { width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; margin-left: 12px; position: relative; }
.search-icon::after { content: ""; width: 8px; height: 2px; background: var(--ink); position: absolute; right: -6px; bottom: -3px; transform: rotate(45deg); }
.search-control input { border: 0; outline: 0; min-width: 0; padding: 15px 10px; color: var(--ink); font: 500 23px "Newsreader"; background: transparent; }
.search-control button { border: 0; background: var(--ink); color: white; padding: 17px 22px; display: flex; align-items: center; gap: 24px; cursor: pointer; font-weight: 700; border-radius: 2px; }
.search-control button:hover { background: var(--accent); }
.search-control button:disabled { cursor: wait; opacity: .72; }

.loading-panel { margin: 0 6% 80px; padding: 42px 46px 46px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--card), rgba(255,255,255,.13)); box-shadow: 0 18px 55px rgba(35,39,30,.055); position: relative; overflow: hidden; }
.loading-panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent); }
.research-file-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.research-overline { display: block; color: var(--accent); font: 600 9px "DM Mono"; letter-spacing: .16em; text-transform: uppercase; }
.research-file-head h2, .research-error h2 { margin: 8px 0 0; font: 600 clamp(30px, 4vw, 46px)/1 "Newsreader"; letter-spacing: -.025em; }
.research-case { padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); font: 500 8px "DM Mono"; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.research-rule { height: 3px; margin: 26px 0 23px; background: var(--line); position: relative; overflow: hidden; }
.research-rule span { position: absolute; top: 0; left: 0; width: 18%; height: 100%; background: var(--accent); animation: research-pulse 1.8s ease-in-out infinite alternate; }
@keyframes research-pulse { from { transform: translateX(-20%); } to { transform: translateX(470%); } }
.research-stage { margin: 0; min-height: 1.5em; font: 600 19px/1.35 "Newsreader"; }
.research-steps { list-style: none; margin: 25px 0 0; padding: 0; border-top: 1px solid var(--line); }
.research-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 14px; align-items: center; min-height: 66px; padding: 12px 13px; border-bottom: 1px solid var(--line); opacity: .42; transition: opacity .18s ease, background .18s ease; }
.research-steps li > span, .research-steps li > b { color: var(--muted); font: 500 9px "DM Mono"; }
.research-steps li > b { text-align: right; font-size: 13px; }
.research-steps strong { display: block; font-size: 12px; }
.research-steps small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.research-steps li.is-active { opacity: 1; background: rgba(228,87,46,.075); }
.research-steps li.is-active > span, .research-steps li.is-active > b { color: var(--accent); }
.research-steps li.is-complete { opacity: .8; }
.research-steps li.is-complete > b { color: var(--accent); }
.research-steps li.is-skipped { opacity: .48; }
.extended-review-note { display: grid; grid-template-columns: 31px 1fr; gap: 15px; margin-top: 25px; padding: 19px 21px; border: 1px solid rgba(228,87,46,.46); background: rgba(228,87,46,.07); }
.extended-review-note > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font: 600 13px "Newsreader"; }
.extended-review-note strong { font: 600 17px "Newsreader"; }
.extended-review-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.research-error { margin: 0 6% 80px; padding: 38px 42px; border: 1px solid rgba(228,87,46,.55); background: rgba(228,87,46,.06); }
.research-error p { max-width: 720px; margin: 14px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.research-error button { min-width: 225px; display: inline-flex; justify-content: space-between; gap: 25px; padding: 14px 18px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 700; }
.research-error button:hover { background: var(--ink); color: var(--paper); }
.research-error:focus { outline: 2px solid var(--accent); outline-offset: 4px; }

.result { border-top: 1px solid var(--line); padding: 85px 6% 120px; }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.result-kicker { display: flex; gap: 8px; }
.result-kicker span { border: 1px solid var(--line); border-radius: 99px; padding: 5px 9px; font: 500 10px "DM Mono"; text-transform: uppercase; letter-spacing: .1em; }
.like-button { width: 260px; padding: 17px 19px 15px; border: 1px solid var(--ink); background: transparent; text-align: left; cursor: pointer; transition: background .18s ease, color .18s ease; }
.like-kicker { display: block; margin-bottom: 11px; color: var(--muted); font: 500 9px "DM Mono"; text-transform: uppercase; letter-spacing: .15em; }
.like-copy { display: grid; grid-template-columns: 27px 1fr auto; align-items: baseline; gap: 9px; }
.like-copy b { color: var(--accent); font: 500 25px/1 "Newsreader"; }
.like-copy strong { font: 600 19px "Newsreader"; }
.like-copy small { min-width: 22px; text-align: right; color: var(--muted); font: 500 10px "DM Mono"; }
.like-button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.like-button:hover:not(:disabled) .like-kicker, .like-button:hover:not(:disabled) .like-copy small { color: var(--paper-deep); }
.like-button:disabled { cursor: default; }
.like-button.is-liked { border-color: var(--accent); }
.like-button.is-liked .like-kicker::after { content: " · vermerkt"; color: var(--accent); }
.result h2 { font: 600 clamp(64px, 9vw, 130px)/.8 "Newsreader"; letter-spacing: -.06em; margin: 25px 0 18px; }
.pronunciation { font: 400 14px "DM Mono"; letter-spacing: .18em; color: var(--muted); }
.lede { max-width: 850px; font: 500 clamp(24px, 3vw, 38px)/1.3 "Newsreader"; margin: 60px 0 80px; }

.word-profile { margin-bottom: 16px; padding: 40px; border: 1px solid var(--line); background: var(--card); }
.profile-head { max-width: 850px; }
.profile-head h3 { margin: 16px 0 12px; font: 600 clamp(34px, 4vw, 54px)/1.02 "Newsreader"; letter-spacing: -.025em; }
.profile-head > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 38px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.profile-grid article { min-height: 210px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-grid article:nth-child(2) { background: var(--ink); color: var(--paper); }
.profile-grid span, .translation-card span { display: block; font: 500 9px "DM Mono"; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.profile-grid article:nth-child(2) span { color: var(--paper-deep); opacity: .65; }
.profile-grid p { margin: 28px 0 0; font: 500 19px/1.45 "Newsreader"; }
.translation-card { display: grid; grid-template-columns: 180px 1fr; gap: 25px; align-items: baseline; margin-top: 12px; padding: 23px 26px; background: var(--acid); }
.translation-card strong { font: 600 25px/1.25 "Newsreader"; }

.dna-band { padding: 32px 0 45px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dna-note { max-width: 690px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.morpheme-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: stretch; }
.morpheme { flex: 1 1 220px; padding: 22px; background: var(--ink); color: white; position: relative; }
.morpheme:nth-child(even) { background: var(--accent); }
.morpheme .form { font: 600 36px "Newsreader"; }
.morpheme .role { font: 500 9px "DM Mono"; text-transform: uppercase; letter-spacing: .12em; opacity: .6; }
.morpheme p { margin: 14px 0 0; font-size: 13px; line-height: 1.55; opacity: .85; }
.morpheme-changes { margin-top: 17px; border-top: 1px solid rgba(255,255,255,.22); }
.morpheme-change { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 11px 0 3px; border-bottom: 1px dotted rgba(255,255,255,.2); }
.morpheme-change > span { color: rgba(255,255,255,.68); font: 500 8px "DM Mono"; letter-spacing: .08em; text-transform: uppercase; }
.morpheme-change > strong { font: 600 14px "Newsreader"; }
.morpheme-change > small { grid-column: 1 / -1; color: rgba(255,255,255,.72); font-size: 9px; line-height: 1.45; }
.morpheme-change > .evidence-ref { grid-column: 1 / -1; margin: 2px 0 0; padding: 0; border: 0; color: white; font-style: normal; }
.morpheme-note { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); font-size: 9px; line-height: 1.5; opacity: .65; }
.morpheme .sync { position: absolute; top: 12px; right: 12px; font-size: 9px; border: 1px solid rgba(255,255,255,.4); padding: 3px 5px; }
.evidence-ref { display: inline-block; margin-top: 12px; padding-top: 7px; border-top: 1px solid currentColor; font: 500 8px "DM Mono"; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }

.etymology-family { margin-top: 16px; padding: 42px; border: 1px solid var(--line); background: var(--card); }
.family-pattern-head { max-width: 820px; }
.family-pattern-head h3 { margin: 14px 0 10px; font: 600 clamp(32px, 4vw, 50px)/1.04 "Newsreader"; letter-spacing: -.025em; }
.family-pattern-head > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.shared-root { display: grid; grid-template-columns: 150px 1fr; gap: 5px 22px; align-items: baseline; margin-top: 26px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shared-root span { grid-row: 1 / 3; font: 500 9px "DM Mono"; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.shared-root strong { font: 600 22px "Newsreader"; }
.shared-root small { color: var(--muted); font-size: 10px; }
.family-relation-group { margin-top: 34px; }
.family-relation-group + .family-relation-group { padding-top: 30px; border-top: 1px solid var(--line); }
.family-relation-head { display: grid; grid-template-columns: minmax(150px, .45fr) 1fr; gap: 18px; align-items: baseline; }
.family-relation-head span { font: 500 10px "DM Mono"; text-transform: uppercase; letter-spacing: .14em; }
.family-relation-head p { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.etymology-family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 34px; gap: 12px; }
.etymology-family-card { min-width: 0; padding: 26px; border: 1px solid var(--line); position: relative; background: rgba(255,255,255,.16); }
.etymology-family-card:nth-child(3n + 2) { background: var(--ink); color: var(--paper); }
.family-index { position: absolute; right: 20px; top: 18px; color: var(--muted); font: 400 10px "DM Mono"; }
.etymology-family-card h4 { margin: 0 38px 8px 0; font: 600 30px "Newsreader"; }
.family-base { display: block; margin: 0 38px 22px 0; color: var(--muted); font: 500 8px/1.45 "DM Mono"; letter-spacing: .06em; text-transform: uppercase; overflow-wrap: anywhere; }
.etymology-family-card:nth-child(3n + 2) .family-base { color: var(--paper-deep); opacity: .7; }
.component-chain { display: flex; flex-wrap: wrap; gap: 7px; align-items: stretch; }
.family-component { flex: 1 1 105px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); }
.etymology-family-card:nth-child(3n + 2) .family-component { border-color: rgba(255,255,255,.2); }
.family-component strong { display: block; color: var(--accent); font: 600 18px "Newsreader"; overflow-wrap: anywhere; }
.family-component small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.family-component em { display: block; margin-top: 7px; font-size: 8px; line-height: 1.35; opacity: .65; font-style: normal; }
.etymology-family-card:nth-child(3n + 2) .family-component small { color: var(--paper-deep); opacity: .7; }
.etymology-family-card > p { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.etymology-family-card:nth-child(3n + 2) > p { color: var(--paper-deep); opacity: .82; }

.story-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 16px; }
.story-card { min-height: 370px; padding: 42px; position: relative; border: 1px solid var(--line); background: var(--card); }
.story-card h3 { font: 600 clamp(27px, 3vw, 43px)/1.08 "Newsreader"; margin: 55px 0 20px; max-width: 600px; }
.story-card p { line-height: 1.65; color: #515953; }
.card-number { position: absolute; right: 24px; top: 20px; font: 400 12px "DM Mono"; color: var(--muted); }
.origin-card { background: var(--acid); border-color: transparent; }
.route { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 500 11px "DM Mono"; }
.route span:not(:last-child)::after { content: "→"; margin-left: 8px; opacity: .5; }
.family { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; }
.family span { border-bottom: 1px solid var(--ink); padding: 5px 0; margin-right: 12px; font-size: 12px; }
.usage-example { margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.usage-example span { font: 500 9px "DM Mono"; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.usage-example p { margin: 8px 0 0; font: 500 21px/1.35 "Newsreader"; color: var(--ink); }

.timeline-section { margin-top: 90px; }
.timeline { position: relative; margin-top: 35px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 9px; bottom: 20px; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 26px 160px 1fr; gap: 22px; padding-bottom: 34px; position: relative; }
.timeline-dot { width: 17px; height: 17px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); z-index: 1; }
.timeline-period { font: 500 11px "DM Mono"; color: var(--muted); padding-top: 2px; }
.timeline-copy strong { font: 600 22px "Newsreader"; }
.timeline-copy p { margin: 6px 0 0; color: #535b55; line-height: 1.55; }
.caveat { display: flex; gap: 20px; margin: 50px 0; padding: 25px; border: 1px solid rgba(228,87,46,.45); background: rgba(228,87,46,.06); }
.caveat > span { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--accent); color: white; border-radius: 50%; font-weight: 800; }
.caveat p { margin: 7px 0 0; line-height: 1.55; color: #565d58; }
.research-rating { margin-top: 75px; padding: 34px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.rating-copy h3 { margin: 10px 0 8px; font: 600 clamp(27px, 3vw, 39px)/1.08 "Newsreader"; }
.rating-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.sources { margin-top: 70px; padding-top: 35px; border-top: 1px solid var(--line); }
.sources-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sources h3 { font: 600 34px "Newsreader"; margin: 10px 0 0; }
.sources-head > span { font: 400 10px "DM Mono"; color: var(--muted); }
.source-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 15px; padding: 19px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.source-row:hover strong { color: var(--accent); }
.source-row > span:first-child { font: 400 10px "DM Mono"; color: var(--muted); }
.source-row strong { display: block; font-size: 14px; }
.source-row small { color: var(--muted); }
.source-row b { font-size: 18px; }

.principle { margin: 0 -20px; padding: 110px calc(6% + 20px); background: var(--ink); color: white; }
.principle h2 { max-width: 1050px; font: 600 clamp(48px, 6vw, 86px)/.95 "Newsreader"; letter-spacing: -.045em; margin: 25px 0 0; }
.principle h2 em { color: var(--accent); font-weight: 500; }
.principle-quote { max-width: 760px; margin: 70px 0 0 auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); font: 500 clamp(22px, 3vw, 36px)/1.25 "Newsreader"; color: #cad0ca; }

footer { min-height: 120px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
footer span { font-weight: 800; color: var(--ink); }
.footer-links { gap: 17px; font-size: 11px; }
.footer-links a { color: var(--muted); border-bottom: 1px solid var(--line); }
.footer-links a:hover { color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: white; padding: 14px 20px; z-index: 30; box-shadow: var(--shadow); font-size: 13px; }

body.dark { --ink: #eeeadd; --paper: #111512; --paper-deep: #1b211d; --muted: #9ca39d; --line: rgba(238,234,221,.16); --card: rgba(255,255,255,.035); --shadow: 0 30px 80px rgba(0,0,0,.3); }
body.dark .search-control { background: #202721; }
body.dark .search-control input { color: var(--ink); }
body.dark .story-card p, body.dark .timeline-copy p, body.dark .caveat p { color: #b6bdb7; }
body.dark .timeline-dot { background: var(--paper); }
body.dark .principle { background: #e5e1d5; color: #17201c; }
body.dark .principle-quote { color: #4e5650; border-color: rgba(23,32,28,.18); }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 24px, 1320px); }
  .topbar { height: 72px; }
  .beta-badge { margin-left: 8px; padding: 4px 7px; font-size: 8px; }
  nav a { display: none; }
  .hero { padding: 75px 3% 50px; min-height: auto; }
  .hero h1 { font-size: 64px; }
  .hero::after { display: none; }
  .search-control { grid-template-columns: 42px 1fr; }
  .search-control button { grid-column: 1 / -1; justify-content: space-between; }
  .loading-panel, .research-error { margin: 0 3% 60px; padding: 28px 24px 30px; }
  .research-file-head { display: block; }
  .research-case { display: inline-block; margin-top: 17px; white-space: normal; }
  .research-steps li { grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 9px; padding-right: 6px; padding-left: 6px; }
  .extended-review-note { padding: 16px; }
  .research-error button { width: 100%; min-width: 0; }
  .result { padding: 60px 3% 80px; }
  .result-head, .sources-head { display: block; }
  .result h2 {
    font-size: clamp(44px, 14vw, 64px);
    line-height: .86;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .research-rating { display: block; margin-top: 60px; }
  .like-button { width: min(100%, 300px); margin-top: 28px; }
  .story-grid { grid-template-columns: 1fr; }
  .word-profile { padding: 28px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid article { min-height: 0; }
  .translation-card { grid-template-columns: 1fr; gap: 11px; }
  .etymology-family { padding: 28px; }
  .etymology-family-grid { grid-template-columns: 1fr; }
  .family-relation-head { grid-template-columns: 1fr; gap: 8px; }
  .shared-root { grid-template-columns: 1fr; }
  .shared-root span { grid-row: auto; }
  .story-card { padding: 30px; min-height: 320px; }
  .timeline-item { grid-template-columns: 24px 1fr; gap: 15px; }
  .timeline-period { grid-column: 2; }
  .timeline-copy { grid-column: 2; }
  .source-row { grid-template-columns: 28px 1fr; }
  .source-row b { display: none; }
  .principle { margin-right: -12px; margin-left: -12px; padding-right: calc(3% + 12px); padding-left: calc(3% + 12px); }
  footer { display: flex; align-items: flex-start; flex-direction: column; gap: 15px; padding: 35px 0; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 12px 17px; }
}

@media (max-width: 380px) {
  .page-shell { width: min(100% - 16px, 1320px); }
  .brand { font-size: 16px; }
  .brand-mark { width: 27px; height: 27px; }
  .beta-badge { display: none; }
  nav { gap: 8px; }
  .hero { padding-right: 1%; padding-left: 1%; }
  .hero h1 { font-size: 53px; overflow-wrap: anywhere; }
  .search-control { padding: 5px; }
  .search-control input { padding-right: 4px; padding-left: 4px; font-size: 20px; }
  .loading-panel, .research-error { margin-right: 1%; margin-left: 1%; padding-right: 17px; padding-left: 19px; }
  .research-steps small { font-size: 9px; }
  .extended-review-note { grid-template-columns: 1fr; }
  .word-profile, .etymology-family { padding-right: 20px; padding-left: 20px; }
  .story-card { padding-right: 23px; padding-left: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
