:root {
  --bg: #090b0a;
  --surface: #111512;
  --text: #e6ece5;
  --muted: #78837b;
  --faint: #343c36;
  --line: #242b26;
  --accent: #39C5BB;
  --sans: 'Manrope', 'Noto Sans SC', sans-serif;
  --display: 'Space Grotesk', 'Manrope', 'Noto Sans SC', sans-serif;
  --mono: 'DM Mono', monospace;
}

:root[data-theme="light"] {
  --bg: #f4f7f3;
  --surface: #ffffff;
  --text: #17201a;
  --muted: #617067;
  --faint: #aab8ae;
  --line: #d9e2db;
  --accent: #087f76;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--bg); background-image: url('/assets/background.jpg'); background-position: center; background-size: cover; background-attachment: fixed; color: var(--text); font-family: var(--sans); }
:root[data-theme="light"] body { background-image: linear-gradient(rgba(244,247,243,.92), rgba(244,247,243,.92)), url('/assets/background.jpg'); }
:root[data-theme="light"] .site-header,
:root[data-theme="light"] .content-layout,
:root[data-theme="light"] .site-footer,
:root[data-theme="light"] .article-page .article-detail { background: rgba(255, 255, 255, .78); }
:root[data-theme="light"] .calendar-panel { background: rgba(255, 255, 255, .72); }
:root[data-theme="light"] .brand-mark { background-color: rgba(255, 255, 255, .8); }
:root[data-theme="light"] .login-shell { background: rgba(255, 255, 255, .9); }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .025; 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }

.landing { min-height: 100vh; min-height: 100svh; position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.landing-center { text-align: center; padding: 25px; }
.landing-kicker { margin: 0 0 24px; color: var(--muted); font: 500 9px var(--mono); letter-spacing: .16em; }
.landing h1 { margin: 0; color: var(--accent); font: 500 clamp(50px, 9vw, 92px)/.98 var(--display); letter-spacing: 0; }
.landing h1 .landing-word { color: var(--text); font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: 0; }
.landing h1 span:not(.landing-word) { color: var(--accent); font-family: var(--display); font-weight: 500; }
.landing-signature { margin: 28px 0 0; color: var(--muted); font-size: 15px; letter-spacing: .03em; }
.landing-scroll { position: absolute; left: 50%; bottom: 31px; display: flex; flex-direction: column; align-items: center; gap: 11px; transform: translateX(-50%); color: var(--muted); }
.landing-scroll span { width: 1px; height: 34px; background: var(--faint); position: relative; overflow: hidden; }
.landing-scroll span::after { content: ''; position: absolute; top: -100%; left: 0; width: 1px; height: 60%; background: var(--accent); animation: scroll-line 2.4s ease-in-out infinite; }
.landing-scroll small { font: 500 8px var(--mono); letter-spacing: .13em; white-space: nowrap; }
@keyframes scroll-line { 0% { top: -65%; } 60%, 100% { top: 110%; } }

.page-shell { width: min(1120px, calc(100% - 72px)); margin: 0 auto; }
.site-header { height: 108px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(9, 11, 10, .78); }
.brand { display: flex; align-items: center; gap: 14px; font: 600 19px var(--display); letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--faint); border-radius: 7px; color: var(--accent); background: rgba(8, 11, 10, .72) url('/assets/favicon.svg?v=1') center / 30px 30px no-repeat; font: 500 12px var(--mono); letter-spacing: 0; }
.header-tools { display: flex; align-items: center; gap: 24px; }
.header-year { color: var(--muted); font: 500 14px var(--mono); letter-spacing: 0; }
.words-link { color: var(--accent); font: 500 12px var(--mono); }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 9px; border: 1px solid var(--faint); border-radius: 999px; color: var(--muted); background: transparent; font: 500 11px var(--mono); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.theme-toggle:hover, .theme-toggle:focus-visible { color: var(--accent); border-color: var(--accent); outline: 0; }
body > .theme-toggle { position: fixed; z-index: 30; top: 20px; right: 24px; }
.auth-nav { display: inline-flex; align-items: center; gap: 16px; color: var(--muted); font: 500 14px var(--mono); }
.auth-nav a, .auth-nav button { color: inherit; border: 0; padding: 0; background: transparent; font: inherit; cursor: pointer; }
.auth-nav a:hover, .auth-nav button:hover { color: var(--accent); }
.user-greeting { color: var(--text); }
.inline-form { display: inline; margin: 0; }

.intro { padding: 88px 0 105px; max-width: 730px; }
.eyebrow, .section-label, .article-meta, .article-duration, .site-footer, .about-facts { font-family: var(--mono); }
.eyebrow { margin: 0 0 25px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.eyebrow::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(57, 197, 187, .1); }
.intro-line { margin: 0; color: var(--text); font-size: clamp(24px, 4vw, 38px); font-weight: 500; line-height: 1.25; letter-spacing: 0; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; padding: 36px 30px 0; background: rgba(9, 11, 10, .78); }
.articles { min-width: 0; padding-bottom: 145px; }
.section-label { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; letter-spacing: 0; text-transform: uppercase; }
.section-label span:first-child { color: var(--text); }
.article-list { border-bottom: 1px solid var(--line); }
.article-entry { position: relative; padding: 30px 0 34px; border-bottom: 1px solid var(--line); transition: padding-left .25s ease, background .25s ease; }
.article-entry:last-child { border-bottom: 0; }
.article-entry:hover { padding-left: 15px; background: linear-gradient(90deg, rgba(57, 197, 187, .035), transparent 65%); }
.article-entry-featured { padding-top: 42px; padding-bottom: 47px; }
.article-meta { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.article-number { color: var(--accent); }
.article-meta time { margin-left: auto; }
.article-entry h2 { max-width: 650px; margin: 18px 0 10px; color: var(--text); font-size: clamp(22px, 3vw, 31px); font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.article-entry:not(.article-entry-featured) h2 { font-size: clamp(19px, 2.5vw, 25px); }
.article-entry p { max-width: 560px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.article-duration { position: absolute; right: 0; bottom: 38px; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.article-entry-featured .article-duration { bottom: 48px; }
.article-entry.has-cover { min-height: 235px; margin: 18px 0; padding: 38px 30px 55px; overflow: hidden; border: 1px solid rgba(215, 223, 217, .16); isolation: isolate; }
.article-entry.has-cover:hover { padding-left: 30px; background: transparent; }
.article-entry.has-cover::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(6, 8, 7, .97) 0%, rgba(6, 8, 7, .84) 48%, rgba(6, 8, 7, .42) 100%), linear-gradient(0deg, rgba(6, 8, 7, .72), transparent 60%); pointer-events: none; }
.article-entry.has-cover .article-meta, .article-entry.has-cover h2, .article-entry.has-cover > p { position: relative; z-index: 2; }
.article-entry.has-cover .article-duration { z-index: 2; }
.article-entry.has-cover > p { color: #b8c3ba; }
:root[data-theme="light"] .article-entry.has-cover::before { background: linear-gradient(90deg, rgba(20,30,24,.86), rgba(20,30,24,.5)), linear-gradient(0deg, rgba(20,30,24,.5), transparent 60%); }
.article-cover { position: absolute; z-index: 0; inset: 0; display: block; overflow: hidden; }
.article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: transform .5s ease; }
.article-entry:hover .article-cover img { transform: scale(1.025); }

.calendar-panel { position: sticky; top: 28px; margin-top: 0; padding: 22px 20px 25px; border: 1px solid rgba(215, 223, 217, .12); background: rgba(9, 11, 10, .55); }
.calendar-head { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; margin-bottom: 24px; }
.calendar-head strong { color: var(--text); font: 500 17px var(--mono); letter-spacing: 0; text-align: center; }
.calendar-nav { display: grid; place-items: center; width: 30px; height: 30px; color: var(--muted); font: 500 15px var(--mono); }
.calendar-nav:hover { color: var(--accent); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 3px; }
.calendar-weekday, .calendar-day { display: grid; place-items: center; aspect-ratio: 1; font: 500 11px var(--mono); }
.calendar-weekday { color: var(--faint); }
.calendar-day { position: relative; color: var(--muted); border: 1px solid transparent; border-radius: 50%; transition: color .2s, border-color .2s, background .2s; }
.calendar-day:hover { border-color: var(--faint); color: var(--text); }
.calendar-day.is-today { border: 1px solid var(--accent); border-radius: 50%; color: var(--text); }
.calendar-day.is-selected { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.calendar-day.has-post::after { content: ''; position: absolute; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.calendar-day.has-todo::before { content: ''; position: absolute; top: 2px; width: 3px; height: 3px; border-radius: 50%; background: var(--text); }
.calendar-day.is-selected.has-post::after, .calendar-day.is-selected.has-todo::before { background: var(--bg); }
.calendar-day.is-empty { visibility: hidden; }
.calendar-note { margin: 18px 0 0; color: var(--muted); font: 500 11px var(--mono); letter-spacing: 0; text-align: center; }

.todo-panel { margin-top: 25px; padding-top: 19px; border-top: 1px solid var(--line); }
.todo-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 17px; color: var(--text); font: 500 14px var(--mono); letter-spacing: 0; }
.todo-heading small { color: var(--accent); font: 500 11px var(--mono); letter-spacing: 0; }
.todo-form { display: grid; gap: 8px; }
.todo-form input { width: 100%; min-width: 0; border: 1px solid var(--line); background: rgba(9, 11, 10, .5); color: var(--text); padding: 12px; outline: 0; font: 14px var(--sans); }
.todo-form input:focus { border-color: var(--accent); }
.todo-form input[type="date"] { color-scheme: dark; font: 12px var(--mono); }
.todo-form button { border: 1px solid var(--accent); padding: 11px 10px; background: transparent; color: var(--accent); font: 500 12px var(--mono); cursor: pointer; }
.todo-form button:hover { background: var(--accent); color: var(--bg); }
.todo-section { margin-top: 22px; }
.todo-section-label { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 11px var(--mono); letter-spacing: 0; }
.todo-section-label span, .todo-history summary span { color: var(--accent); }
.todo-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.todo-item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; align-items: start; padding: 10px 0; border-bottom: 1px solid rgba(36, 43, 38, .75); }
.todo-item .todo-title { grid-column: 2; color: var(--text); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.todo-item time { grid-column: 2; color: var(--muted); font: 11px var(--mono); }
.todo-check { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid var(--faint); background: transparent; color: var(--accent); font: 12px var(--mono); cursor: pointer; }
.todo-check:hover { border-color: var(--accent); }
.todo-item.is-done .todo-title { color: var(--muted); text-decoration: line-through; }
.todo-actions { grid-column: 2; display: flex; gap: 12px; margin-top: 2px; font: 11px var(--mono); }
.todo-actions a, .todo-actions button { padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.todo-actions a:hover, .todo-actions button:hover { color: var(--accent); }
.todo-empty, .todo-login, .todo-hint, .todo-notice { margin: 12px 0 0; color: var(--muted); font: 11px/1.65 var(--mono); }
.todo-notice { color: var(--accent); }
.todo-flash { transition: opacity .35s ease, transform .35s ease; }
.todo-flash.is-hiding { opacity: 0; transform: translateY(-4px); }
.todo-form button:disabled, .todo-actions button:disabled, .todo-check:disabled { opacity: .45; cursor: wait; }
.todo-login-link { display: inline-block; margin-top: 14px; color: var(--accent); font: 500 12px var(--mono); }
.todo-history { margin-top: 22px; }
.todo-history summary { cursor: pointer; color: var(--muted); font: 500 11px var(--mono); letter-spacing: 0; list-style: none; }
.todo-history summary::-webkit-details-marker { display: none; }
.todo-history summary::before { content: '+'; display: inline-block; width: 16px; color: var(--accent); }
.todo-history[open] summary::before { content: '−'; }
.todo-history .todo-list { margin-top: 7px; }
.todo-hint a { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.about { display: grid; grid-template-columns: 1fr 1.45fr; gap: 13%; padding: 115px 0 135px; border-bottom: 1px solid var(--line); }
.about-content { max-width: 510px; }
.about-content p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.about-facts { display: flex; flex-wrap: wrap; gap: 10px 25px; margin-top: 41px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--text); font-size: 10px; letter-spacing: .02em; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px; color: var(--muted); font-size: 11px; letter-spacing: 0; background: rgba(9, 11, 10, .78); }
.article-back { color: var(--muted); font: 500 10px var(--mono); transition: color .2s; }
.article-back:hover { color: var(--text); }
.reading-progress { position: fixed; z-index: 20; top: 0; left: 0; width: 100%; height: 3px; background: rgba(9, 11, 10, .45); pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.article-page .article-detail { width: 100%; min-width: 0; max-width: 840px; padding: 115px 54px 130px; margin: 0 auto; overflow: hidden; background: rgba(9, 11, 10, .82); }
.article-detail-meta { display: flex; gap: 20px; color: var(--muted); font: 500 12px var(--mono); }
.article-detail-meta span { color: var(--accent); }
.article-detail h1 { margin: 25px 0 20px; color: var(--text); font: 600 clamp(38px, 6vw, 67px)/1.08 var(--display); letter-spacing: 0; overflow-wrap: anywhere; }
.article-lead { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.article-detail-cover { display: block; width: 100%; aspect-ratio: 16 / 8; margin: 48px 0 0; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
.article-detail-cover + .article-content { margin-top: 48px; }
.article-content { margin-top: 65px; color: #b8c3ba; font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 { color: var(--text); line-height: 1.3; letter-spacing: 0; margin: 2em 0 .7em; }
.article-content h1 { font-size: 38px; }.article-content h2 { font-size: 29px; }.article-content h3 { font-size: 23px; }.article-content h4 { font-size: 20px; }.article-content h5 { font-size: 18px; }.article-content h6 { font-size: 16px; color: #a9b7ad; }
.article-content img { display: block; box-sizing: border-box; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }.article-tag { color: var(--accent); font: 11px var(--mono); border: 0; }.article-toc { margin: 36px 0 0; padding: 18px 20px; border: 1px solid var(--line); background: rgba(12,20,16,.72); }.toc-title { color: var(--accent); font: 11px var(--mono); text-transform: uppercase; margin-bottom: 10px; }.article-toc ol { margin: 0; padding-left: 20px; }.article-toc li { margin: 5px 0; }.article-toc a { border: 0; color: var(--muted); }.article-toc .toc-level-1 { font-weight: 600; }.article-toc .toc-level-3, .article-toc .toc-level-4, .article-toc .toc-level-5, .article-toc .toc-level-6 { margin-left: 14px; font-size: .9em; }
.site-search { display: flex; gap: 8px; margin: 24px 0 8px; max-width: 520px; }.site-search input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 11px 13px; font: 13px var(--sans); outline: 0; }.site-search input:focus { border-color: var(--accent); }.site-search button { width: 44px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }.search-label { color: var(--accent); font: 11px var(--mono); min-height: 16px; margin: 0 0 14px; }
.archive-shell { width: min(860px, calc(100% - 60px)); margin: 0 auto; padding: 86px 0 110px; }.archive-shell > h1 { margin: 16px 0 8px; font: 600 clamp(42px, 7vw, 72px) var(--display); letter-spacing: 0; }.archive-lead { margin: 0 0 70px; color: var(--muted); font-size: 16px; }.archive-year { border-top: 1px solid var(--line); padding: 34px 0 12px; }.archive-year > h1 { margin: 0 0 26px; color: var(--accent); font: 500 32px var(--mono); }.archive-month { margin: 0 0 30px 80px; }.archive-month h2 { margin: 0 0 10px; color: var(--muted); font: 500 13px var(--mono); }.archive-month ul { list-style: none; margin: 0; padding: 0; }.archive-entry { display: grid; grid-template-columns: 105px minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }.archive-entry time, .archive-meta { color: var(--muted); font: 11px var(--mono); }.archive-entry > a { color: var(--text); font-size: 17px; }.archive-entry > a:hover { color: var(--accent); }.archive-meta { text-align: right; }.archive-tag { margin-left: 8px; color: var(--accent); }.archive-page .site-footer { margin-top: 0; }
.empty-state { padding: 35px 0; color: var(--muted); font: 11px var(--mono); }
.auth-switch { color: var(--muted) !important; font: 10px var(--mono) !important; }
.auth-switch a { color: var(--accent); }

.words-shell { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 100px; }
.words-nav { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font: 11px var(--mono); }
.words-nav a:hover { color: var(--accent); }
.words-heading { padding: 70px 0 34px; }.words-heading h1 { margin: 14px 0 10px; font: 600 clamp(34px, 6vw, 58px)/1.1 var(--display); }.words-heading p, .words-hint { color: var(--muted); font: 12px/1.7 var(--mono); }
.words-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }.words-stats div { display: grid; gap: 5px; padding: 15px; border: 1px solid var(--line); background: var(--surface); }.words-stats strong { color: var(--accent); font: 500 25px var(--mono); }.words-stats span { color: var(--muted); font: 11px var(--mono); }
.study-card { padding: 25px; border: 1px solid var(--line); background: var(--surface); }.study-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; }.study-toolbar h2, .words-library h2 { margin: 0; font: 500 19px var(--display); }.study-toolbar label { color: var(--muted); font: 11px var(--mono); }.study-toolbar select { margin-left: 7px; padding: 8px; border: 1px solid var(--line); color: var(--text); background: var(--bg); font: inherit; }.study-card > .words-hint { margin: 20px 0; }.study-card #study-progress { color: var(--accent); font: 11px var(--mono); }.study-prompt { min-height: 190px; display: grid; place-content: center; padding: 20px; text-align: center; }.study-word { margin: 0; color: var(--text); font: 600 clamp(42px, 9vw, 78px) var(--display); }.study-phonetic, .solution-phonetic { color: var(--muted); font: 13px var(--mono); }.study-definition { max-width: 600px; margin: 0; color: var(--text); font-size: 20px; line-height: 1.8; }.study-card form { display: flex; gap: 10px; }.study-card form input { flex: 1; min-width: 0; padding: 13px; border: 1px solid var(--line); color: var(--text); background: var(--bg); font: 16px var(--sans); }.study-card form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }.study-solution { padding-top: 22px; border-top: 1px solid var(--line); }.study-solution h3 { margin: 12px 0 3px; font: 600 30px var(--display); }.study-solution p { color: var(--muted); line-height: 1.7; }.rating-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }.rating-buttons button { min-height: 58px; border: 1px solid var(--line); color: var(--text); background: transparent; font: 500 13px var(--mono); cursor: pointer; }.rating-buttons button:hover { border-color: var(--accent); color: var(--accent); }.rating-buttons small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }.words-empty, #study-message, #library-count { color: var(--muted); font: 12px/1.7 var(--mono); }.words-library { margin-top: 80px; }.words-library > p { margin: 10px 0 20px; }.library-word { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }.library-word strong { display: inline-block; min-width: 170px; color: var(--text); font: 600 17px var(--display); }.library-word span { color: var(--muted); font: 11px var(--mono); }.library-word p { flex: 1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }.words-pagination { display: flex; gap: 10px; margin-top: 18px; }

@media (max-width: 700px) {
  .words-shell { width: min(calc(100% - 28px), 560px); padding-top: 16px; }.words-nav { gap: 12px; }.words-nav a:nth-child(2) { margin-left: auto; }.words-heading { padding: 52px 0 25px; }.words-stats { grid-template-columns: repeat(2, 1fr); }.study-card { padding: 16px; }.study-toolbar { align-items: flex-start; flex-direction: column; }.study-toolbar select { min-height: 38px; font-size: 13px; }.study-prompt { min-height: 160px; }.study-card form { flex-direction: column; }.study-card form button { min-height: 44px; }.rating-buttons { grid-template-columns: repeat(2, 1fr); }.rating-buttons button { min-height: 64px; }.library-word { display: block; }.library-word p { margin-top: 8px; }
  .page-shell { width: min(calc(100% - 38px), 540px); }
  .site-header { height: 78px; padding: 0; }
  .header-tools { gap: 13px; }
  .theme-toggle { min-height: 36px; padding: 6px 9px; }
  body > .theme-toggle { top: 12px; right: 12px; }
  .header-year { display: none; }
  .words-link { font-size: 11px; }
  .auth-nav { gap: 10px; font-size: 11px; }
  .auth-nav .user-greeting { display: none; }
  .landing h1 { font-size: 46px; line-height: 1.08; }
  .landing h1 span { display: block; }
  .landing h1 .landing-word { margin-bottom: 8px; }
  .landing-signature { font-size: 14px; }
  .intro { padding: 65px 0 82px; }
  .intro-line { font-size: clamp(23px, 7vw, 32px); }
  .articles { padding-bottom: 98px; }
  .content-layout { grid-template-columns: 1fr; gap: 0; padding: 24px 0 0; }
  .calendar-panel { position: static; width: min(320px, 100%); margin: 0 0 90px; }
  .todo-form { gap: 7px; }
  .article-entry, .article-entry-featured { padding-top: 25px; padding-bottom: 53px; }
  .article-entry:hover { padding-left: 8px; }
  .article-entry:hover .article-cover img { transform: none; }
  .article-meta { gap: 13px; font-size: 11px; }
  .article-duration, .article-entry-featured .article-duration { right: auto; left: 0; bottom: 25px; }
  .article-entry.has-cover, .article-entry-featured.has-cover { min-height: 255px; margin: 14px 0; padding: 28px 22px 55px; }
  .article-entry.has-cover:hover { padding-left: 22px; }
  .article-entry.has-cover::before { background: linear-gradient(90deg, rgba(6, 8, 7, .96), rgba(6, 8, 7, .62)), linear-gradient(0deg, rgba(6, 8, 7, .78), transparent 65%); }
  .about { grid-template-columns: 1fr; gap: 34px; padding: 80px 0 95px; }
  .article-page .article-detail { padding: 78px 20px 90px; }.article-detail h1 { font-size: clamp(38px, 11vw, 62px); }.article-lead { font-size: 16px; }.article-detail-cover { aspect-ratio: 16 / 9; margin-top: 34px; }.article-content { margin-top: 45px; font-size: 16px; }.article-content h1 { font-size: 32px; }.article-content h2 { font-size: 26px; }.article-content h3 { font-size: 21px; }.archive-shell { width: min(calc(100% - 40px), 560px); padding: 62px 0 80px; }.archive-shell > h1 { font-size: 46px; }.archive-lead { margin-bottom: 48px; }.archive-month { margin-left: 0; }.archive-entry { grid-template-columns: 1fr; gap: 5px; }.archive-meta { text-align: left; }
  .site-footer { flex-direction: column; gap: 10px; padding: 28px 0 32px; line-height: 1.5; }
  .site-search { max-width: none; }
  .site-search button { width: 48px; min-height: 42px; }
  .site-search input { min-height: 42px; font-size: 16px; }
  .article-back { white-space: nowrap; }
}

.money-shell { width: min(1050px, calc(100% - 48px)); margin: auto; padding: 30px 0 80px; }
.money-nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 12px 0 24px; border-bottom: 1px solid var(--line); font-size: 13px; }
.money-nav span { margin-left: auto; color: var(--muted); overflow-wrap: anywhere; }
.money-heading { padding: 48px 0 20px; }.money-heading h1 { font-size: clamp(32px, 6vw, 52px); margin: 10px 0; }.money-heading > p:last-child { color: var(--muted); }
.money-filters, .money-form-actions, .money-pagination { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.money-shell label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.money-shell input, .money-shell select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); padding: 10px 12px; background: var(--surface); color: var(--text); font: 16px var(--sans); }
.money-shell :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.money-shell .admin-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.money-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 24px 0 12px; }.money-stats > div { display: grid; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); }.money-stats span { font-size: 13px; color: var(--muted); }.money-stats strong { font: 500 clamp(18px, 3vw, 30px) var(--mono); overflow-wrap: anywhere; }
.money-hint { color: var(--muted); font-size: 12px; line-height: 1.7; }.money-message { color: var(--accent); min-height: 18px; }
.money-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }.money-panel { background: var(--surface); border: 1px solid var(--line); padding: 24px; min-width: 0; }.money-panel h2 { font-size: 19px; margin: 0 0 22px; }.money-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }.money-wide { grid-column: 1/-1; }
.money-category { display: grid; grid-template-columns: 60px minmax(25px,1fr); gap: 8px; margin: 18px 0; font-size: 13px; }.money-category meter { width: 100%; accent-color: var(--accent); }.money-category > span:last-child { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; }
.money-list { margin-top: 24px; }.money-entry { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }.money-entry > div:first-child { min-width: 0; }.money-entry time { display: block; margin: 8px 0; color: var(--muted); font-size: 12px; }.money-entry p { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }.money-entry-actions { flex-shrink: 0; text-align: right; }.money-entry-actions > div { display: flex; align-items: center; justify-content: end; gap: 14px; margin-top: 10px; }.money-entry-actions form { margin: 0; }.money-entry-actions a, .money-entry-actions button { display: inline-flex; align-items: center; min-height: 44px; background: transparent; border: 0; color: var(--muted); font: 13px var(--sans); cursor: pointer; }.money-income { color: var(--accent); }.money-expense { color: var(--text); }.money-pagination { margin-top: 16px; }
@media(max-width:700px) {
  .site-header { height: auto; min-height: 78px; flex-wrap: wrap; gap: 12px; padding: 16px 0; }.header-tools { flex-wrap: wrap; gap: 12px; }
  .money-shell { width: calc(100% - 28px); padding-top: 24px; }.money-nav { padding-top: 28px; gap: 12px; }.money-heading { padding-top: 30px; }.money-layout { grid-template-columns: 1fr; }.money-stats { gap: 6px; }.money-stats > div { padding: 12px 8px; }.money-stats strong { font-size: 16px; }.money-panel { padding: 18px 14px; }.money-filters > label { flex: 1; min-width: 130px; }.money-entry { flex-wrap: wrap; }.money-entry-actions { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
