:root {
    color-scheme: light;
    --paper: #f4f0e7;
    --paper-deep: #e9e2d5;
    --ink: #202a23;
    --muted: #73766d;
    --green: #295b43;
    --green-dark: #1d3c2d;
    --coral: #c95740;
    --yellow: #e4bc62;
    --line: #d8d2c6;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { color: white; background: var(--coral); }

.site-header { height: 82px; padding: 0 max(5.2vw, 24px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(32, 42, 35, .13); position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--paper); background: var(--coral); font-family: var(--serif); font-size: 24px; font-style: italic; line-height: 1; }
.main-nav { display: flex; gap: 38px; margin-left: 40px; }
.nav-link { padding: 10px 0; color: #74776f; font-size: 13px; transition: color .2s ease; }
.nav-link:hover, .nav-link.is-current { color: var(--ink); }
.publish-button, .contribute-button, .submit-button { border: 0; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.publish-button { min-height: 42px; padding: 0 17px; border: 1px solid var(--ink); background: transparent; font-size: 12px; font-weight: 600; }
.publish-button:hover { color: white; background: var(--ink); }
.publish-button span { margin-right: 5px; font-size: 17px; vertical-align: -1px; }

.hero { min-height: 583px; padding: 74px max(8vw, 34px) 68px; position: relative; display: grid; grid-template-columns: 1fr 0.88fr; align-items: center; gap: 7.5%; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 14px; animation: arrive .7s both; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.eyebrow-line { width: 25px; height: 1px; background: currentColor; }
.hero h1, .section-heading h2, .contribute h2, .publish-dialog h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
.hero h1 { max-width: 610px; font-size: clamp(47px, 5.2vw, 72px); line-height: 1.09; }
.hero h1 em, .publish-dialog h2 em { color: var(--coral); font-weight: 500; }
.hero-description { max-width: 400px; margin: 22px 0 25px; color: #656a61; font-size: 14px; line-height: 1.8; }
.hero-link { display: inline-flex; align-items: center; gap: 13px; padding-bottom: 6px; border-bottom: 1px solid var(--coral); color: var(--ink); font-size: 12px; font-weight: 700; }
.hero-link span { color: var(--coral); font-size: 18px; transition: transform .2s ease; }
.hero-link:hover span { transform: translate(3px, 3px); }
.hero-note { position: absolute; left: 57%; bottom: -51px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.note-spark { color: var(--coral); font-size: 24px; }
.hero-art { height: 390px; position: relative; background: #777; background-image: linear-gradient(180deg, rgba(20, 28, 22, .05) 40%, rgba(20, 28, 22, .6)), url('https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=1100&q=85'); background-position: center; background-size: cover; animation: arrive .75s .12s both; }
.art-label { position: absolute; top: 19px; right: 21px; left: 21px; display: flex; justify-content: space-between; color: white; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.art-caption { position: absolute; right: 27px; bottom: 27px; color: white; font-family: var(--serif); font-size: 26px; font-style: italic; line-height: 1.2; text-align: right; }
.hero-index { position: absolute; right: 4.7%; bottom: 52px; color: #8b8a7e; font-size: 9px; letter-spacing: 1.4px; writing-mode: vertical-rl; }

.section-wrap { padding: 86px max(8vw, 34px) 102px; }
.collection { background: #fbf9f3; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.2; }
.period { color: var(--coral); }
.search-box { width: min(315px, 34%); height: 43px; margin-bottom: 5px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border-bottom: 1px solid #a8a79d; color: #777b72; }
.search-box > span { font-size: 23px; line-height: 1; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #8d8e86; }
.search-box:focus-within { border-color: var(--coral); }
.search-box kbd { padding: 2px 6px; border: 1px solid #d8d4c9; color: #777b72; font-family: var(--sans); font-size: 10px; }
.collection-tools { min-height: 69px; margin: 26px 0 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-list { display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.filter-list::-webkit-scrollbar { display: none; }
.filter-button { display: inline-flex; align-items: center; gap: 5px; padding: 9px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #787a72; cursor: pointer; font-size: 11px; white-space: nowrap; }
.filter-button:hover, .filter-button.is-active { border-bottom-color: var(--coral); color: var(--ink); }
.filter-count { color: var(--coral); font-size: 9px; }
.results-label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 37px 21px; }
.work-card { min-width: 0; animation: arrive .45s both; }
.work-cover { height: 224px; position: relative; overflow: hidden; background: var(--paper-deep); }
.work-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .work-cover img { transform: scale(1.045); }
.cover-index { position: absolute; top: 12px; left: 12px; padding: 6px 7px; background: rgba(244, 240, 231, .92); color: var(--ink); font-size: 9px; letter-spacing: .7px; }
.work-info { padding: 15px 2px 0; }
.work-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.work-meta span:last-child { color: #898a82; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.work-title { margin: 10px 0 5px; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.22; }
.work-author { margin: 0; color: #797a72; font-size: 10px; }
.work-excerpt { min-height: 43px; margin: 12px 0 14px; color: #5f655e; display: -webkit-box; overflow: hidden; font-family: var(--serif); font-size: 13px; font-style: italic; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.read-link { display: inline-flex; align-items: center; gap: 9px; padding: 0 0 4px; border: 0; border-bottom: 1px solid #b5b5aa; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.read-link span { color: var(--coral); font-size: 15px; transition: transform .2s ease; }
.read-link:hover span { transform: translateX(4px); }
.empty-state { padding: 75px 15px; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state > span { color: var(--coral); font-size: 30px; }
.empty-state h3 { margin: 12px 0 5px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.empty-state p { color: var(--muted); font-size: 12px; }

.contribute { padding: 54px max(8vw, 34px); color: white; background: var(--green-dark); }
.contribute-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 75px 1fr auto; align-items: center; gap: 21px; }
.contribute-mark { align-self: start; color: var(--yellow); font-family: var(--serif); font-size: 92px; line-height: .8; }
.contribute .eyebrow { margin: 0 0 13px; color: #d8bd79; }
.contribute h2 { font-size: clamp(27px, 3.1vw, 39px); line-height: 1.17; }
.contribute-button { min-height: 45px; padding: 0 17px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 700; }
.contribute-button span { margin-left: 11px; font-size: 16px; }
.contribute-button:hover, .submit-button:hover { transform: translateY(-2px); }
.site-footer { min-height: 85px; padding: 18px max(5.2vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-size: 15px; }
.footer-brand .brand-mark { width: 27px; height: 27px; font-size: 20px; }
.site-footer p, .footer-year { margin: 0; color: #777a71; font-size: 10px; }

.dialog { width: min(680px, calc(100% - 30px)); max-height: min(88vh, 900px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 20px 80px rgba(12, 22, 15, .28); }
.dialog::backdrop { background: rgba(17, 27, 20, .64); backdrop-filter: blur(3px); }
.dialog-close { width: 37px; height: 37px; position: absolute; top: 16px; right: 16px; display: grid; place-items: center; border: 1px solid rgba(32, 42, 35, .25); border-radius: 50%; background: transparent; cursor: pointer; font-size: 24px; line-height: 1; }
.dialog-close:hover { color: white; background: var(--ink); }
.reader-content { padding: 66px clamp(25px, 9vw, 76px) 72px; }
.reader-category { margin: 0 0 17px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.reader-content h2 { max-width: 500px; margin: 0; font-family: var(--serif); font-size: clamp(36px, 7vw, 55px); font-weight: 500; line-height: 1.12; }
.reader-byline { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.reader-rule { width: 55px; height: 2px; margin: 28px 0; background: var(--coral); }
.reader-text { color: #424a43; font-family: var(--serif); font-size: 17px; line-height: 1.95; white-space: pre-wrap; }
.publish-dialog { width: min(660px, calc(100% - 30px)); padding: 48px clamp(23px, 6vw, 58px) 40px; }
.publish-dialog form > .eyebrow { margin-bottom: 13px; }
.publish-dialog h2 { margin-bottom: 27px; font-size: 39px; line-height: 1.08; }
.form-field { display: grid; gap: 8px; margin-bottom: 17px; color: #595f57; font-size: 10px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 13px; border: 1px solid #d4d0c4; border-radius: 0; outline: 0; background: #fbf9f3; color: var(--ink); font-size: 12px; font-weight: 400; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(41, 91, 67, .1); }
.form-field [aria-invalid="true"] { border-color: var(--coral); }
.field-error { margin: -2px 0 0; color: #a33b2b; font-size: 11px; font-weight: 500; line-height: 1.45; }
.field-error[hidden] { display: none; }
.form-field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.safety-note { margin: -1px 0 16px; padding: 11px 12px; border-left: 2px solid var(--green); background: #ebe8de; color: #565d54; font-size: 10px; line-height: 1.6; }
.safety-note strong { color: var(--green-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.form-footer > span { color: #888980; font-size: 9px; }
.submit-button { min-height: 43px; padding: 0 16px; background: var(--coral); color: white; font-size: 11px; font-weight: 700; }
.submit-button span { margin-left: 10px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 5; padding: 13px 18px; transform: translateY(15px); opacity: 0; background: var(--green-dark); color: white; font-size: 12px; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }

@keyframes arrive { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr .82fr; gap: 5%; padding-right: 6vw; padding-left: 6vw; }
    .hero-art { height: 340px; }
    .section-wrap { padding-right: 6vw; padding-left: 6vw; }
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; }
    .work-cover { height: clamp(200px, 30vw, 310px); }
    .contribute { padding-right: 6vw; padding-left: 6vw; }
}
@media (max-width: 650px) {
    .site-header { height: 68px; padding: 0 20px; }
    .brand { gap: 8px; font-size: 17px; }
    .brand-mark { width: 30px; height: 30px; font-size: 21px; }
    .main-nav { gap: 17px; margin-left: 0; }
    .nav-link { font-size: 11px; }
    .publish-button { min-height: 37px; padding: 0 10px; font-size: 10px; }
    .publish-button span { margin-right: 2px; }
    .hero { min-height: 0; padding: 55px 22px 57px; grid-template-columns: 1fr; gap: 31px; }
    .hero h1 { font-size: clamp(43px, 12vw, 61px); }
    .hero-description { max-width: 360px; margin-top: 16px; font-size: 13px; }
    .hero-note, .hero-index { display: none; }
    .hero-art { height: 265px; margin-left: 18px; }
    .art-caption { right: 17px; bottom: 18px; font-size: 22px; }
    .section-wrap { padding: 58px 22px 70px; }
    .section-heading { align-items: stretch; flex-direction: column; gap: 17px; }
    .section-heading h2 { max-width: 360px; font-size: 35px; }
    .search-box { width: 100%; }
    .collection-tools { min-height: 59px; margin: 20px 0 18px; }
    .filter-list { gap: 19px; }
    .results-label { display: none; }
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 13px; }
    .work-cover { height: clamp(150px, 54vw, 230px); }
    .work-info { padding-top: 11px; }
    .work-meta { font-size: 8px; letter-spacing: .35px; }
    .work-title { margin-top: 8px; font-size: 18px; }
    .work-excerpt { min-height: 39px; margin: 9px 0 10px; font-size: 12px; }
    .read-link { font-size: 9px; }
    .contribute { padding: 39px 22px; }
    .contribute-inner { grid-template-columns: 42px 1fr; gap: 14px; }
    .contribute-mark { font-size: 65px; }
    .contribute .eyebrow { font-size: 8px; letter-spacing: 1px; }
    .contribute h2 { font-size: 27px; }
    .contribute-button { grid-column: 2; justify-self: start; margin-top: 6px; }
    .site-footer { min-height: 77px; padding: 17px 20px; flex-wrap: wrap; gap: 8px 15px; }
    .site-footer p { order: 3; width: 100%; }
    .footer-year { margin-left: auto; }
    .publish-dialog { padding-top: 56px; }
    .publish-dialog h2 { font-size: 34px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 380px) {
    .main-nav { gap: 10px; }
    .nav-link { font-size: 10px; }
    .brand { font-size: 15px; }
    .brand-mark { width: 27px; height: 27px; }
    .publish-button { padding: 0 7px; font-size: 9px; }
    .filter-list { gap: 14px; }
    .work-grid { grid-template-columns: 1fr; }
    .work-cover { height: 230px; }
}
