:root {
  --accent: #3fcf8e;
  color-scheme: dark;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: #eaf0ec;
  background: #070d0a;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; }
::selection { background: rgba(63, 207, 142, .28); }
a { color: #85d9aa; text-underline-offset: 4px; }
a:hover { color: #eaf0ec; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(110% 80% at 50% -15%, #11251a 0%, #09130d 47%, #070d0a 100%);
}

main, .site-footer { position: relative; z-index: 2; width: min(960px, calc(100% - 48px)); margin: 0 auto; }
main { flex: 1; padding: 68px 0 80px; }
.page-intro { max-width: 760px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font: 600 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
.intro-copy { max-width: 650px; margin: 22px 0 0; color: #a7b6ad; font-size: 19px; line-height: 1.6; }
.library-status {
  margin-top: 42px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(15, 25, 19, .7);
}
.library-status h2 { margin: 0 0 14px; font-size: clamp(23px, 4vw, 28px); line-height: 1.25; letter-spacing: -.02em; }
.library-status p:not(.eyebrow) { max-width: 650px; margin: 0; color: #a7b6ad; font-size: 16px; line-height: 1.7; }
.library-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 26px; }
.library-actions a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 600; }
.library-actions .primary-link { justify-content: center; padding: 11px 18px; border-radius: 8px; color: #06210f; background: var(--accent); text-decoration: none; }
.library-actions .primary-link:hover { background: #70dfac; }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.guide-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  color: #eaf0ec;
  background: linear-gradient(145deg, rgba(20, 35, 26, .8), rgba(9, 16, 12, .8));
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.guide-card:hover { border-color: #3fcf8e; background-color: #12251a; }
.guide-card .eyebrow { margin-bottom: 28px; }
.guide-card h2 { margin: 0 0 16px; font-size: 27px; line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; }
.guide-card p:not(.eyebrow) { margin: 0 0 28px; color: #a7b6ad; font-size: 16px; line-height: 1.65; }
.guide-card .card-link { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; color: #85d9aa; font-size: 14px; font-weight: 600; }
.guide-list + .library-actions { margin-top: 32px; }
.site-footer { padding: 26px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: #9bac9f; font: 500 11px/1.6 "IBM Plex Mono", monospace; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #9bac9f; text-decoration: none; }
.footer-links a:hover { color: #eaf0ec; }

@media (max-width: 640px) {
  main, .site-footer { width: calc(100% - 32px); }
  main { padding: 38px 0 54px; }
  .intro-copy { font-size: 17px; }
  .library-status { margin-top: 30px; padding: 25px 22px; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 900px) {
  .guide-list { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .guide-card { padding: 26px; }
  .guide-card .eyebrow { margin-bottom: 16px; }
  .guide-card h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card { transition: none; }
}
