* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font-family: system-ui, "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #23473b;
  background: #1d4034;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #0e302f80, #123b3038 55%, #0d292c91),
    url("assets/forest-library-v1.webp") center / cover no-repeat;
}
a { color: inherit; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: 1rem;
  z-index: 2;
  padding: .75rem 1rem;
  border-radius: .5rem;
  color: #173e30;
  background: #fffdf4;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
main {
  width: min(100% - 3rem, 72rem);
  margin: auto;
  padding: clamp(2.5rem, 8vh, 6rem) 0;
}
.welcome { margin-bottom: 2rem; color: #fffdf4; text-shadow: 0 2px 6px #102e2b; }
.brand { display: flex; gap: .65rem; align-items: center; margin: 0; font-size: 1rem; font-weight: 700; }
.brand img { flex: none; }
h1 { margin: .9rem 0 .65rem; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.3; letter-spacing: .025em; }
.intro { margin: 0; font-size: 1.125rem; line-height: 1.8; }
.versions h2 { margin: 0 0 .9rem; color: #fffdf4; font-size: 1.25rem; text-shadow: 0 2px 6px #102e2b; }
.publisher-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.publisher-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d0ddc5;
  border-radius: 1.2rem;
  background: #fffdf4;
  text-decoration: none;
  box-shadow: 0 10px 28px #0f302b26;
}
.publisher-cover { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.publisher-copy { padding: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.publisher-copy h3 { margin: 0; font-size: 1.625rem; line-height: 1.4; }
.enter { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .8rem; border-radius: .55rem; color: #fffdf4; background: #285b46; font-weight: 700; }
.publisher-card:hover { border-color: #fcdfa0; box-shadow: 0 10px 30px #0b302b50; }
.publisher-card:hover .enter { background: #174b37; }
a:focus-visible { outline: 4px solid #ffe098; outline-offset: 5px; }
footer { margin-top: auto; padding: 1.2rem 1.5rem; color: #fffdf4; background: #102d2bb8; text-align: center; font-size: .875rem; line-height: 1.8; }
@media (max-width: 760px) {
  main { width: min(100% - 2rem, 34rem); padding: 2.25rem 0; }
  .welcome { margin-bottom: 1.5rem; }
  .publisher-cards { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .publisher-card { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); }
  .publisher-cover { height: 100%; min-height: 150px; aspect-ratio: auto; }
  .publisher-copy { padding: 1rem; flex-direction: column; align-items: flex-start; justify-content: center; gap: .65rem; }
  .publisher-copy h3 { font-size: 1.5rem; }
}
@media (forced-colors: active) {
  body::before { display: none; }
  .publisher-card { border: 2px solid LinkText; }
  .enter { border: 1px solid LinkText; }
  footer { color: CanvasText; background: Canvas; }
}
@media print {
  body::before, .skip-link { display: none; }
  :root { background: white; color: black; }
  .welcome, .versions h2, footer { color: black; text-shadow: none; background: white; }
  main { width: 100%; padding: 0; }
  .publisher-card { box-shadow: none; break-inside: avoid; }
}
