:root {
  --pine: #304638;
  --pine2: #415c49;
  --cream: #f8f5ee;
  --paper: #fffdf8;
  --red: #9a5547;
  --gold: #b99860;
  --ink: #29352e;
  --muted: #6f7c72;
  --line: #e5dfd2;
}

.snow { display: none; }
.hero { background: #304638; }
.hero:before, .hero:after { border-color: rgba(226, 204, 153, .1); }
.hero-art {
  width: min(54vw, 620px);
  height: 410px;
  right: max(calc((100% - 1145px) / 2), 5%);
  top: 48px;
  overflow: hidden;
  border: 1px solid rgba(242, 227, 194, .45);
  border-radius: 5px;
  box-shadow: 0 22px 56px #10201755;
}
.hero-photo { width: 100%; height: 100%; display: block; object-fit: cover; }
.art-caption {
  right: 16px;
  bottom: 13px;
  padding: 9px 12px;
  border-radius: 3px;
  background: #263b2ddd;
  color: #fff9ed;
  font-size: 13px;
  transform: none;
}
.art-caption b { color: #e2c477; font-weight: 400; }
.brand-icon, .closing-star { color: var(--gold); }
.button-light { background: #f3ead6; }
.certificate-card { border-color: #d8c89f; box-shadow: 0 10px 35px #3046380b; }
.access-card { border-color: #d8c89f; }
.pdf-page-sheet { background: #fff; }

@media (max-width: 760px) {
  .topbar { min-height: 72px; height: auto; padding: 10px 17px; gap: 12px; }
  .brand { font-size: 16px; flex: 0 0 auto; }
  .topbar nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .topbar nav a { font-size: 13px; }
  .member-tools { font-size: 12px; }
  .hero { min-height: 735px; padding: 49px 23px 60px; }
  .hero h1 { font-size: clamp(42px, 11vw, 54px); letter-spacing: -1.4px; }
  .hero-text { font-size: 15px; line-height: 1.75; }
  .hero-art { left: 20px; right: 20px; top: 398px; width: auto; height: 265px; transform: none; opacity: 1; }
  .hero-bottom { font-size: 9px; }
  .welcome h2, .section-heading h2 { font-size: 34px; }
  .welcome > p, .subheading { font-size: 14px; }
  .course-progress { font-size: 12px; }
  .lesson-info h3 { font-size: 18px; }
  .lesson-info p, .lesson-footnote { font-size: 12px; line-height: 1.6; }
  .lesson-number, .lesson-tag { font-size: 10px; }
  .file-card { min-height: 86px; }
  .file-meta strong { font-size: 12px; }
  .file-meta small { font-size: 10px; }
  .pdf-viewer-dialog { width: 100vw; max-width: 100vw; }
}

@media (max-width: 410px) {
  .topbar { align-items: flex-start; }
  .topbar nav { gap: 8px 12px; }
  .topbar nav a { font-size: 12px; }
  .member-tools { gap: 4px; }
  .hero { min-height: 710px; }
  .hero-art { top: 395px; height: 245px; }
  .hero-bottom { letter-spacing: .8px; }
  .lesson-card { grid-template-columns: 34% 1fr; }
}

@media (max-width: 480px) {
  .access-card h1 { font-size: 29px; }
  .access-card label { font-size: 13px; }
  .access-card input { height: 48px; font-size: 16px; }
  .primary, .secondary { min-height: 48px; font-size: 13px; }
  .intro, .access-help { font-size: 12px; }
}
