:root {
  color-scheme: light;
  --paper: #f8f2e7;
  --white: #fffdf8;
  --ink: #202822;
  --muted: #515b51;
  --red: #9d3529;
  --forest: #20372e;
  --line: #c9c1ad;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.0625rem/1.6 system-ui, sans-serif; }
a { color: var(--red); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #b44d22; outline-offset: 4px; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h2, h3 { line-height: 1.15; }
p + p { margin-top: .75rem; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: 0; left: .75rem; padding: .65rem; background: var(--white); transform: translateY(-110%); z-index: 2; }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--forest); color: white; border-bottom: 4px solid #bb6847; }
.header-inner, .hero-inner, .quick-inner, main > section:not(.hero) { width: min(92%, 72rem); margin-inline: auto; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1.5rem; padding-block: .85rem; }
.site-header a { color: white; }
.site-brand { font-weight: 800; text-decoration: none; }
.site-brand span { color: #f1bb88; margin-right: .25rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-header nav a, .header-library { font-size: .94rem; font-weight: 650; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.header-library { padding: .3rem .7rem; border: 1px solid #c6d2c8; border-radius: .25rem; text-decoration: none; }

.hero { background: linear-gradient(115deg, #fff9ed, var(--paper)); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; padding-block: clamp(2.4rem, 6vw, 5.2rem); }
.eyebrow, .feature-top { font-size: .77rem; line-height: 1.45; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow { color: var(--red); }
.signal-dot { display: inline-block; width: .55rem; height: .55rem; margin-right: .35rem; border-radius: 50%; background: var(--red); }
.hero h1 { margin-block: .6rem 1.05rem; font: 700 clamp(3.5rem, 8.7vw, 7.2rem)/.88 var(--serif); letter-spacing: -.068em; }
.hero h1 em { color: var(--red); font-weight: 500; }
.hero-intro { max-width: 34rem; color: var(--muted); font-size: clamp(1.06rem, 1.6vw, 1.24rem); }
.archive-search { max-width: 35rem; margin-top: 1.5rem; }
.archive-search > label:first-child { display: block; font-weight: 800; margin-bottom: .45rem; }
.search-row { display: flex; gap: .45rem; }
.search-row input, .upload-box input:not([type="file"]), .upload-box textarea {
  min-width: 0; padding: .72rem .85rem; color: var(--ink); background: var(--white);
  border: 1px solid #837e71; border-radius: .25rem;
}
.search-row input { flex: 1; }
input::placeholder, textarea::placeholder { color: #5d6058; opacity: 1; }
.search-row button, .btn-big { padding: .72rem 1rem; border: 1px solid var(--red); border-radius: .25rem; background: var(--red); color: white; font-weight: 750; }
.search-row button:hover, .btn-big:hover { background: #78281f; }
.search-inside { display: flex; gap: .55rem; align-items: center; margin-top: .6rem; min-height: 2rem; font-size: .95rem; }
.search-inside input { accent-color: var(--red); inline-size: 1.05rem; block-size: 1.05rem; }
.browse-link { display: inline-block; font-weight: 750; margin-top: .95rem; }

.feature { position: relative; overflow: hidden; isolation: isolate; background: var(--forest); color: white; padding: clamp(1rem, 2.5vw, 1.5rem); border-radius: .45rem; box-shadow: 0 .65rem 1.6rem #33291525; }
.feature::before { content: ""; position: absolute; inset: 3rem 0 4.5rem; z-index: -1; background: repeating-radial-gradient(circle at center, transparent 0 21px, #dce7db18 22px 23px, transparent 24px 35px); }
.feature-top { display: flex; justify-content: space-between; gap: 1rem; color: #f1bb88; border-bottom: 1px solid #75857b; padding-bottom: .7rem; }
.feature-cover { display: block; width: min(73%, 15.5rem); margin: 1.3rem auto; transform: rotate(-4deg); box-shadow: .45rem .65rem 1.15rem #0008; transition: transform .2s ease; }
.feature-cover:hover, .feature-cover:focus-visible { transform: rotate(0); }
.feature-cover img { display: block; width: 100%; height: auto; }
.feature-caption { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .5rem 1rem; border-top: 1px solid #75857b; padding-top: .8rem; }
.feature-caption p { color: #e1e9df; font-size: .86rem; }
.feature-caption h2 { margin-top: .2rem; font: 700 clamp(1.2rem, 2.4vw, 1.85rem)/1.1 var(--serif); }
.feature-caption a { color: #ffe4bf; font-size: .95rem; font-weight: 700; }

.quick-links { background: #e9dfcd; border-block: 1px solid var(--line); }
.quick-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-inner a { display: flex; align-items: center; gap: .6rem; padding: 1rem; color: var(--ink); text-decoration: none; font-weight: 750; }
.quick-inner a:hover { background: var(--white); text-decoration: underline; }
.quick-inner a + a { border-inline-start: 1px solid var(--line); }
.quick-inner span, .quick-inner b { color: var(--red); }
.quick-inner span { font-size: .78rem; font-variant-numeric: tabular-nums; }
.quick-inner b { margin-left: auto; }

main > section:not(.hero) { padding-block: clamp(2.4rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.section-title { font: 700 clamp(1.9rem, 4vw, 3rem)/1.08 var(--serif); letter-spacing: -.035em; margin: .25rem 0 1.05rem; }
.gallery-intro { max-width: 50rem; color: var(--muted); }
.archive-collections, .cover-grid, .links-grid, .mag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .85rem; padding: 0; }
.archive-collections { margin: 1.35rem 0; list-style: none; }
.archive-collections li, .link-card, .mag-item { background: var(--white); border: 1px solid var(--line); border-radius: .3rem; padding: 1rem; }
.archive-collections a, .mag-link { font-weight: 800; }
.archive-collections span { display: block; margin-top: .25rem; color: var(--muted); font-size: .97rem; }
.mag-category { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.mag-category summary { cursor: pointer; font-weight: 750; margin-bottom: .8rem; }
.cover-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); }
.cover-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: .25rem; overflow: hidden; }
.cover-card img { display: block; width: 100%; aspect-ratio: 5 / 7; object-fit: contain; background: #e8dfce; }
.cover-card .cap { padding: .55rem .65rem; font-size: .93rem; font-weight: 650; }
.cover-card .dl-btn { margin-top: auto; padding: .3rem .65rem .65rem; font-size: .9rem; font-weight: 700; }
.mag-item .meta { display: block; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

.tl-item { display: grid; grid-template-columns: minmax(4.5rem, 6rem) 1fr; gap: 1rem; padding-block: 1rem; max-width: 55rem; }
.tl-item + .tl-item, .story + .story { border-top: 1px solid var(--line); }
.tl-year, .story-meta { color: var(--red); font-size: .9rem; font-weight: 800; }
.tl-body h3, .story h3, .link-card h3 { margin-bottom: .5rem; }
.story { max-width: 52rem; padding-block: 1rem; }
.story-meta { margin-bottom: .25rem; }
.link-card ul, .uploaded-list ul { padding-inline-start: 1.2rem; margin-block: .5rem; }
.link-card li { padding-block: .15rem; }
.upload-box { max-width: 42rem; }
.upload-box .note { color: var(--muted); }
.upload-box form { display: grid; gap: 1rem; margin-top: 1.3rem; }
.upload-box label { display: grid; gap: .35rem; font-weight: 650; }
.upload-box input, .upload-box textarea { width: 100%; }
.upload-box textarea { resize: vertical; }
.preview:empty { display: none; }
.preview img { width: min(100%, 14rem); height: auto; }
.uploaded-list { margin-top: 1.5rem; }
footer { background: var(--forest); color: white; padding: 2rem 4%; font-size: .95rem; text-align: center; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 br { display: none; }
  .hero h1 em { display: inline; }
  .feature { max-width: 30rem; }
  .feature-cover { width: min(64%, 13rem); }
  .site-header nav { order: 3; width: 100%; padding-top: .4rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(3rem, 14vw, 4rem); }
  .quick-inner { grid-template-columns: 1fr; }
  .quick-inner a { padding: .7rem .4rem; }
  .quick-inner a + a { border-inline-start: 0; border-top: 1px solid var(--line); }
  .tl-item { grid-template-columns: 1fr; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-cover { transition: none; }
}
