:root {
  color-scheme: light;
  --paper: #ffffff; --sheet: var(--paper); --ink: #201b18; --muted: #65594f;
  --rule: #d5cabe; --accent: #ac321c; --accent-hover: #842513; --tint: #f3dfd5;
  --green: #31543c; --green-bg: #e5eee0;
  --display: "Newsreader", Georgia, serif; --sans: "Source Sans 3", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
@font-face { font-family: Newsreader; src: url(newsreader.woff2) format("woff2"); font-weight: 400 750; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(source-sans-3.woff2) format("woff2"); font-weight: 400 750; font-display: swap; }
* { box-sizing: border-box; }
html { min-width: 0; scrollbar-color: #ad9687 var(--paper); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, input[type=file]::file-selector-button { cursor: pointer; }
::selection { background: var(--accent); color: white; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.02; }
h1, h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.032em; text-wrap: balance; }
.wrap { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 12px; z-index: 2; background: var(--sheet); padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--rule); }
.mast-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 75px; }
.brand { display: inline-flex; align-items: center; font: 750 2.25rem/.95 var(--display); letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 9px; border-radius: 3px; background: var(--accent); color: #fff8ee; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-dot, .edition-title h1 span { color: var(--accent); }
.top-links, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.top-links { gap: clamp(8px, 3vw, 30px); }
.top-links a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-size: .88rem; font-weight: 650; text-decoration: none; }
.top-links a[aria-current] { color: var(--accent); }
.top-links .account-link { border: 1px solid var(--rule); padding: 0 12px; border-radius: 4px; }
.edition { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: clamp(29px,5vw,66px) 0 23px; border-bottom: 1px solid var(--ink); }
.edition-title h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .96; }
.edition-title p { margin-top: 7px; color: var(--muted); }
.edition-date { display: grid; text-align: right; color: var(--muted); white-space: nowrap; font-size: .82rem; padding-bottom: 4px; }
.edition-date span { font-size: .69rem; color: var(--accent); font-weight: 750; letter-spacing: .14em; }
.topics { display: flex; flex-wrap: wrap; align-items: stretch; gap: 7px 26px; margin-bottom: 21px; border-bottom: 1px solid var(--rule); }
.topics a { display: inline-flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; text-decoration: none; font-size: .9rem; font-weight: 650; }
.topics a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.lead { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); background: var(--sheet); border: 1px solid var(--rule); }
.lead-art, .story-art { display: block; overflow: hidden; background: #d4a885; }
.lead-art { min-height: 360px; position: relative; }
.lead-art img, .story-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.lead-art img[src^="assets/news/"], .story-art img[src^="assets/news/"] { object-position: center 32%; }
.lead-art img { position: absolute; inset: 0; }
.lead-art:hover img, .story-art:hover img { transform: scale(1.024); }
.lead-copy { display: flex; flex-direction: column; justify-content: center; align-items: start; padding: clamp(20px,3.2vw,48px); }
.metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.category { text-transform: uppercase; color: var(--accent); font-size: .71rem; font-weight: 750; letter-spacing: .13em; }
.lead h2 { font-size: clamp(2.25rem, 4.2vw, 4.2rem); }
.lead .metadata { margin-top: 14px; }
.lead h2 a, .story h3 a { text-decoration: none; }
.lead-copy > p { margin-top: 13px; color: var(--muted); max-width: 48ch; }
.lead-actions { margin-top: 23px; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.live { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--muted); }
.live svg { color: var(--accent); width: 17px; }
.demo { margin-top: 12px; display: block; font-size: .74rem; color: var(--muted); }
.button, .subtle { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; gap: 8px; border: 1px solid transparent; border-radius: 4px; padding: 8px 14px; text-decoration: none; font-size: .88rem; font-weight: 700; line-height: 1.25; }
.button svg { width: 18px; flex: none; }
.button.primary { background: var(--accent); color: #fff8ef; }
.button.primary:hover { background: var(--accent-hover); }
.button.outline { background: transparent; border-color: var(--rule); color: var(--ink); }
.button.outline:hover, .subtle:hover { background: var(--tint); color: var(--accent-hover); }
.button.disabled { opacity: .58; }
.subtle { padding-inline: 8px; color: var(--accent-hover); background: none; text-decoration: underline; }
.subtle:disabled { opacity: .52; cursor: default; background: none; }
.latest { margin: 48px 0 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.section-heading h2 { font-size: clamp(2rem,3.4vw,3rem); }
.section-heading > span { color: var(--muted); font-size: .79rem; text-align: right; }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 27px; margin-top: 18px; }
.story-art { aspect-ratio: 2/1; margin-bottom: 12px; }
.story h3 { margin: 8px 0 6px; font: 650 clamp(1.4rem,2.3vw,2rem)/1.08 var(--display); }
.story p { color: var(--muted); font-size: .89rem; max-width: 46ch; margin-top: 7px; }
.site-footer { border-top: 1px solid var(--rule); margin-top: 65px; color: var(--muted); }
.footer-inner { font-size: .85rem; flex-wrap: wrap; }
.footer-inner .brand { color: var(--ink); font-size: 1.72rem; }
.backline { margin: 22px auto 16px; width: min(100%,900px); }
.backline a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9rem; font-weight: 650; text-decoration: none; }
.backline svg { flex: none; }
.article { width: min(100%,900px); margin: auto; }
.article-title { margin: 13px 0 22px; }
.article-title h1, .reader-head h1, .form-shell h1, .panel-header h1, .empty h1 { font-size: clamp(2.6rem,5.5vw,5rem); }
.article-title .metadata { margin-top: 13px; }
.article-title > p { font-size: clamp(1.1rem,2vw,1.3rem); color: var(--muted); margin-top: 16px; max-width: 64ch; }
.article-cover { width: 100%; aspect-ratio: 2.35; object-fit: cover; }
.news-figure { margin: 0; }
.news-figure .article-cover { aspect-ratio: auto; max-height: 570px; object-fit: contain; background: var(--sheet); }
.news-figure figcaption { color: var(--muted); font-size: .83rem; margin-top: 9px; overflow-wrap: anywhere; }
.article-body { margin: 28px auto 45px; max-width: 67ch; line-height: 1.8; }
.article-body p + p { margin-top: 1em; }
.article-video { margin: 24px 0; }
.article-video iframe { display: block; width: 100%; height: auto; min-height: 200px; aspect-ratio: 16 / 9; border: 0; background: #201b18; }
.article-video figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.article-source { color: var(--muted); font-size: .88rem; }
.chapter-inline { margin-block: clamp(28px, 5vw, 46px); padding-block: 18px; border-block: 1px solid var(--rule); scroll-margin-block-start: 18px; }
.chapter-inline h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.chapter-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; margin-top: 8px; }
.chapter-meta svg { flex: none; color: var(--accent); }
.admin-row h2 { font: 650 1.1rem/1.35 var(--sans); letter-spacing: -.02em; }
.admin-row p { color: var(--muted); font-size: .81rem; margin-top: 4px; }
.state { display: inline-block; justify-self: start; font-size: .76rem; border-radius: 3px; padding: 4px 8px; background: #eae2d8; color: #52463c; font-weight: 650; }
.state.positive { color: var(--green); background: var(--green-bg); }
.reader-head, .reader-tools, .pagination { width: min(100%,900px); margin-inline: auto; }
.reader-head p { display: flex; gap: 7px; align-items: center; margin-top: 10px; color: var(--muted); font-size: .86rem; }
.reader-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 22px 15px; border-bottom: 1px solid var(--rule); }
.reader-tools a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; text-decoration: none; font-size: .9rem; border-bottom: 2px solid transparent; }
.reader-tools a[aria-current] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }
.manga-pages { margin: 0 auto; width: min(100%,840px); background: var(--sheet); }
.manga-pages img { width: 100%; height: auto; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-block: 13px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.pagination .button { padding-inline: clamp(6px, 2vw, 14px); }
.form-shell { width: min(100%,490px); margin: clamp(28px,7vw,80px) auto 0; }
.form-shell > p { color: var(--muted); margin: 10px 0; }
.fields { display: grid; gap: 17px; margin-top: 24px; }
.fields > label, .fields legend { display: grid; gap: 6px; font-size: .91rem; font-weight: 700; }
.fields input:not([type=radio]), .fields select, .fields textarea { width: 100%; min-width: 0; border: 1px solid #a8998d; background: var(--sheet); color: var(--ink); border-radius: 4px; padding: 10px 11px; min-height: 46px; }
.fields textarea { resize: vertical; }
.fields small { color: var(--muted); margin-top: -10px; }
.fields .button { justify-self: start; }
.form-shell .form-alternate { margin: 21px 0 0; }
.form-alternate a { color: var(--accent); font-weight: 650; }
.account-data { display: grid; gap: 4px; margin: 20px 0; }
.account-data dt { font-size: .8rem; font-weight: 700; color: var(--muted); }
.account-data dd { margin: 0 0 7px; overflow-wrap: anywhere; }
.notice { display: flex; gap: 8px; align-items: center; background: var(--tint); border: 1px solid #dbb8aa; border-radius: 4px; color: #6c2617; padding: 12px 15px; margin-top: 15px; font-size: .88rem; }
.notice svg { flex: none; }
.notice.error { border-color: #ad3e2c; }
.empty { margin: 26px auto 0; padding: clamp(20px,4vw,52px); background: var(--sheet); border: 1px solid var(--rule); }
.empty h2 { font-size: clamp(1.8rem,4vw,3.2rem); }
.empty p { color: var(--muted); margin: 8px 0 12px; }
.panel-wrap { max-width: 1080px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 37px 0 20px; }
.panel-header h1 { font-size: clamp(2.5rem,5vw,4rem); }
.panel-nav { margin-bottom: 12px; border-top: 1px solid var(--ink); }
.admin-row { display: grid; grid-template-columns: minmax(0,1fr) 105px minmax(0,auto); align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.admin-row .actions { justify-content: end; }
.editorial-form { max-width: 680px; }
.inline-form { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 5px; }
.radio-group label { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: 4px; padding: 5px 10px; cursor: pointer; }
.radio-group label:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.radio-group input { accent-color: var(--accent); }
input[type=file]::file-selector-button { min-height: 40px; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink); background: var(--paper); margin-right: 8px; }
.file-order { padding-left: 25px; margin: 0; }
.file-order li { padding: 4px; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.file-order button { margin-left: 5px; }
@media (max-width: 760px) {
  .lead { grid-template-columns: 1fr; }
  .lead-art { min-height: 0; aspect-ratio: 1.65; }
  .lead-copy { padding: 20px; }
  .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-row { grid-template-columns: minmax(0,1fr) auto; }
  .admin-row .actions { grid-column: 1/-1; justify-content: start; }
}
@media (max-width: 510px) {
  .mast-inner { min-height: 63px; gap: 7px; }
  .brand { font-size: 1.85rem; }
  .brand-mark { width: 28px; height: 28px; margin-right: 5px; }
  .brand-mark svg { width: 21px; height: 21px; }
  .top-links .account-link { padding-inline: 7px; }
  .top-links .account-link svg { display: none; }
  .edition { flex-wrap: wrap; gap: 9px; padding-bottom: 13px; }
  .edition-title h1 { font-size: clamp(2.6rem,11.8vw,3.75rem); }
  .edition-title p { font-size: .93rem; }
  .edition-date { display: flex; gap: 8px; align-items: baseline; font-size: .73rem; padding: 0; }
  .topics { gap: 0 18px; margin-bottom: 14px; }
  .news-grid { grid-template-columns: 1fr; gap: 21px; }
  .latest { margin-top: 32px; }
  .footer-inner { padding-block: 12px; gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
