:root {
  color-scheme: light;
  --paper: #f7f6ef;
  --surface: #fffefa;
  --ink: #1d342c;
  --muted: #586a60;
  --forest: #214d3d;
  --lime: #dbe7a9;
  --line: #dce1d4;
  --shadow: 0 18px 50px rgba(31, 57, 43, .07);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
.shell { width: min(100% - 48px, 1160px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; top: -60px; left: 16px; z-index: 10; padding: 10px 16px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #a4bb5e; outline-offset: 4px; }

.masthead { border-bottom: 1px solid var(--line); background: rgba(255, 254, 250, .78); }
.masthead-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.05rem; font-weight: 600; letter-spacing: -.035em; }
.brand strong { font-weight: 800; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--lime); }
.brand-mark svg { width: 29px; }
.masthead-note { color: var(--muted); font-size: .85rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(36px, 6vw, 96px); align-items: center; padding-block: clamp(54px, 7vw, 104px) clamp(70px, 8vw, 118px); }
.eyebrow { margin: 0 0 15px; color: var(--forest); font-size: .76rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow-line { width: 24px; height: 1px; background: currentColor; }
h1, h2, h3, p { overflow-wrap: break-word; }
.hero h1 { max-width: 680px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 5.7vw, 5.7rem); font-weight: 400; letter-spacing: -.065em; line-height: 1.04; }
.hero h1 em { color: var(--forest); font-weight: 400; }
.hero-description { max-width: 560px; margin: 26px 0 0; color: var(--muted); font-size: clamp(1.03rem, 1.5vw, 1.17rem); line-height: 1.75; }
.hero-stats { display: flex; align-items: center; gap: 32px; margin-top: 38px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 400; line-height: 1.2; }
.hero-stats span:not(.stat-divider) { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.stat-divider { width: 1px; height: 44px; background: var(--line); }

.hero-photo { position: relative; width: min(100%, 420px); margin: 0; justify-self: end; }
.hero-photo::before { content: ""; position: absolute; inset: 7% 0 14% 7%; border: 1px solid #b8c6a4; border-radius: 50% 50% 43% 57% / 54% 40% 60% 46%; transform: rotate(8deg); }
.hero-photo-frame { position: relative; overflow: hidden; aspect-ratio: 1; border: 8px solid var(--surface); border-radius: 50% 50% 43% 57% / 54% 40% 60% 46%; background: #dbe7d0; box-shadow: 0 20px 55px rgba(31, 57, 43, .16); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-photo figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--muted); font-size: .78rem; letter-spacing: .015em; }
.hero-photo figcaption span:first-child { color: var(--forest); font-weight: 700; }

.collection { padding-bottom: 96px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.15; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: .92rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 24px 14px; }
.search-field { position: relative; flex: 1; max-width: 400px; }
.search-field svg { position: absolute; top: 50%; left: 16px; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-field input, .sort-field select { min-height: 45px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.search-field input { width: 100%; padding: 10px 15px 10px 45px; }
.search-field input::placeholder { color: #75847b; }
.sort-field { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.sort-field select { padding: 9px 37px 9px 13px; cursor: pointer; }
.catalogue-status { min-height: 22px; margin: 0 0 14px; color: var(--muted); font-size: .83rem; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.report-card { display: flex; flex-direction: column; min-height: 250px; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 2px 5px rgba(31, 57, 43, .025); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.report-card:hover { transform: translateY(-4px); border-color: #aebfac; box-shadow: var(--shadow); }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.card-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: #eaf0df; color: var(--forest); }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-number { color: #88978c; font-family: Georgia, "Times New Roman", serif; font-size: .9rem; }
.card-date { margin: 24px 0 6px; color: var(--forest); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.report-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 400; letter-spacing: -.03em; line-height: 1.2; }
.card-session { margin: 8px 0 22px; color: var(--muted); font-size: .86rem; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--forest); font-size: .87rem; font-weight: 700; }
.card-bottom .arrow { font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.report-card:hover .arrow { transform: translateX(3px); }
.empty-state { padding: 55px 20px; border: 1px dashed #bdcbb9; border-radius: 16px; text-align: center; }
.empty-icon { color: var(--forest); font-size: 2.2rem; }
.empty-state h3 { margin: 8px 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; }
.empty-state p { margin: 0; color: var(--muted); }

.viewer { padding-block: 42px 72px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--forest); font-size: .88rem; font-weight: 700; text-decoration: none; }
.back-link:hover, .direct-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.back-link span { font-size: 1.25rem; }
.viewer-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 28px 0 24px; }
.viewer-heading .eyebrow { margin-bottom: 6px; }
.viewer h1, .error-view h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.15; }
.viewer-details { margin: 9px 0 0; color: var(--muted); font-size: .9rem; }
.direct-link { flex: none; padding-bottom: 5px; color: var(--forest); font-size: .86rem; font-weight: 700; text-decoration: none; }
.direct-link span { margin-left: 3px; }
.report-frame-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
#report-frame { display: block; width: 100%; height: max(750px, calc(100vh - 205px)); border: 0; background: white; }
.error-view { min-height: 65vh; padding-block: 110px; }
.error-view p:not(.eyebrow) { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 25px; }
.photo-credit { text-align: right; }
.photo-credit a { text-decoration-color: #a6b9a5; text-underline-offset: 3px; }
.photo-credit a:hover { color: var(--forest); text-decoration-color: currentColor; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-block: 60px 75px; }
  .hero-photo { width: min(72%, 340px); justify-self: center; }
  .section-heading > p { display: none; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 32px, 1160px); }
  .masthead-inner { min-height: 68px; }
  .masthead-note { display: none; }
  .hero { gap: 36px; padding-block: 48px 60px; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .hero-photo { width: min(80%, 280px); }
  .hero-stats { gap: 22px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-field { max-width: none; }
  .sort-field { justify-content: space-between; }
  .collection { padding-bottom: 65px; }
  .viewer { padding-block: 30px 48px; }
  .viewer-heading { align-items: start; flex-direction: column; }
  #report-frame { height: 76vh; min-height: 620px; }
  .footer-inner { flex-direction: column; gap: 3px; }
  .photo-credit { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .report-card, .card-bottom .arrow { transition: none; }
}
