:root {
  --cream: #f4f0e7;
  --paper: #fffdf8;
  --ink: #172521;
  --muted: #66736e;
  --forest: #183c33;
  --forest-deep: #102b25;
  --sage-pale: #e6ede6;
  --gold: #bd8f3c;
  --gold-pale: #ead8ae;
  --clay: #a75b43;
  --line: rgba(23, 37, 33, .16);
  --shadow: 0 18px 52px rgba(16, 43, 37, .11);
  --page: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
.page-wrap { width: var(--page); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 231, .96);
  backdrop-filter: blur(15px);
}
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; width: auto; height: 58px; flex: 0 0 auto; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 19px Georgia, serif; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.home-link { padding: 13px 17px; border: 1px solid var(--line); border-radius: 3px; color: var(--forest); font-size: 12px; font-weight: 800; text-decoration: none; }
.home-link:hover { border-color: var(--forest); background: var(--paper); }

.hero { position: relative; overflow: hidden; padding: clamp(74px, 10vw, 132px) 0 90px; }
.hero::after { position: absolute; z-index: -1; top: -360px; right: -300px; width: 760px; height: 760px; border: 1px solid rgba(24, 60, 51, .13); border-radius: 50%; content: ""; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .75fr); align-items: end; gap: clamp(45px, 8vw, 110px); }
.eyebrow { margin: 0 0 16px; color: var(--clay); font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 0; font: 500 clamp(58px, 9vw, 105px)/.88 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
h1 em { color: var(--forest); font-weight: 400; }
.hero-copy > p:first-child { margin: 0; color: var(--muted); font: 400 clamp(17px, 2vw, 20px)/1.72 Georgia, serif; }
.catalog-count { display: inline-block; margin: 25px 0 0; padding-top: 12px; border-top: 2px solid var(--gold); color: var(--forest); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.catalog-section { padding: 82px 0 100px; border-top: 1px solid var(--line); background: rgba(255, 253, 248, .45); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font: 500 clamp(39px, 6vw, 64px)/1.05 Georgia, serif; letter-spacing: -.035em; }
.exam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.exam-card { display: flex; min-height: 475px; flex-direction: column; padding: clamp(28px, 4.5vw, 48px); border: 1px solid var(--line); border-top: 4px solid var(--gold); background: var(--paper); box-shadow: 0 10px 34px rgba(16, 43, 37, .06); transition: transform .18s ease, box-shadow .18s ease; }
.exam-card:nth-child(even) { border-top-color: var(--clay); }
.exam-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.card-number { color: var(--gold); font: 600 14px Georgia, serif; }
.card-kicker { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .15em; text-align: right; text-transform: uppercase; }
.exam-card h3 { max-width: 510px; margin: 44px 0 17px; font: 500 clamp(31px, 4vw, 45px)/1.08 Georgia, serif; letter-spacing: -.025em; }
.card-description { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.68; }
.exam-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; padding: 0; list-style: none; }
.exam-meta li { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 11px; }
.exam-meta strong { color: var(--forest); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: auto; }
.button-primary { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 18px; padding: 0 22px; border-radius: 3px; background: var(--forest); color: white; font-size: 12px; font-weight: 800; text-decoration: none; }
.button-primary:hover { background: var(--forest-deep); }
.button-text { padding: 8px 0; border-bottom: 1px solid var(--gold); color: var(--forest); font-size: 12px; font-weight: 800; text-decoration: none; }

.purpose-band { padding: 58px 0; background: var(--forest); color: white; }
.purpose-band blockquote { margin: 0; font: 400 clamp(27px, 4vw, 45px)/1.3 Georgia, serif; }
.purpose-band cite { display: block; margin-top: 17px; color: var(--gold-pale); font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.site-footer { padding: 42px 0; border-top: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: 12px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-footer p { margin: 4px 0; }
.site-footer strong { color: var(--ink); font: 600 15px Georgia, serif; }
.site-footer a { color: var(--forest); font-weight: 800; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { max-width: 650px; }
  .exam-grid { grid-template-columns: 1fr; }
  .exam-card { min-height: 0; }
}

@media (max-width: 560px) {
  :root { --page: min(100% - 28px, 1160px); }
  .site-header { min-height: 72px; padding: 9px 14px; }
  .brand-logo { height: 48px; }
  .brand strong { font-size: 16px; }
  .home-link { padding: 10px; font-size: 10px; }
  .hero { padding: 65px 0 65px; }
  h1 { font-size: clamp(50px, 17vw, 76px); }
  .catalog-section { padding: 60px 0 70px; }
  .exam-card { padding: 27px 23px 29px; }
  .exam-card h3 { margin-top: 32px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .exam-card { transition: none; }
}
