:root {
  color-scheme: light;
  --ink: #1a1915;
  --muted: #6c685f;
  --paper: #f5f2e9;
  --card: #fffdf7;
  --line: #d7d1c4;
  --soft: #e9e4d8;
  --accent: #e36a47;
  --accent-soft: #f3d8ca;
  --dark: #171813;
  --green: #557b52;
  --red: #a64032;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

html[data-theme="midnight"] {
  color-scheme: dark;
  --ink: #eef2f7;
  --muted: #a8b1bf;
  --paper: #0d1420;
  --card: #151f2d;
  --line: #303d50;
  --soft: #202d3e;
  --accent-soft: #273c50;
  --dark: #080d14;
}

html[data-theme="minimal"] {
  --ink: #111318;
  --muted: #626871;
  --paper: #ffffff;
  --card: #ffffff;
  --line: #dfe2e6;
  --soft: #f1f3f5;
  --accent-soft: #e7edf7;
  --dark: #171a20;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.site-header { position: sticky; top: 0; z-index: 20; height: 78px; padding: 0 clamp(22px, 5vw, 72px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-weight: 600; letter-spacing: -.025em; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 500 12px Georgia, serif; }
.brand-mark.small { width: 29px; height: 29px; }
.brand-mark.has-image { overflow: hidden; background: transparent; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
html[data-theme="minimal"] .brand-mark { border-radius: 7px; }
html[data-theme="midnight"] .site-header { background: color-mix(in srgb, var(--paper) 90%, transparent); }
html[data-theme="midnight"] .feature-card { box-shadow: 0 24px 70px rgba(0,0,0,.28); }
html[data-theme="minimal"] .now-card { box-shadow: none; border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.site-nav { display: flex; gap: 30px; color: var(--muted); font-size: 13px; }
.site-nav a { position: relative; padding: 29px 0 26px; }
.site-nav a.active, .site-nav a:hover { color: var(--ink); }
.site-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.language-toggle { justify-self: end; min-width: 46px; padding: 8px 10px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-size: 12px; cursor: pointer; }
.mobile-menu { display: none; border: 0; background: none; font-size: 22px; }

#app { min-height: calc(100vh - 220px); }
#app:focus { outline: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, .65fr); gap: clamp(35px, 7vw, 100px); align-items: end; max-width: 1320px; margin: 0 auto; padding: clamp(64px, 9vw, 130px) clamp(22px, 5vw, 72px) clamp(54px, 7vw, 95px); }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.with-dot { display: flex; align-items: center; gap: 10px; }
.eyebrow.with-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.hero h1 { max-width: 850px; margin: 0; font: 400 clamp(45px, 6.3vw, 82px)/1.01 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 690px; margin: 28px 0 0; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 40px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font-size: 12px; font-weight: 600; }
.button:hover { border-color: var(--ink); }
.button.primary { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.button.full { width: 100%; }
.underlink { padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.now-card { padding: 27px; background: var(--card); border-top: 3px solid var(--accent); box-shadow: 0 18px 40px rgba(55,44,29,.08); }
.now-card h2 { margin: 0 0 8px; font: 400 25px Georgia, serif; }
.now-card > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.now-stats { display: grid; gap: 11px; margin-top: 25px; }
.now-stat { display: flex; justify-content: space-between; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12px; }
.now-stat span { color: var(--muted); }

.latest { max-width: 1320px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 72px); }
.feature-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); min-height: 385px; background: var(--dark); color: var(--paper); }
.feature-art { position: relative; min-height: 385px; overflow: hidden; padding: 24px; background: radial-gradient(circle at 29% 37%, #ed7955 0, rgba(237,121,85,.28) 26%, transparent 40%), linear-gradient(135deg, #1a2748, #4b213e 55%, #df6746); }
.feature-art.has-image { background-position: center; background-size: cover; }
.feature-art::before, .feature-art::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.37); border-radius: 50%; transform: rotate(-18deg); }
.feature-art::before { width: 62%; height: 34%; left: 11%; top: 30%; }
.feature-art::after { width: 42%; aspect-ratio: 1; right: -7%; bottom: -19%; }
.feature-number { position: relative; z-index: 2; font-size: 10px; letter-spacing: .14em; }
.feature-word { position: absolute; z-index: 2; left: 24px; bottom: 22px; font: 400 clamp(25px, 3vw, 38px)/1.02 Georgia, serif; letter-spacing: -.03em; }
.play-badge { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 62px; height: 62px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--dark); font-size: 20px; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 58px); }
.feature-copy .eyebrow { color: #a9aa9f; }
.feature-copy h2 { margin: 0; font: 400 clamp(27px, 3vw, 40px)/1.18 Georgia, serif; letter-spacing: -.03em; }
.feature-copy > p { color: #b8b7ae; font-size: 13px; line-height: 1.75; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0 26px; }
.tag { padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; color: inherit; opacity: .72; font-size: 10px; }
.feature-copy .read-link { width: max-content; padding-bottom: 5px; border-bottom: 1px solid #62635d; font-size: 12px; }

.content-section { max-width: 1320px; margin: 0 auto; padding: 75px clamp(22px, 5vw, 72px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 27px; }
.section-heading h1, .section-heading h2 { margin: 0; font: 400 clamp(34px, 4.5vw, 52px)/1.1 Georgia, serif; letter-spacing: -.035em; }
.section-heading > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.post-card { position: relative; min-height: 295px; padding: 26px 28px 20px 0; }
.post-card + .post-card { padding-left: 28px; border-left: 1px solid var(--line); }
.post-card .post-index { position: absolute; top: 22px; right: 25px; color: var(--line); font: 400 36px Georgia, serif; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--accent); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.post-card h3 { max-width: 290px; margin: 50px 0 12px; font: 400 22px/1.3 Georgia, serif; letter-spacing: -.025em; }
.post-card > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.post-card .read-link { position: absolute; left: 0; bottom: 20px; font-size: 11px; }
.post-card + .post-card .read-link { left: 28px; }
.empty-state, .loading-state, .error-state { max-width: 800px; margin: 0 auto; padding: 100px 24px; text-align: center; color: var(--muted); }

.listing-hero { max-width: 1320px; margin: 0 auto; padding: 90px clamp(22px, 5vw, 72px) 30px; }
.listing-hero h1 { margin: 0; font: 400 clamp(48px, 7vw, 84px)/1 Georgia, serif; letter-spacing: -.055em; }
.listing-hero p:last-child { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.folder-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.folder-nav a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.folder-nav a:hover, .folder-nav a.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.listing .post-grid { grid-template-columns: repeat(2, 1fr); }
.listing .post-card { min-height: 250px; border-bottom: 1px solid var(--line); }
.listing .post-card:nth-child(odd) { border-left: 0; padding-left: 0; }
.listing .post-card:nth-child(odd) .read-link { left: 0; }

.article-shell { max-width: 1280px; margin: 0 auto; padding: 80px clamp(22px, 5vw, 72px) 100px; }
.article-head { max-width: 980px; margin: 0 auto 48px; text-align: center; }
.article-head h1 { margin: 18px 0; font: 400 clamp(40px, 6vw, 68px)/1.08 Georgia, serif; letter-spacing: -.05em; }
.article-head .article-excerpt { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.75; }
.article-cover { width: 100%; max-height: 580px; object-fit: cover; margin: 0 0 54px; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; margin-bottom: 54px; background: var(--dark); }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.article-page { max-width: 920px; margin: 0 auto; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.9; letter-spacing: .005em; }
.article-page h1, .article-page h2, .article-page h3 { margin: 1.7em 0 .6em; line-height: 1.25; font-weight: 400; letter-spacing: -.025em; }
.article-page h1 { font-size: 38px; }
.article-page h2 { font-size: 29px; }
.article-page h3 { font-size: 22px; }
.article-page p { margin: 1.1em 0; }
.article-page blockquote { margin: 1.8em 0; padding: 12px 0 12px 25px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.article-page ul, .article-page ol { padding-left: 1.3em; }
.article-page code { padding: 2px 5px; background: var(--soft); border-radius: 3px; font-family: ui-monospace, monospace; font-size: .85em; }
.article-page pre { overflow-x: auto; padding: 18px; background: var(--dark); color: #f4f0e5; }
.article-page pre code { padding: 0; background: transparent; }
.article-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-page img { display: block; width: auto; max-width: 100%; max-height: 760px; margin: 2em auto; border-radius: 3px; object-fit: contain; }
.article-end { max-width: 720px; margin: 55px auto 0; padding-top: 25px; border-top: 1px solid var(--line); }
.about-page { max-width: 1050px; margin: 0 auto; padding: 95px clamp(22px, 5vw, 72px); }
.about-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; align-items: start; }
.about-page h1 { margin: 0; font: 400 clamp(48px, 7vw, 80px)/1 Georgia, serif; letter-spacing: -.05em; }
.about-copy { font: 400 20px/1.8 Georgia, serif; }
.about-copy p:first-child { font-size: 26px; line-height: 1.55; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin: 0 clamp(22px, 5vw, 72px); padding: 35px 0 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer > div { display: flex; align-items: center; gap: 12px; }
.footer-links { gap: 20px !important; }

/* Admin */
.admin-body { min-height: 100vh; background: #f4f2ec; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 20% 20%, #efd5c5 0, transparent 30%), #f4f2ec; }
.login-card { width: min(440px, 100%); display: grid; gap: 35px; padding: 42px; background: #fffdf8; box-shadow: 0 24px 70px rgba(35,29,20,.12); }
.login-card h1 { margin: 0; font: 400 42px Georgia, serif; }
.login-card p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.login-card label, .editor-panel label, .editor-settings label, .settings-panel label { display: grid; gap: 8px; color: #58564f; font-size: 12px; font-weight: 600; }
input, textarea, select { width: 100%; border: 1px solid #d8d4ca; border-radius: 4px; background: #fff; color: #191915; outline: none; }
input, select { min-height: 43px; padding: 9px 12px; }
textarea { padding: 12px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.form-error { min-height: 18px; margin: -20px 0; color: var(--red) !important; font-size: 12px; }
.admin-app { min-height: 100vh; display: grid; grid-template-columns: 235px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px; background: var(--dark); color: #efede5; }
.brand.inverse .brand-mark { background: #efede5; color: var(--dark); }
.admin-sidebar nav { display: grid; gap: 5px; margin-top: 55px; }
.sidebar-link { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; border: 0; border-radius: 5px; background: transparent; color: #a9a99f; text-align: left; cursor: pointer; font-size: 12px; }
.sidebar-link:hover, .sidebar-link.active { background: #2a2b25; color: #fff; }
.sidebar-link.active { box-shadow: inset 2px 0 var(--accent); }
.sidebar-bottom { display: grid; gap: 12px; margin-top: auto; padding: 18px 13px 3px; border-top: 1px solid #34352f; color: #a9a99f; font-size: 11px; }
.sidebar-bottom button { width: max-content; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.admin-main { min-width: 0; }
.admin-topbar { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 25px 42px; border-bottom: 1px solid #d8d4ca; background: #faf8f2; }
.admin-topbar .eyebrow { margin-bottom: 6px; }
.admin-topbar h1 { margin: 0; font: 400 29px Georgia, serif; }
.posts-panel { padding: 32px 42px 70px; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; color: var(--muted); font-size: 11px; }
.list-toolbar input { width: min(340px, 100%); background: #fff; }
.post-list { border-top: 1px solid #d8d4ca; }
.admin-post-row { display: grid; grid-template-columns: 90px minmax(250px, 1fr) 115px 105px 120px; align-items: center; gap: 18px; padding: 17px 12px; border-bottom: 1px solid #d8d4ca; cursor: pointer; }
.admin-post-row.has-delete { grid-template-columns: 90px minmax(250px, 1fr) 115px 105px 120px 46px; }
.admin-post-row:hover { background: #fffdf8; }
.admin-post-row .type-badge, .status-badge { width: max-content; padding: 5px 8px; border-radius: 999px; background: #e8e4da; color: #5f5b52; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.admin-post-row h3 { margin: 0 0 5px; font-size: 14px; font-weight: 600; }
.admin-post-row .slug { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.admin-post-row time, .admin-post-row .row-language { color: var(--muted); font-size: 11px; }
.published-delete { justify-self: end; }
.status-badge.published { background: #dcebd8; color: #41613d; }
.status-badge.draft { background: #f0e2c8; color: #7a5a28; }
.status-badge.archived { background: #e5e4e1; color: #686762; }
.editor-panel { padding: 0 42px 70px; }
.editor-topline { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.text-button { padding: 5px 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.text-button:hover { color: var(--ink); }
.text-button.danger { color: var(--red); }
.editor-actions { display: flex; align-items: center; gap: 9px; }
.save-state { margin-right: 7px; color: var(--muted); font-size: 11px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
.editor-content, .editor-settings { background: #fffdf8; border: 1px solid #d8d4ca; }
.single-editor .language-fields { padding-top: 22px; }
.source-language-bar { display: flex; align-items: center; gap: 12px; padding: 16px 27px; border-bottom: 1px solid #d8d4ca; color: var(--muted); font-size: 12px; }
.source-language-bar select { width: auto; min-width: 120px; }
.source-language-bar small { margin-left: auto; color: var(--accent); }
.language-tabs { display: flex; gap: 3px; padding: 14px 20px 0; border-bottom: 1px solid #d8d4ca; }
.language-tabs button { padding: 11px 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.language-tabs button.active { border-color: var(--accent); color: var(--ink); }
.language-fields { display: grid; gap: 22px; padding: 27px; }
.title-field input { min-height: 54px; font: 400 24px Georgia, serif; }
.body-field { display: grid; gap: 8px; }
.body-editor { min-height: 520px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; font-size: 16px; line-height: 1.8; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border: 1px solid #d8d4ca; border-bottom: 0; border-radius: 4px 4px 0 0; background: #f7f5ef; }
.editor-toolbar + .body-editor { border-radius: 0 0 4px 4px; }
.editor-toolbar button, .toolbar-upload { min-width: 36px; min-height: 36px; display: inline-flex !important; align-items: center; justify-content: center; margin: 0; padding: 7px 10px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #47443d !important; cursor: pointer; font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.editor-toolbar button:hover, .toolbar-upload:hover { border-color: #d8d4ca; background: #fff; color: var(--ink) !important; }
.toolbar-upload { position: relative; }
.toolbar-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.editor-upload-state { min-height: 16px; color: var(--muted); font-size: 11px; }
.slug-builder { display: grid; gap: 10px; padding: 14px; border: 1px solid #dedad0; background: #faf8f2; }
.slug-builder small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.slug-generate { width: 100%; }
.editor-settings { position: sticky; top: 20px; display: grid; gap: 18px; padding: 23px; }
.editor-settings h2 { margin: 0 0 2px; font: 400 21px Georgia, serif; }
.status-block { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid #d8d4ca; border-bottom: 1px solid #d8d4ca; color: var(--muted); font-size: 11px; }
.status-block strong { color: var(--ink); }
.preview-dialog { width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--paper); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.preview-dialog::backdrop { background: rgba(20,20,17,.7); }
.preview-dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 20px; background: #fffdf8; border-bottom: 1px solid var(--line); }
.preview-dialog-bar > div { display: flex; align-items: center; gap: 15px; }
.preview-lang.active { color: var(--accent); }
.preview-article { padding: 55px 25px 80px; }
.settings-panel { padding: 28px 42px 80px; }
.settings-toolbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: -28px -42px 28px; padding: 15px 42px; border-bottom: 1px solid #d8d4ca; background: rgba(250,248,242,.96); backdrop-filter: blur(12px); }
.settings-toolbar > p { margin: 0; color: var(--muted); font-size: 12px; }
.settings-toolbar > div { display: flex; align-items: center; gap: 12px; }
.settings-card { margin-bottom: 24px; padding: 28px; border: 1px solid #d8d4ca; background: #fffdf8; }
.settings-card-heading { margin-bottom: 24px; }
.settings-card-heading .eyebrow { margin-bottom: 6px; }
.settings-card-heading h2 { margin: 0; font: 400 24px Georgia, serif; }
.settings-grid { display: grid; gap: 20px; }
.settings-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-language-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.settings-language-grid fieldset { min-width: 0; display: grid; align-content: start; gap: 18px; margin: 0; padding: 22px; border: 1px solid #dedad0; }
.settings-language-grid legend { padding: 0 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.settings-body { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.field-help { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.color-input { min-height: 43px; padding: 4px; cursor: pointer; }
.upload-field { display: grid; gap: 10px; padding: 14px; border: 1px dashed #c9c4b9; background: #faf8f2; }
.field-or { color: var(--muted); text-align: center; font-size: 10px; text-transform: uppercase; }
.upload-button { position: relative; display: block !important; padding: 11px 12px; border: 1px solid #d8d4ca; border-radius: 4px; background: #fff; color: var(--ink) !important; text-align: center; cursor: pointer; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-preview { display: grid; gap: 8px; }
.upload-preview img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 3px; }
.upload-field small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.folder-create-row { display: grid; grid-template-columns: 150px 150px minmax(160px, 1fr) minmax(160px, 1fr) auto; gap: 10px; }
.folder-list { margin-top: 22px; border-top: 1px solid #dedad0; }
.folder-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 15px 4px; border-bottom: 1px solid #dedad0; }
.folder-row div { display: grid; gap: 4px; }
.folder-row small { color: var(--muted); font-size: 11px; }
.settings-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 6px; }
.account-card { max-width: 620px; }
.empty-state.compact { padding: 35px 10px; }
.analytics-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.analytics-toolbar p { margin: 0; color: var(--muted); font-size: 12px; }
.analytics-toolbar > div { display: flex; align-items: center; gap: 10px; }
.analytics-toolbar select { width: auto; min-width: 135px; }
.analytics-state { display: block; min-height: 20px; margin: 0 0 12px; }
.analytics-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.analytics-summary article { display: grid; gap: 12px; padding: 22px; border: 1px solid #d8d4ca; background: #fffdf8; }
.analytics-summary span { color: var(--muted); font-size: 11px; }
.analytics-summary strong { font: 400 32px Georgia, serif; }
.analytics-grid { display: grid; grid-template-columns: 1.15fr 1fr 0.75fr; gap: 18px; }
.analytics-grid .settings-card { min-width: 0; }
.analytics-table-wrap { overflow-x: auto; }
.analytics-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.analytics-table th, .analytics-table td { padding: 11px 8px; border-bottom: 1px solid #e2ded4; text-align: left; white-space: nowrap; }
.analytics-table th { color: var(--muted); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.analytics-table td:first-child { max-width: 330px; overflow: hidden; text-overflow: ellipsis; }
.analytics-empty { color: var(--muted); text-align: center !important; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .mobile-menu { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 77px; display: none; flex-direction: column; gap: 0; padding: 10px 22px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; }
  .site-nav a.active::after { display: none; }
  .hero { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-copy { min-height: 330px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card + .post-card, .listing .post-card { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .post-card + .post-card .read-link { left: 0; }
  .listing .post-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .admin-app { grid-template-columns: 72px minmax(0, 1fr); }
  .admin-sidebar { padding: 22px 10px; }
  .admin-sidebar .brand > span:last-child, .sidebar-link:not(.active) { font-size: 0; }
  .sidebar-link { justify-content: center; }
  .sidebar-link span { font-size: 15px; }
  .sidebar-bottom { padding: 15px 0; text-align: center; }
  .admin-topbar, .posts-panel, .settings-panel { padding-left: 24px; padding-right: 24px; }
  .settings-toolbar { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
  .settings-language-grid { grid-template-columns: 1fr; }
  .editor-panel { padding-left: 24px; padding-right: 24px; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-settings { position: static; }
  .admin-post-row { grid-template-columns: 75px 1fr 90px; }
  .admin-post-row.has-delete { grid-template-columns: 75px 1fr 90px 46px; }
  .admin-post-row time, .admin-post-row .row-language { display: none; }
  .analytics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
  .folder-create-row { grid-template-columns: 1fr 1fr; }
  .folder-create-row .button { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .site-header { height: 68px; padding: 0 18px; gap: 12px; }
  .site-nav { top: 67px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { padding-top: 58px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .now-card { padding: 22px; }
  .feature-art { min-height: 300px; }
  .feature-copy { min-height: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .post-card { min-height: 270px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .admin-app { display: block; }
  .admin-sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; }
  .admin-sidebar nav { display: flex; gap: 4px; margin: 0; }
  .admin-sidebar [data-filter] { display: none; }
  .admin-sidebar .sidebar-link { width: auto; padding: 8px; font-size: 0; }
  .admin-sidebar .sidebar-link span { font-size: 15px; }
  .admin-sidebar .brand > span:last-child { display: none; }
  .sidebar-bottom { display: flex; margin: 0 0 0 auto; padding: 0; border: 0; }
  .admin-topbar { min-height: 90px; padding: 18px; }
  .admin-topbar h1 { font-size: 23px; }
  .posts-panel, .editor-panel, .settings-panel { padding-left: 16px; padding-right: 16px; }
  .settings-toolbar { align-items: flex-start; flex-direction: column; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .settings-toolbar > div { width: 100%; justify-content: space-between; }
  .settings-grid.two { grid-template-columns: 1fr; }
  .settings-card { padding: 20px 16px; }
  .admin-post-row { grid-template-columns: 65px 1fr; padding: 15px 5px; }
  .admin-post-row.has-delete { grid-template-columns: 65px 1fr 42px; }
  .admin-post-row .status-badge { display: none; }
  .analytics-toolbar { align-items: flex-start; flex-direction: column; }
  .analytics-summary { grid-template-columns: 1fr 1fr; }
  .analytics-summary article { padding: 17px; }
  .recent-visits { min-width: 720px; }
  .editor-topline { align-items: flex-start; flex-direction: column; padding: 15px 0; }
  .editor-actions { width: 100%; flex-wrap: wrap; }
  .editor-actions .button { flex: 1; }
  .save-state { width: 100%; }
  .language-fields { padding: 20px 16px; }
  .source-language-bar { align-items: flex-start; flex-direction: column; padding: 14px 16px; }
  .source-language-bar small { margin-left: 0; }
  .folder-create-row { grid-template-columns: 1fr; }
  .folder-create-row .button { grid-column: auto; }
  .folder-row { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; }
  .preview-dialog-bar { align-items: flex-start; flex-direction: column; }
}
