:root {
  color-scheme: light;
  --ink: #071b2a;
  --paper: #f8f2df;
  --sheet: #fffaf0;
  --muted: #465850;
  --rule: #a5a89a;
  --gold: #f0c566;
  --cyan: #7ed5dd;
  --accent: #94502f;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }
.wrap { width: min(74rem, calc(100% - clamp(2rem, 8vw, 7rem))); margin-inline: auto; }
section { scroll-margin-top: 1rem; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #007584; outline-offset: 4px; }
.topbar :focus-visible, footer :focus-visible { outline-color: var(--cyan); }
.skip { position: absolute; left: .7rem; top: -9rem; z-index: 5; padding: .7rem; background: white; }
.skip:focus { top: .5rem; }
.topbar, footer { background: var(--ink); color: var(--paper); }
.header-inner, .foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; }
.header-inner { min-height: 4.2rem; padding-block: .45rem; }
.brand { display: flex; align-items: center; gap: .6rem; font: bold 1.35rem var(--serif); text-decoration: none; }
nav { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 2rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; font-weight: 650; text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav .nav-account { color: var(--gold); }
.edition, .kicker, figcaption strong, .stamp { font: bold .67rem/1.45 ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.edition { margin-top: 1.4rem; padding-bottom: .65rem; display: flex; align-items: center; gap: 1rem; border-bottom: 3px double var(--ink); }
.edition-rule { flex: 1; }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: clamp(2rem, 4vw, 4.3rem) 0; }
.kicker { color: var(--muted); margin: 0 0 .8rem; }
.sun { color: var(--accent); font: bold 1.25rem/0 var(--serif); margin-right: .3rem; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.07; }
h1 { font-size: clamp(3.6rem, 6.9vw, 6.6rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.8rem); letter-spacing: -.052em; }
h3 { font-size: 1.45rem; letter-spacing: -.025em; }
.period { color: var(--accent); }
.dek { font: normal clamp(1.15rem, 2vw, 1.45rem)/1.4 var(--serif); margin-top: 1.4rem; max-width: 27rem; }
.hero-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; }
.hero-actions { margin-top: 1.65rem; }
.hero-actions a, .button, button { font-weight: 650; font-size: .89rem; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: .5rem 1.05rem; border: 1px solid var(--ink); border-radius: .25rem; background: var(--ink); color: var(--paper); cursor: pointer; font-family: inherit; text-decoration: none; }
.button:hover, button:hover { background: #21464e; color: white; }
button:disabled { opacity: .64; cursor: wait; }
button.secondary, .light { background: var(--sheet); color: var(--ink); }
button.secondary:hover, .light:hover { background: #f1dfaf; }
.cover { border: 1px solid var(--ink); background: var(--sheet); padding: .4rem; box-shadow: .35rem .35rem 0 #d7ceb3; }
.cover img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); }
figcaption { display: flex; align-items: center; gap: .7rem; padding: .5rem .25rem .1rem; font: italic 1.05rem var(--serif); }
figcaption strong { padding-right: .7rem; border-right: 1px solid var(--rule); font-size: .64rem; }
figcaption i { margin-left: auto; color: var(--accent); }
.section { padding: clamp(2rem, 4vw, 3.5rem) 0; border-top: 2px solid var(--ink); }
.section-head, .comic-title, .toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem 1rem; justify-content: space-between; }
.intro { margin-block: .7rem 1.35rem; color: var(--muted); }
.toolbar { align-items: center; margin: 1.25rem 0; padding-block: .55rem; border-block: 1px solid var(--rule); }
.filter-group, .account-nav { display: flex; flex-wrap: wrap; gap: .2rem .5rem; }
.filter-group button { background: none; color: var(--ink); border-color: transparent; }
.filter-group button:hover { text-decoration: underline; }
.filter-group [aria-pressed="true"] { background: var(--gold); }
.sort { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
input, textarea, select { padding: .65rem .75rem; max-width: 100%; border: 1px solid #8a9488; border-radius: .2rem; background: #fffcf4; color: var(--ink); font: inherit; }
textarea { resize: vertical; min-height: 6rem; }
.sort select { min-height: 44px; padding: .4rem .5rem; }
.quiet, .meta, .hint { color: var(--muted); font-size: .9rem; }
.quiet:not(:empty), .notice, .empty, .auth-note { padding: .85rem 1rem; border-left: 3px solid #a37b36; background: #f3e7c9; margin-block: 1rem; }
.stamp { padding: .34rem .62rem; border: 1px solid var(--ink); white-space: nowrap; letter-spacing: .07em; }
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; margin: 0; list-style: none; counter-reset: panel; }
.panels li { counter-increment: panel; position: relative; font: 1.05rem/1.45 var(--serif); }
.panels li::before { content: counter(panel); position: absolute; left: .52rem; top: .5rem; padding: 0 .32rem; background: var(--ink); color: var(--paper); font: 600 .72rem/1.4 monospace; }
.panels img { width: 100%; height: auto; border: 1px solid var(--ink); display: block; margin-bottom: .6rem; }
.panel, .post, .comment { background: var(--sheet); padding: clamp(1rem, 2.7vw, 1.65rem); border: 1px solid var(--rule); margin-top: 1rem; }
.panel, .post { max-width: 52rem; }
#reading-title { margin-top: .7rem; }
.post p, .comment p, .profile-copy { white-space: pre-wrap; overflow-wrap: anywhere; margin-block: .7rem; }
.author { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; }
.author a { font-weight: 650; }
.avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }
.profile-avatar { width: 6rem; height: 6rem; }
.post-photo { display: block; max-width: 100%; height: auto; max-height: 36rem; object-fit: contain; object-position: left; margin: .8rem 0; }
.actions { margin-top: 1rem; }
.actions > a { display: inline-flex; min-height: 44px; align-items: center; }
.actions button { padding-inline: .7rem; }
.comment { margin-top: .55rem; padding: .7rem 1rem; }
.desk-form { display: grid; gap: .95rem; max-width: 38rem; margin-top: 1rem; }
.desk-form label { display: grid; align-content: start; gap: .3rem; font-size: .92rem; font-weight: 650; }
.desk-form button { justify-self: start; }
.desk-form input, .desk-form textarea { width: 100%; }
.desk-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.account-nav { margin-top: 1rem; gap: .5rem; }
.account-nav [aria-pressed="true"] { background: var(--gold); color: var(--ink); }
#more { margin-top: 1rem; }
.foot { padding-block: 1.5rem; }
.foot strong, .foot span { display: block; }
.foot strong { font: bold 1.2rem var(--serif); }
.foot span { margin-top: .2rem; color: #c3cdc6; font-size: .78rem; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 1.45rem; }
  h1 { font-size: clamp(3.4rem, 12vw, 5.3rem); }
  .panels { grid-template-columns: 1fr; max-width: 29rem; gap: 1.3rem; }
}
@media (max-width: 450px) {
  .brand { font-size: 1.06rem; gap: .3rem; }
  .brand svg { width: 24px; }
  nav a { font-size: .78rem; }
  .header-inner { gap: 0 .7rem; }
  .toolbar { align-items: start; }
  .filter-group button { padding-inline: .55rem; }
}
