:root {
  color-scheme: light;
  --ink: #182b2a;
  --muted: #526461;
  --canvas: #faf9f5;
  --paper: #fff;
  --line: #d8ded6;
  --accent: #226553;
  --deep: #102e2b;
  --hero-text: #f7f7ee;
  --hero-muted: #c8d8ce;
  --lime: #d5eb97;
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.55 var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #218c79; outline-offset: 4px; }
.hero :focus-visible { outline-color: var(--lime); }
.shell { width: min(calc(100% - 5rem), 76rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 2; inset: .45rem auto auto .45rem; padding: .7rem; background: var(--paper); }

.site-header { background: var(--canvas); border-bottom: 1px solid #e4e9df; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 4.45rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: .085em; text-decoration: none; }
.wordmark span { border-left: 1px solid #a4b1a8; padding-left: .7rem; font-size: .94rem; font-weight: 500; letter-spacing: 0; }
.site-header nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .25rem 1.1rem; }
.site-header nav a { font-size: .94rem; font-weight: 650; text-underline-offset: .25em; text-decoration-color: transparent; }
.site-header nav a:hover { text-decoration-color: currentColor; }

.hero { background: var(--deep); color: var(--hero-text); }
.hero-inner {
  min-height: 31.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: 3.7rem;
}
.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { margin-top: .65rem; font: 400 clamp(3rem, 7vw, 6.25rem)/.98 var(--serif); letter-spacing: -.059em; }
.hero h1 span { color: var(--lime); }
.intro { max-width: 27rem; margin: 1.45rem 0 1.7rem; color: var(--hero-muted); font-size: 1.125rem; line-height: 1.6; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .55rem .92rem;
  border: 1px solid transparent;
  border-radius: .32rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}
.button.primary { background: var(--deep); color: var(--hero-text); }
.button.primary:hover { background: var(--accent); }
.hero .primary { min-height: 2.9rem; padding-inline: 1.08rem; background: var(--lime); color: var(--deep); }
.hero .primary:hover { background: #e7f5bb; }
.button.secondary { border-color: #9aac9f; background: var(--paper); color: var(--ink); }
.button.secondary:hover { background: #ebf3ec; border-color: var(--accent); }
.text-button { color: var(--accent); font-size: .95rem; font-weight: 700; text-underline-offset: .24em; }
.text-button:hover { text-decoration-thickness: 2px; }
button.text-button { padding: 0; border: 0; background: none; text-decoration: underline; }

.featured { min-width: 0; overflow: hidden; border: 1px solid #4f6b5e; border-radius: .52rem; background: #1c3934; }
.feature-art {
  height: 14.5rem;
  overflow: hidden;
  display: grid;
  justify-items: center;
  padding: 1.5rem 1rem 0;
  background: linear-gradient(135deg, #45645a, #2b4841 70%);
  border-bottom: 1px solid #4f6b5e;
}
.feature-art img { width: min(88%, 20rem); border-radius: .2rem .2rem 0 0; box-shadow: 0 .75rem 2rem #0a232170; }
.feature-info { padding: 1.25rem 1.45rem 1.45rem; }
.feature-info h2 { margin: .35rem 0; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.12 var(--serif); letter-spacing: -.03em; }
.feature-meta { margin-bottom: .75rem; color: var(--hero-muted); font-size: .95rem; }
.feature-action { color: var(--hero-text); }

.library { padding-block: 3.55rem 4.5rem; scroll-margin-top: 1.25rem; }
.library-heading, .library-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.library-heading h2 { font: 400 clamp(2.25rem, 4vw, 3.35rem)/1.1 var(--serif); letter-spacing: -.045em; }
.library-heading p { margin-top: .55rem; color: var(--muted); }
.search-field { position: relative; width: min(100%, 18rem); }
.search-field span {
  position: absolute;
  inset: .94rem auto auto 1rem;
  width: .72rem;
  height: .72rem;
  border: 1.6px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.search-field span::after {
  content: "";
  position: absolute;
  width: .35rem;
  height: 1.5px;
  background: var(--muted);
  inset: .57rem auto auto .47rem;
  transform: rotate(48deg);
}
.search-field input { width: 100%; min-height: 2.75rem; padding: .5rem .8rem .5rem 2.35rem; color: var(--ink); border: 1px solid #a9b6ad; border-radius: .35rem; background: var(--paper); }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.library-toolbar { align-items: center; margin-block: 1.75rem 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: .45rem; flex-wrap: wrap; }
.filters button { min-height: 2.4rem; padding: .3rem .8rem; border: 1px solid #a9b6ad; border-radius: 2rem; background: transparent; color: var(--ink); font-size: .9rem; }
.filters button:hover { background: #e9efe8; }
.filters button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--hero-text); }
.sample-count { flex-shrink: 0; color: var(--muted); font-size: .9rem; }
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sample-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: .42rem; }
.card-cover {
  display: grid;
  justify-items: center;
  overflow: hidden;
  height: 11rem;
  padding: 1.15rem 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #e5ece4;
}
.card-cover:focus-visible { outline-offset: -5px; }
.card-cover:hover { background: #dce8dd; }
.card-cover img { width: min(86%, 14.5rem); box-shadow: 0 .5rem 1.3rem #1b302e30; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.18rem; }
.card-type { color: var(--accent); }
.card-body h3 { margin: .32rem 0 .38rem; font: 400 1.65rem/1.14 var(--serif); letter-spacing: -.025em; }
.card-description { color: var(--muted); margin-bottom: .9rem; }
.card-meta { margin: auto 0 1rem; color: var(--muted); font-size: .9rem; }
.card-actions, .dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.empty-state { padding: 1.5rem 0; color: var(--muted); }

.request-section { background: #edf1e9; border-top: 1px solid var(--line); }
.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  padding-block: 3.6rem;
}
.request-intro h2 { font: 400 clamp(2.25rem, 4vw, 3.35rem)/1.1 var(--serif); letter-spacing: -.045em; }
.request-intro p { max-width: 27rem; margin-top: .75rem; color: var(--muted); }
.request-details { display: grid; justify-items: start; align-content: center; gap: .9rem; max-width: 28rem; }
.request-details p { color: var(--muted); }
.request-details .request-note { font-size: .9rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.2rem; }
.footer-inner p { color: var(--muted); font-size: .9rem; }
dialog { width: min(calc(100% - 2rem), 44rem); max-height: 90dvh; padding: 0; border: 1px solid var(--line); border-radius: .45rem; color: var(--ink); box-shadow: 0 1rem 4rem #102e2b45; }
dialog::backdrop { background: #112a27bf; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; }
.dialog-header .eyebrow { color: var(--accent); }
.dialog-header h2 { margin-top: .25rem; font: 400 clamp(1.4rem, 4vw, 2rem)/1.1 var(--serif); }
.dialog-paper { display: grid; place-items: start center; background: #e5ece4; padding: 1.2rem; }
.dialog-paper img { width: min(100%, 32rem); box-shadow: 0 .3rem 1.2rem #1b302e2b; }
.dialog-actions { position: sticky; bottom: 0; padding: .8rem 1.25rem; border-top: 1px solid var(--line); background: var(--paper); }

@media (max-width: 59rem) {
  .shell { width: calc(100% - 3rem); }
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.6rem; }
  .hero h1 { font-size: clamp(2.9rem, 10vw, 4.6rem); }
  .feature-art { height: 12.5rem; }
  .library { padding-block: 2.5rem 3rem; }
  .request-layout { grid-template-columns: 1fr; padding-block: 2.5rem; }
  .library-heading { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
}
@media (max-width: 31rem) {
  .sample-grid { grid-template-columns: 1fr; }
  .library-toolbar { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .wordmark { gap: .45rem; }
  .wordmark span { padding-left: .45rem; }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; padding-block: 1rem; }
}
