:root {
  color-scheme: light;
  --paper: #fbfaf5;
  --white: #fffdf9;
  --ink: #222c23;
  --muted: #535d50;
  --green: #294c38;
  --green-dark: #1c3829;
  --line: #e6e5d9;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

main { flex: 1; }

p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #95752d;
  outline-offset: 4px;
}

button, input { font: inherit; }

.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 2;
  inset: 10px auto auto 12px;
  transform: translateY(-200%);
  background: var(--white);
  padding: 8px 12px;
}

.skip-link:focus { transform: none; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }

.header-inner, .footer-inner, .header-inner nav, .brand {
  display: flex;
  align-items: center;
}

.header-inner { min-height: 77px; justify-content: space-between; gap: 14px; }

.brand {
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.045em;
  gap: 11px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-name { font-weight: 550; }

.brand-mark {
  display: block;
  width: 37px;
  height: 37px;
  flex: none;
}

.header-inner nav { gap: 29px; }

.header-inner nav a {
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-resources { color: var(--muted); }
.header-inner .nav-resources:hover { text-decoration: underline; }

.nav-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 4px 16px;
  gap: 10px;
  border: 1px solid #cfd8c8;
  border-radius: 7px;
}

.nav-signin:hover { background: #eef1e7; }

.hero {
  background:
    radial-gradient(ellipse at 93% 40%, #e9efdf 0, transparent 60%),
    radial-gradient(ellipse at 10% 0%, #faf1e1 0, transparent 58%),
    #f7f6ed;
  border-bottom: 1px solid #e8e8da;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(38px, 7vw, 110px);
  padding-block: 59px 62px;
}

.eyebrow, .format {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow span {
  width: 20px;
  height: 1px;
  background: #93692c;
}

.hero h1 {
  margin-block: 17px 19px;
  font: 400 clamp(51px, 5.5vw, 85px)/.99 var(--serif);
  letter-spacing: -.065em;
}

.hero h1 em { color: var(--green); font-weight: inherit; }

.hero-copy > p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.62;
}

.browse-link, .resource-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.browse-link { margin-top: 19px; }
.browse-link:hover, .resource-link:hover { text-decoration: underline; }

.down-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #c9d3c4;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.signin-card {
  scroll-margin-top: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid #e2e5d9;
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 10px 30px #2f472113;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 10px;
  background: #e9eee2;
  color: var(--green);
  margin-bottom: 14px;
}

.lock {
  position: relative;
  display: block;
  margin-top: 6px;
  width: 13px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.lock::before {
  position: absolute;
  content: '';
  width: 8px;
  height: 7px;
  left: 1px;
  bottom: 8px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.signin-card h1, .signin-card h2 {
  font: 400 clamp(31px, 3vw, 37px)/1.13 var(--serif);
  letter-spacing: -.045em;
}

.signin-intro { margin-top: 7px; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.signin-card form { margin-top: 20px; }

.signin-card label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; }

.signin-card input[type='email'] {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #d1d7cb;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.signin-card input::placeholder { color: #6a7367; }

.remember-device {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.remember-device input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); cursor: pointer; }
.remember-device label { margin: 0; font-size: .9375rem; cursor: pointer; }
.remember-device p { grid-column: 2; color: var(--muted); font-size: .875rem; }

.button {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
}

.signin-card input + .button { margin-top: 11px; }
.button:hover { background: var(--green-dark); }
.button:disabled { opacity: .68; cursor: default; }
.button span { font-size: 17px; line-height: 1; }
.form-note { margin-top: 11px; color: var(--muted); text-align: center; font-size: 13px; }

.notice {
  margin-top: 14px;
  border-radius: 6px;
  padding: 9px 11px;
  background: #edf1e6;
  color: var(--green-dark);
  font-size: 14px;
}

.collection { padding-block: 46px 63px; scroll-margin-top: 8px; }
.collection-heading { margin-bottom: 22px; }
.collection h2 { font: 400 clamp(32px, 3.5vw, 47px)/1.18 var(--serif); letter-spacing: -.052em; }
.resources { display: grid; gap: 22px; }

.resource-card {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  position: relative;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  overflow: hidden;
}

.resource-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(25px, 4vw, 52px);
}

.format {
  padding: 5px 9px;
  border-radius: 4px;
  background: #edf0e4;
  font-size: 10px;
  letter-spacing: .12em;
}

.resource-card h3 {
  margin-top: 13px;
  font: 400 clamp(31px, 3.1vw, 44px)/1.12 var(--serif);
  letter-spacing: -.052em;
}

.resource-copy > p:not(.format) { margin-top: 10px; color: var(--muted); max-width: 39ch; }
.resource-link { margin-top: 14px; }
.resource-link > span[aria-hidden] { font-size: 17px; }
.resource-link::after { content: ""; position: absolute; z-index: 1; inset: 0; }
.resource-link:focus-visible { outline: none; }
.resource-link:focus-visible::after { outline: 3px solid #95752d; outline-offset: -3px; }
.resource-copy a:not(.resource-link) { position: relative; z-index: 2; }
.resource-access { font-size: .9rem; min-height: 36px; display: inline-flex; align-items: center; }
.access-links { display: flex; flex-direction: column; align-items: flex-start; }
.access-links .browse-link + .browse-link { margin-top: 0; }

.resource-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 390px;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  background: #e8d8bd;
}

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 71px; gap: 14px; justify-content: space-between; font-size: 13px; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

.terms-page { max-width: 68ch; padding-block: clamp(36px, 7vw, 72px); }
.terms-page h1 { margin-bottom: 14px; font: 400 clamp(38px, 6vw, 58px)/1.1 var(--serif); letter-spacing: -.04em; }
.terms-page h2 { margin-block: 28px 6px; font: 400 25px/1.25 var(--serif); }

.centered-page {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 45px 20px;
  background: linear-gradient(105deg, #faf1e1, #e9efdf);
}

.centered-page .signin-card { width: min(100%, 430px); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .shell { width: calc(100% - 48px); }
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; }
  .hero h1 { font-size: clamp(40px, 6vw, 56px); }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 65px; }
  .header-inner nav { gap: 0; }
  .nav-resources { display: none; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-signin { padding-inline: 11px; min-height: 40px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 36px 37px; gap: 24px; }
  .hero h1 { font-size: clamp(43px, 10vw, 61px); }
  .browse-link { margin-top: 10px; }
  .collection { padding-block: 34px 42px; }
  .collection-heading { margin-bottom: 17px; }
  .resource-card { grid-template-columns: 1fr; }
  .resource-card img { grid-row: 1; aspect-ratio: 1.65; min-height: 0; }
  .footer-inner { min-height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
