@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink: #20201d;
    --paper: #f5f1e8;
    --white: #fff;
    --muted: #77736b;
    --line: #d9d3c8;
    --dark: #24231f;
    --beige: #ddd4c5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 12px/1.5 Inter, Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    height: 56px;
    background: #f7f3ea;
    border-bottom: 1px solid #d0cbc1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5.5%;
    position: relative;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand b {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    background: var(--ink);
    color: #fff;
    font-size: 9px;
}

.brand span {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

.brand small {
    display: block;
    font-size: 7px;
    letter-spacing: .14em;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 3px;
}

nav {
    display: flex;
    gap: 26px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 8px;
}

nav a {
    opacity: .85;
}


/* =========================================================
   HOME HERO
   ========================================================= */

.home-hero {
    min-height: calc(100vh - 56px);
    background: var(--dark);
    color: #f7f3ea;
    padding: 8vh 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.home-hero-inner {
    max-width: 780px;
}

.eyebrow,
.section-kicker {
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 600;
    color: #aaa69e;
}

.home-hero h1 {
    font: 700 clamp(72px, 8vw, 142px) / .86 Inter, Arial, sans-serif;
    letter-spacing: -.075em;
    margin: 14px 0 28px;
}

.home-hero h1 em {
    font-weight: 400;
    letter-spacing: -.08em;
}

.home-hero p {
    font-size: 14px;
    line-height: 1.55;
    color: #dedbd3;
    margin: 0 0 28px;
    max-width: 590px;
}

.hero-button {
    display: inline-block;
    background: #f6f1e8;
    color: #24231f;
    padding: 12px 18px;
    font-size: 10px;
    font-weight: 600;
}

.hero-count {
    border: 1px solid #68665f;
    padding: 25px 28px;
    min-width: 155px;
    align-self: center;
}

.hero-count strong {
    display: block;
    font-size: 48px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -.06em;
}

.hero-count span {
    display: block;
    font-size: 10px;
    color: #c8c4bb;
    margin-top: 6px;
}


/* =========================================================
   STATISTICS
   ========================================================= */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.stat-strip div {
    min-height: 82px;
    padding: 20px 6%;
    border-right: 1px solid var(--line);
}

.stat-strip div:last-child {
    border-right: 0;
}

.stat-strip strong {
    display: block;
    font-size: 25px;
    line-height: 1;
    font-weight: 600;
}

.stat-strip span {
    display: block;
    font-size: 8px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 8px;
}


/* =========================================================
   BROWSE SECTION
   ========================================================= */

.browse-section {
    padding: 75px 8%;
    min-height: 540px;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.browse-section h2,
.collections-section h2 {
    font-size: 34px;
    letter-spacing: -.055em;
    margin: 7px 0 25px;
}


/* Archive Filters */

.archive-filter {
    display: grid;
    grid-template-columns: 2.3fr 1fr 1fr 1fr 1fr auto auto;
    gap: 5px;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.archive-filter input,
.archive-filter select {
    height: 36px;
    min-width: 0;
    border: 1px solid #d1ccc3;
    background: #fff;
    padding: 0 10px;
    font: 10px Inter, Arial, sans-serif;
    color: #282722;
}

.archive-filter button,
.clear-filter {
    height: 36px;
    border: 1px solid #d6d1c8;
    background: #fff;
    padding: 0 12px;
    font: 10px Inter, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.archive-filter button {
    background: #24231f;
    color: #fff;
    border-color: #24231f;
}

.clear-filter {
    color: #444;
}


/* Archive Results */

.browse-results-head {
    display: flex;
    justify-content: space-between;
    color: #878279;
    font-size: 9px;
    padding: 15px 0 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.archive-results {
    border-top: 1px solid var(--line);
}

.archive-row {
    display: grid;
    grid-template-columns: 1fr 190px 25px;
    gap: 30px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e1ddd4;
}

.archive-row h3 {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0;
}

.archive-row p {
    margin: 6px 0 0;
    color: #77736b;
    font-size: 9px;
}

.archive-row-category {
    text-align: right;
    font-size: 8px;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #858078;
}

.archive-row-arrow {
    text-align: right;
    font-size: 15px;
}

.archive-row:hover h3 {
    text-decoration: underline;
}

.no-results {
    padding: 70px 0;
    text-align: center;
    color: var(--muted);
}


/* Pagination */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    font-size: 9px;
    padding-top: 25px;
}

.pagination a {
    text-decoration: underline;
}

.pagination b {
    font-weight: 500;
    color: var(--muted);
}


/* =========================================================
   COLLECTIONS
   ========================================================= */

.collections-section {
    padding: 75px 8%;
    min-height: 330px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.collection-card {
    min-height: 145px;
    padding: 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.collection-card:nth-child(3n) {
    border-right: 0;
}

.collection-card span {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

.collection-card h3 {
    font-size: 20px;
    line-height: 1.1;
    margin: 10px 0 0;
    max-width: 300px;
}

.collection-card b {
    font-size: 17px;
    font-weight: 400;
}

.collection-card:hover {
    background: #eee9df;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
    background: var(--beige);
    min-height: 290px;
    padding: 65px 8%;
}

.about-inner {
    max-width: 620px;
}

.about-section h2 {
    font-size: 31px;
    letter-spacing: -.05em;
    margin: 7px 0 18px;
}

.about-section p {
    font-size: 11px;
    line-height: 1.7;
    margin: 0 0 20px;
    max-width: 560px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.about-tags span {
    font-size: 8px;
    border: 1px solid #aaa295;
    padding: 5px 9px;
    letter-spacing: .08em;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: #f5f1e8;
    color: #67635c;
    padding: 22px 8%;
    font-size: 7px;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-top: 1px solid var(--line);
}


/* =========================================================
   RECORD PAGE
   ========================================================= */

.record-page {
    max-width: 1150px;
    margin: auto;
    padding: 80px 8% 110px;
}

.record-top {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 60px;
}

.record-top a {
    text-decoration: underline;
}

.record-page h1 {
  max-width: 950px !important;
  margin: 0 0 18px !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 25px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}



.record-lead {
    font-size: 17px;
    color: var(--muted);
}

.record-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 55px;
}

.record-meta > div {
    border-top: 1px solid var(--line);
    padding: 16px 0;
    margin-right: 30px;
}

.record-meta small,
.record-description small,
.record-files > small {
    font-size: 8px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.record-meta p {
    font-size: 11px;
    margin: 6px 0;
}

.record-description,
.record-files {
    border-top: 1px solid var(--line);
    margin-top: 40px;
    padding-top: 20px;
}

.record-description p {
    font-size: 13px;
    max-width: 800px;
}

.record-files a {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font-size: 11px;
}

.record-files span {
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin {
    padding: 65px 5vw;
    max-width: 1400px;
    margin: auto;
}

.admin h1 {
    font: 52px Georgia, serif;
}

.stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 35px 0;
}

.stats div {
    border: 1px solid var(--line);
    padding: 22px;
}

.stats b {
    display: block;
    font: 35px Georgia, serif;
}

.stats span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
}

.actions,
.adminbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 25px 0;
}

.adminbar {
    justify-content: space-between;
}

.toolbar {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.toolbar input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--line);
    background: transparent;
}

.admin table {
    width: 100%;
    border-collapse: collapse;
}

.admin th,
.admin td {
    border-top: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.admin td small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}


/* =========================================================
   EDITOR
   ========================================================= */

.editor {
    max-width: 900px;
    display: grid;
    gap: 15px;
}

.editor label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

.editor input,
.editor textarea,
.editor select,
.inlineform input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    background: #fbf8f1;
    font: 15px inherit;
    color: var(--ink);
}

.inlineform {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    gap: 8px;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login {
    min-height: 75vh;
    display: grid;
    place-items: center;
}

.login form {
    width: min(440px, 100%);
    border: 1px solid var(--line);
    padding: 35px;
    display: grid;
    gap: 15px;
}

.login h1 {
    margin: 0;
}


/* =========================================================
   ALERTS
   ========================================================= */

.error,
.success {
    padding: 12px;
    border: 1px solid #a44;
}

.success {
    border-color: #687;
}


/* =========================================================
   RESPONSIVE — LARGE TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .archive-filter {
        grid-template-columns: 1fr 1fr;
    }

    .archive-filter input {
        grid-column: 1 / -1;
    }

    .archive-filter button,
    .clear-filter {
        grid-column: auto;
    }

    .home-hero h1 {
        font-size: clamp(60px, 9vw, 105px);
    }
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */


   .logo{

  width: 10%;
}

@media (max-width: 800px) {

    nav {
        gap: 12px;
    }

    .home-hero {
        min-height: 600px;
        align-items: flex-start;
        padding-top: 70px;
    }

    .hero-count {
        position: absolute;
        right: 8%;
        bottom: 45px;
    }

    .stat-strip div {
        padding-left: 8%;
    }

    .archive-row {
        grid-template-columns: 1fr 120px;
    }

    .archive-row-arrow {
        display: none;
    }

    .collection-grid {
        grid-template-columns: 1fr 1fr;
    }

    .collection-card:nth-child(3n) {
        border-right: 1px solid var(--line);
    }

    .collection-card:nth-child(2n) {
        border-right: 0;
    }

    .record-meta {
        grid-template-columns: 1fr;
    }

    .logo{

  width: 50%;
}
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .logo{

  width: 50%;
}

    header {
        height: 52px;
        padding: 0 5%;
    }

    nav {
        font-size: 7px;
        gap: 10px;
    }

    .brand span {
        font-size: 11px;
    }

    .home-hero {
        padding: 55px 7%;
        min-height: 620px;
    }

    .home-hero h1 {
        font-size: 55px;
    }

    .home-hero p {
        font-size: 11px;
    }

    .hero-count {
        right: 7%;
        bottom: 35px;
    }

    .stat-strip {
        grid-template-columns: 1fr 1fr;
    }

    .stat-strip div:nth-child(2) {
        border-right: 0;
    }

    .browse-section,
    .collections-section,
    .about-section {
        padding-left: 7%;
        padding-right: 7%;
    }

    .archive-filter {
        grid-template-columns: 1fr;
    }

    .archive-filter input {
        grid-column: auto;
    }

    .archive-filter button,
    .clear-filter {
        grid-column: auto;
    }

    .archive-row {
        grid-template-columns: 1fr;
    }

    .archive-row-category {
        text-align: left;
        margin-top: 7px;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-card:nth-child(n) {
        border-right: 0;
    }

    .record-page {
        padding-left: 7%;
        padding-right: 7%;
    }

    .record-page h1 {
        font-size: 43px;
    }

    .desktop {
        display: none;
    }
}


/* =========================================================
   ALPHABETICAL ARCHIVAL GUIDE
   ========================================================= */

.archive-alphabetical {
    border-top: 0;
}

.alphabet-section {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 0;
}

.alphabet-letter {
    font: 400 27px/1 Georgia, 'Times New Roman', serif;
    padding-top: 20px;
}

.alphabet-records {
    min-width: 0;
}

.alphabet-records .archive-row {
    grid-template-columns: 1fr 190px;
    padding: 22px 0;
}

.alphabet-records .archive-row h3 {
    font: 400 16px/1.25 Georgia, 'Times New Roman', serif;
    letter-spacing: -.015em;
}

.alphabet-records .archive-row p {
    font: 9px/1.45 Inter, Arial, sans-serif;
    margin: 5px 0 0;
    color: #77736b;
}

.alphabet-records .archive-row-main small {
    display: block;
    font: 8px/1.3 Inter, Arial, sans-serif;
    color: #aaa49b;
    letter-spacing: .08em;
    margin-top: 4px;
}

.alphabet-records .archive-row-category {
    font: 8px/1.3 Inter, Arial, sans-serif;
}

.alphabet-records .archive-row:hover h3 {
    text-decoration: underline;
}


/* Alphabetical Guide — Tablet */

@media (max-width: 800px) {

    .alphabet-section {
        grid-template-columns: 38px 1fr;
    }

    .alphabet-letter {
        font-size: 24px;
    }

    .alphabet-records .archive-row {
        grid-template-columns: 1fr;
    }

    .alphabet-records .archive-row-category {
        text-align: left;
        margin-top: 8px;
    }
}

/* =========================================================
   USER FEEDBACK MODAL
   ========================================================= */

.feedback-modal{position:fixed;inset:0;z-index:1300;display:none;align-items:center;justify-content:center;padding:24px}
.feedback-modal.is-open{display:flex}
.feedback-backdrop{position:absolute;inset:0;background:rgba(25,13,18,.72);backdrop-filter:blur(4px)}
.feedback-dialog{position:relative;width:min(620px,100%);max-height:calc(100vh - 48px);overflow:auto;background:var(--paper);color:var(--ink);padding:42px;border-radius:2px;box-shadow:0 25px 80px rgba(0,0,0,.3)}
.feedback-close{position:absolute;right:18px;top:12px;border:0;background:none;color:var(--ink);font:300 32px/1 Arial,sans-serif;cursor:pointer;padding:4px 8px}
.feedback-kicker{font:600 10px/1.2 Inter,Arial,sans-serif;letter-spacing:.14em;margin-bottom:10px;opacity:.65}
.feedback-dialog h2{margin:0 0 10px;font:500 38px/1.05 "Playfair Display",Georgia,serif}
.feedback-intro{max-width:520px;margin:0 0 26px;font-size:13px;line-height:1.6;color:#59554e}
.feedback-dialog form label{display:block;font:600 11px/1.3 Inter,Arial,sans-serif;letter-spacing:.03em;margin-bottom:7px}
.feedback-dialog label span{font-weight:400;opacity:.6}
.feedback-dialog input:not([type=radio]),.feedback-dialog select,.feedback-dialog textarea{display:block;width:100%;margin-top:7px;border:1px solid #c9c2b7;border-radius:0;background:#fffdf8;color:var(--ink);padding:12px 13px;font:400 13px/1.45 Inter,Arial,sans-serif;outline:none}
.feedback-dialog input:not([type=radio]):focus,.feedback-dialog select:focus,.feedback-dialog textarea:focus{border-color:#6f5360;box-shadow:0 0 0 2px rgba(61,23,40,.08)}
.feedback-dialog textarea{resize:vertical;min-height:125px}
.feedback-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.feedback-note{font-size:10px;line-height:1.5;color:#77736b;margin:14px 0 16px}
.feedback-status{min-height:18px;font-size:11px;margin-bottom:8px}
.feedback-status.is-error{color:#9b2635}
.feedback-submit{border:0;background:#3d1728;color:#f5f1e8;padding:13px 22px;border-radius:999px;font:600 11px/1 Inter,Arial,sans-serif;cursor:pointer}
.feedback-submit:disabled{opacity:.55;cursor:wait}
.feedback-success{text-align:center;padding:35px 10px 10px}
.feedback-success-mark{width:48px;height:48px;margin:0 auto 18px;border:1px solid #6f5360;border-radius:50%;display:grid;place-items:center;font-size:22px}
.feedback-success h3{font:500 32px/1.1 "Playfair Display",Georgia,serif;margin:0 0 8px}
.feedback-success p{font-size:13px;color:#59554e;margin:0 auto 24px;max-width:340px}
.feedback-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
body.feedback-open{overflow:hidden}
@media(max-width:640px){
 .feedback-trigger{right:16px;bottom:16px;padding:11px 17px}
 .feedback-modal{padding:12px}
 .feedback-dialog{padding:32px 24px 26px;max-height:calc(100vh - 24px)}
 .feedback-dialog h2{font-size:32px}
 .feedback-two-col{grid-template-columns:1fr;gap:4px}
}
