:root {
  color-scheme: light;
  --paper: #f9f5eb;
  --ink: #1d1b19;
  --muted: #60544a;
  --red: #861d23;
  --red-dark: #67151a;
  --rule: #d7ccbd;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--red-dark); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.shell { width: min(100% - 2.5rem, 66rem); margin-inline: auto; }
.skip { position: absolute; z-index: 1; left: 1rem; top: 1rem; padding: .7rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.top { padding-block: 1.05rem; border-bottom: 1px solid var(--rule); }
.brand { color: #152b29; font-size: 1.1rem; font-weight: 750; text-decoration: none; }
.brand span { color: #146055; }
.masthead { text-align: center; padding: clamp(2.5rem, 7vw, 5rem) 0 1.5rem; border-bottom: double 5px var(--ink); }
h1, h2, h3 { margin: 0; font-family: Georgia, serif; }
h1 { font-size: clamp(3rem, 9.5vw, 7.7rem); line-height: .96; letter-spacing: -.055em; }
.masthead p { margin: 1.2rem 0 0; color: var(--red); font-size: .82rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.archive { padding: clamp(1.7rem, 4vw, 2.7rem) 0 4rem; }
.archive-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.1rem; }
h2 { font-size: clamp(1.6rem, 3.9vw, 2.18rem); }
.archive-heading p { color: var(--muted); margin: 0; font-size: .92rem; }
.issues { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.issue { height: 100%; display: grid; grid-template-columns: minmax(0, 37%) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 2.6vw, 1.6rem); padding: clamp(1rem, 2vw, 1.45rem); background: #fffcf6; border: 1px solid var(--rule); }
.cover { display: block; width: 100%; height: auto; box-shadow: 0 5px 15px #3a241728; }
time { display: block; margin-bottom: .55rem; color: var(--red-dark); font-weight: 700; }
h3 { font-size: clamp(1.55rem, 3vw, 2.38rem); line-height: 1.05; letter-spacing: -.035em; }
.issue-body > p { font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.45; color: var(--muted); margin: .65rem 0 1.05rem; }
.read { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .72rem 1rem; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; }
.read:hover { background: var(--red-dark); }
.versions { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.versions a { display: inline-flex; min-height: 44px; align-items: center; font-size: .93rem; }

.article-edition { width: min(100% - 2.5rem, 44rem); margin: 2rem auto 4rem; font: 1.19rem/1.65 Georgia, serif; }
.article-edition h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin: .8rem 0 1rem; }
.article-edition .back { font: 700 .95rem system-ui, sans-serif; display: inline-block; margin-bottom: 1.5rem; }
.article-edition time { font: 700 .95rem system-ui, sans-serif; }

body.reading { overflow: hidden; }
.reader { width: min(96vw, 72rem); max-width: none; height: min(94vh, 66rem); height: min(94dvh, 66rem); max-height: none; padding: 0; border: 1px solid var(--rule); border-radius: .45rem; color: var(--ink); background: var(--paper); }
.reader[open] { display: flex; flex-direction: column; }
.reader::backdrop { background: #171412c4; }
.reader-toolbar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: .55rem 1rem; flex-wrap: wrap; padding: .65rem 1rem; border-bottom: 1px solid var(--rule); }
.reader-toolbar h2 { font-size: clamp(1.16rem, 3.2vw, 1.65rem); }
.reader-actions { display: flex; gap: .9rem; align-items: center; }
.reader-actions form { margin: 0; }
.reader-actions button { min-height: 44px; padding: .35rem .85rem; border: 1px solid var(--red-dark); background: var(--red); color: white; font: 700 .92rem system-ui, sans-serif; cursor: pointer; }
.reader-actions button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.reader-actions .reader-zoom { background: transparent; color: var(--red-dark); }
.reader-actions .reader-zoom[aria-pressed="true"] { background: #e8d2cf; }
.reader-download { display: inline-flex; min-height: 44px; align-items: center; font-size: .9rem; }
.reader-content { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #ebe4d9; }
.reader-content img { display: block; width: min(100% - 1rem, 57rem); height: auto; margin: .55rem auto 1rem; box-shadow: 0 2px 10px #3a241737; }
.reader-content.enlarged img { width: max(67rem, 118%); margin-left: .5rem; }
.reader-content iframe { display: block; width: 100%; height: 100%; border: 0; }
.reader-content p { margin: 1rem; }

@media (max-width: 52rem) {
  .issues { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .issue { grid-template-columns: 1fr; }
  .cover { width: min(100%, 19rem); margin-inline: auto; }
  .reader { width: 100vw; height: 100vh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .reader-toolbar { padding: .55rem .65rem; }
  .reader-content img { width: 100%; margin-top: 0; }
}
