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

:root {
  --ink: #171613;
  --ink-soft: #27241f;
  --paper: #eee9df;
  --paper-deep: #ded6c7;
  --wine: #6f1f2a;
  --wine-dark: #4b121b;
  --gold: #b9975b;
  --gold-light: #e2d4b4;
  --line: rgba(23, 22, 19, .2);
  --serif: "Italiana", "Iowan Old Style", "Baskerville", serif;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
[x-cloak] { display: none !important; }
button, input, textarea { color: inherit; font: inherit; }
a { color: inherit; }
::selection { color: white; background: var(--wine); }

.archive-nav { position: absolute; z-index: 5; inset: 0 0 auto; height: 96px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.2); color: white; }
.archive-nav > a:last-child, .archive-nav nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-size: 9px; }
.archive-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.archive-brand > span { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid; font: 19px var(--serif); }
.archive-brand b { display: grid; font-size: 12px; letter-spacing: .18em; }
.archive-brand small { margin-top: 5px; color: var(--gold); font-size: 7px; letter-spacing: .25em; }
.profile-nav { position: relative; background: var(--ink); }
.profile-nav nav { display: flex; gap: 30px; }
.archive-nav-tools { display: flex; align-items: center; gap: 32px; }
.archive-languages { display: inline-flex; align-items: center; gap: 12px; }
.archive-languages a { padding: 7px 0; color: inherit; text-decoration: none; opacity: .45; font-size: 8px; letter-spacing: .15em; }
.archive-languages a.active { opacity: 1; color: var(--gold); border-bottom: 1px solid currentColor; }

.archive-hero { min-height: 760px; padding: 165px 7vw 90px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 9vw; align-items: end; color: white; background: radial-gradient(circle at 78% 38%, rgba(185,151,91,.16), transparent 24%), linear-gradient(135deg, #11100e, #2a241d); }
.kicker { margin: 0 0 24px; color: var(--wine); text-transform: uppercase; font-size: 9px; font-weight: 600; letter-spacing: .23em; }
.kicker::before { content: ""; width: 34px; height: 1px; margin-right: 14px; display: inline-block; vertical-align: middle; background: currentColor; }
.archive-hero .kicker, .provenance .kicker, .profile-hero .kicker { color: var(--gold); }
.archive-hero h1 { margin: 0; font: 400 clamp(5rem, 9vw, 10rem)/.82 var(--serif); letter-spacing: -.05em; }
.archive-hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px var(--gold); }
.intro { max-width: 680px; margin: 40px 0 0; color: rgba(255,255,255,.66); font: 1.25rem/1.6 var(--serif); }
.hero-counts { border-top: 1px solid rgba(255,255,255,.4); }
.hero-counts article { min-height: 130px; display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.18); }
.hero-counts strong { color: var(--gold); font: 3rem var(--serif); }
.hero-counts span { color: rgba(255,255,255,.62); text-transform: uppercase; font-size: 8px; letter-spacing: .18em; }

.motto-section { min-height: 760px; display: grid; grid-template-columns: 1fr 1fr; background: #dcd7cd; }
.seal-wrap { padding: 100px 7vw; display: grid; place-items: center; background: var(--paper-deep); }
.seal-wrap img { width: min(470px, 90%); filter: grayscale(1) sepia(.25) contrast(1.14); }
.seal-wrap small { text-transform: uppercase; font-size: 8px; letter-spacing: .15em; }
.motto-copy { padding: 110px 8vw; display: flex; flex-direction: column; justify-content: center; }
.motto-copy h2 { margin: 0 0 35px; font: 400 clamp(4rem, 7vw, 8rem)/.85 var(--serif); }
.motto-copy h2 em { color: var(--wine); font-style: normal; }
.motto-copy > p:not(.kicker) { color: #555047; font: 1.2rem/1.7 var(--serif); }
.motto-latin { padding-top: 28px; margin-top: 35px; border-top: 1px solid; font: italic 1.1rem/1.6 var(--serif); }

.catalogue { padding: 130px 7vw; background: var(--paper); }
.catalogue-head { display: grid; grid-template-columns: 1fr .65fr; gap: 8vw; align-items: end; }
.catalogue h2, .provenance h2, .contact-section h2 { margin: 0; font: 400 clamp(3.2rem, 5.5vw, 6.4rem)/.95 var(--serif); }
.catalogue-head > p { color: #5e5a54; font: 1.1rem/1.65 var(--serif); }
.tabs { margin-top: 80px; padding: 22px 0; display: flex; gap: 35px; overflow: auto; border-top: 1px solid; border-bottom: 1px solid var(--line); }
.tabs button { padding: 10px 0; white-space: nowrap; border: 0; background: none; cursor: pointer; opacity: .45; text-transform: uppercase; font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.tabs button.active { opacity: 1; color: var(--wine); border-bottom: 2px solid var(--wine); }
.tabs sup { font-size: 7px; }
.search-panel { padding: 35px 0; display: flex; justify-content: space-between; align-items: center; }
.search-panel label { width: min(720px, 65%); padding-bottom: 14px; display: flex; gap: 16px; align-items: center; border-bottom: 1px solid; }
.search-panel label span { font-size: 25px; }
.search-panel input { width: 100%; border: 0; outline: 0; background: none; font-size: 16px; }
.search-panel > p { text-transform: uppercase; font-size: 8px; letter-spacing: .14em; }
.results { display: grid; gap: 12px; border-top: 0; }
.record { min-height: 174px; padding: 28px 32px; display: grid; grid-template-columns: 92px minmax(0, 1fr) 48px; gap: 30px; align-items: center; border: 1px solid rgba(23,22,19,.18); background: rgba(255,255,255,.24); text-decoration: none; transition: transform .25s, border-color .25s, background .25s, box-shadow .25s; }
.record:hover { transform: translateY(-2px); border-color: rgba(111,31,42,.45); background: rgba(255,255,255,.55); box-shadow: 0 18px 44px rgba(23,22,19,.08); }
.record > div { min-width: 0; }
.record-id { color: #686159; font: 1.1rem var(--serif); }
.record-meta { margin: 0 0 8px; text-transform: uppercase; font-size: 8px; letter-spacing: .16em; }
.record h3 { margin: 0 0 10px; font: 400 clamp(1.55rem, 2.3vw, 2.4rem)/1.08 var(--serif); overflow-wrap: anywhere; }
.record .life, .detail { margin: 0; color: #706b63; font-size: 11px; line-height: 1.6; }
.detail { max-width: 940px; }
.record-arrow { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid; border-radius: 50%; background: transparent; transition: .25s; }
.record:hover .record-arrow { color: white; border-color: var(--wine); background: var(--wine); }
.linked-badge { margin-top: 12px; display: inline-block; color: var(--wine); text-transform: uppercase; font-size: 8px; font-weight: 600; letter-spacing: .12em; }
.faculties { margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid; border-left: 1px solid; }
.faculties article { min-height: 340px; padding: 35px 28px; display: flex; flex-direction: column; border-right: 1px solid; border-bottom: 1px solid; }
.faculties span { font-size: 8px; }
.faculties h3 { margin-top: 70px; font: 1.3rem var(--serif); }
.faculties strong { color: var(--wine); font: 4rem var(--serif); }
.faculties p { margin-top: auto; font-size: 11px; line-height: 1.7; }
.load-more, .drawer-print { margin: 55px auto 0; padding: 18px 30px; display: block; border: 1px solid var(--wine); color: white; background: var(--wine); cursor: pointer; text-transform: uppercase; font-size: 9px; letter-spacing: .16em; }

.contact-section { padding: 120px 7vw; display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; background: var(--paper-deep); }
.contact-section > div > p:not(.kicker) { max-width: 520px; color: #5b554b; font: 1.15rem/1.6 var(--serif); }
.contact-section > div > a { color: var(--wine); font-size: 12px; }
.contact-section form, .send-profile form { display: grid; gap: 20px; }
.contact-section label, .send-profile label { display: grid; gap: 9px; text-transform: uppercase; font-size: 8px; letter-spacing: .16em; }
.contact-section input, .contact-section textarea, .send-profile input { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid; outline: none; resize: vertical; background: transparent; font-size: 15px; letter-spacing: normal; text-transform: none; }
.contact-section button, .send-profile button, .profile-actions a, .profile-actions button { min-height: 52px; padding: 0 22px; border: 1px solid var(--wine); color: white; background: var(--wine); cursor: pointer; text-decoration: none; text-transform: uppercase; font-size: 9px; font-weight: 600; letter-spacing: .13em; }
.contact-section button { justify-self: start; }
.form-status { min-height: 20px; margin: 0; color: var(--wine); font-size: 11px; line-height: 1.5; }
.hp { position: absolute !important; left: -9999px !important; }

.provenance { padding: 120px 7vw; color: white; background: var(--ink); }
.provenance h2 { max-width: 950px; }
.provenance-grid { margin-top: 75px; display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; }
.provenance-grid > p { color: rgba(255,255,255,.63); font: 1.25rem/1.7 var(--serif); }
.provenance dl { margin: 0; border-top: 1px solid rgba(255,255,255,.5); }
.provenance dl div { padding: 20px 0; display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 10px; line-height: 1.5; }
.provenance dt { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; }
.provenance dd { margin: 0; }
footer { padding: 50px 7vw; display: flex; justify-content: space-between; align-items: center; color: white; background: #0d0d0f; text-transform: uppercase; font-size: 8px; letter-spacing: .16em; }
footer a { text-decoration: none; }
footer span { color: var(--gold); }

.drawer-backdrop { position: fixed; z-index: 20; inset: 0; display: flex; justify-content: flex-end; background: rgba(0,0,0,.73); }
.drawer { width: min(620px, 100%); height: 100%; padding: 90px 70px; overflow: auto; position: relative; background: var(--paper); }
.drawer-close { position: absolute; top: 25px; right: 25px; width: 44px; height: 44px; border: 1px solid; border-radius: 50%; background: transparent; cursor: pointer; font-size: 24px; }
.drawer-years { font-size: 10px; letter-spacing: .15em; }
.drawer h2 { margin: 15px 0 25px; font: 4rem/.95 var(--serif); }
.drawer-role { color: var(--wine); font: 1.2rem/1.5 var(--serif); }
.drawer-bio { color: #555; font: 1.15rem/1.7 var(--serif); }
.drawer dl { margin-top: 45px; border-top: 1px solid; }
.drawer dl div { padding: 15px 0; display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line); font-size: 10px; }
.drawer dd { margin: 0; }

/* Dedicated professor dossiers */
.profile-page { background: var(--paper); }
.profile-hero { min-height: 640px; padding: 95px max(7vw, calc((100vw - 1600px) / 2)) 80px; display: grid; grid-template-columns: minmax(260px, .58fr) minmax(0, 1.42fr); gap: clamp(45px, 8vw, 130px); align-items: center; color: white; background: radial-gradient(circle at 18% 46%, rgba(185,151,91,.14), transparent 23%), var(--ink); }
.profile-symbol { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 25px; border: 1px solid rgba(255,255,255,.22); }
.profile-symbol span { color: var(--gold); font: 8rem var(--serif); letter-spacing: -.08em; }
.profile-symbol small { text-transform: uppercase; letter-spacing: .25em; }
.profile-heading h1 { max-width: 1050px; margin: 0 0 22px; font: 400 clamp(4rem, 7vw, 8.5rem)/.9 var(--serif); letter-spacing: -.045em; }
.profile-life { color: var(--gold-light); text-transform: uppercase; font-size: 9px; letter-spacing: .14em; }
.profile-lead { max-width: 850px; color: rgba(255,255,255,.68); font: 1.2rem/1.65 var(--serif); white-space: pre-line; }
.profile-actions { margin-top: 35px; display: flex; flex-wrap: wrap; gap: 10px; }
.profile-actions a, .profile-actions button { display: flex; align-items: center; background: transparent; border-color: rgba(255,255,255,.4); }
.profile-actions a:hover, .profile-actions button:hover { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.profile-facts { padding: 0 7vw; background: var(--wine); color: white; }
.profile-facts dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.profile-facts dl div { min-height: 116px; padding: 25px 28px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.profile-facts dt { margin-bottom: 12px; color: var(--gold-light); text-transform: uppercase; font-size: 8px; letter-spacing: .16em; }
.profile-facts dd { margin: 0; font: 1.05rem/1.45 var(--serif); }
.profile-section { padding: 120px max(7vw, calc((100vw - 1600px) / 2)); display: grid; grid-template-columns: minmax(150px, .3fr) minmax(0, 1.7fr); gap: clamp(45px, 6vw, 100px); border-bottom: 1px solid var(--line); }
.section-label { color: var(--wine); text-transform: uppercase; font-size: 8px; letter-spacing: .16em; }
.section-label span { display: block; margin-bottom: 22px; color: var(--gold); font: 3rem var(--serif); }
.profile-section h2 { margin: 0 0 55px; font: 400 clamp(3.2rem, 5.5vw, 6.3rem)/.95 var(--serif); }
.timeline-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid; }
.timeline-list li { min-height: 90px; padding: 25px 0 25px 40px; position: relative; border-bottom: 1px solid var(--line); font: 1.2rem/1.55 var(--serif); }
.timeline-list li::before { content: ""; position: absolute; left: 0; top: 34px; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); }
.document-section { background: #e3ddcf; }
.document-tabs details { border-top: 1px solid; }
.document-tabs summary { min-height: 90px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; text-transform: uppercase; font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.document-tabs summary::-webkit-details-marker { display: none; }
.document-tabs summary b { color: var(--wine); font: 2.4rem var(--serif); }
.document-list { margin: 0 0 55px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.document-list li { padding: 24px 22px; display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 25px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.16); }
.document-list li:nth-child(even) { background: rgba(255,255,255,.32); }
.document-list li > span { color: var(--wine); font-size: 10px; }
.document-list strong { display: block; font: 1.05rem/1.45 var(--serif); }
.document-list small { margin-top: 7px; display: block; color: #666057; font-size: 9px; line-height: 1.5; }
.document-list p { max-width: 900px; color: #635d54; font-size: 10px; line-height: 1.65; }
.empty-record { color: #6f675d; font: italic 1rem/1.6 var(--serif); }

.study-lab { padding: 120px 7vw; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink); color: white; }
.study-intro { grid-column: 1 / -1; padding-bottom: 85px; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; }
.study-intro .kicker { grid-column: 1 / -1; color: var(--gold); }
.study-intro h2 { margin: 0; font: 400 clamp(3.7rem, 6.2vw, 7.5rem)/.9 var(--serif); }
.study-intro h2 em { color: var(--gold); font-style: normal; }
.study-intro > p:last-child { color: rgba(255,255,255,.62); font: 1.15rem/1.65 var(--serif); }
.study-block { min-height: 330px; padding: 50px; border: 1px solid rgba(255,255,255,.16); }
.study-block.wide { grid-column: 1 / -1; }
.study-block h3 { margin: 0 0 35px; color: var(--gold); text-transform: uppercase; font-size: 10px; letter-spacing: .18em; }
.study-block > p, .study-block li { color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.75; }
.study-block ol { padding-left: 20px; }
.vocabulary { display: grid; grid-template-columns: repeat(2, 1fr); }
.vocabulary div { padding: 13px 0; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(255,255,255,.14); }
.vocabulary strong { font: 1rem var(--serif); }
.vocabulary span { color: rgba(255,255,255,.55); font-size: 11px; }
.flashcards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.flashcards article { min-height: 270px; padding: 25px; position: relative; color: var(--ink); background: var(--paper); }
.flashcards article > span { color: var(--wine); font-size: 8px; }
.flashcards h4 { margin: 45px 0 15px; font: 1.4rem var(--serif); }
.flashcards p { color: #5b554b; font-size: 10px; line-height: 1.6; }
.flashcards summary { cursor: pointer; color: var(--wine); text-transform: uppercase; font-size: 7px; letter-spacing: .12em; }
.questions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 55px; }

.send-profile { padding: 110px 7vw; display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; background: var(--gold-light); }
.send-profile h2 { margin: 0; font: 400 clamp(3rem, 5vw, 6rem)/.95 var(--serif); }
.send-profile > div > p:last-child { color: #5f584e; font: 1.05rem/1.6 var(--serif); }
.send-profile button { justify-self: start; }
.source-note { padding: 45px 7vw; display: flex; justify-content: space-between; gap: 6vw; color: #645d53; background: var(--paper); font-size: 9px; line-height: 1.6; }

@media (max-width: 900px) {
  .archive-hero, .motto-section, .catalogue-head, .contact-section, .provenance-grid, .profile-hero, .study-intro, .send-profile { grid-template-columns: 1fr; }
  .profile-hero { padding-top: 70px; }
  .profile-symbol { min-height: 250px; }
  .profile-facts dl { grid-template-columns: repeat(2, 1fr); }
  .profile-section { grid-template-columns: 1fr; }
  .flashcards { grid-template-columns: repeat(2, 1fr); }
  .faculties { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .archive-nav { height: 80px; padding: 0 20px; }
  .archive-nav > a:last-child, .profile-nav nav a:last-child { display: none; }
  .archive-nav-tools > a:last-child { display: none; }
  .archive-brand > span { width: 40px; height: 40px; }
  .archive-hero { min-height: 850px; padding: 125px 22px 70px; grid-template-columns: 1fr; }
  .archive-hero h1 { font-size: 4.8rem; }
  .motto-copy, .catalogue, .contact-section, .provenance, .profile-section, .study-lab, .send-profile { padding: 80px 22px; }
  .seal-wrap { padding: 70px 22px; }
  .tabs { margin-top: 50px; gap: 22px; }
  .search-panel { align-items: stretch; flex-direction: column; gap: 20px; }
  .search-panel label { width: 100%; }
  .record { min-height: 150px; padding: 22px 16px; grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 10px; }
  .record h3 { font-size: 1.45rem; }
  .record-arrow { width: 30px; height: 30px; border: 0; }
  .faculties { grid-template-columns: 1fr; }
  .faculties article { min-height: 250px; }
  .drawer { padding: 80px 22px; }
  .drawer h2 { font-size: 3rem; }
  footer { flex-direction: column; gap: 20px; }
  .profile-hero { padding: 60px 22px; }
  .profile-heading h1 { font-size: 3.7rem; }
  .profile-symbol span { font-size: 6rem; }
  .profile-facts { padding: 0; }
  .profile-facts dl { grid-template-columns: 1fr; }
  .profile-facts dl div { min-height: auto; }
  .profile-section h2 { font-size: 3.2rem; }
  .document-list li { grid-template-columns: 1fr; gap: 8px; }
  .study-lab { grid-template-columns: 1fr; }
  .study-block, .study-block.wide { grid-column: 1; padding: 35px 25px; }
  .flashcards { grid-template-columns: 1fr; }
  .questions, .vocabulary { grid-template-columns: 1fr; }
  .source-note { flex-direction: column; }
}

@media print {
  .archive-nav, footer, .profile-actions, .send-profile { display: none !important; }
  .profile-hero { min-height: 0; color: var(--ink); background: white; }
  .profile-symbol { color: var(--ink); border-color: var(--ink); }
  .profile-heading h1 { font-size: 4rem; }
  .profile-life, .profile-lead { color: var(--ink); }
  .profile-facts { color: var(--ink); background: #eee; }
  .document-tabs details { display: block; }
  .study-lab { color: var(--ink); background: white; }
  .study-block > p, .study-block li, .study-intro > p:last-child { color: var(--ink); }
}
