/* ===== Home page ===== */
html.page-home {
  --redwood-image: url("../img/backgrounds/redwood-afternoon.jpg");
  min-height: 100vh;
  background:
    linear-gradient(to bottom, #2116108c, transparent 13rem),
    radial-gradient(ellipse clamp(22rem, 44vw, 42rem) 25rem at 50% 24rem,
      #211a15be 10%, #251a1390 56%, #251a132e 85%, transparent),
    var(--redwood-image) center top / max(100%, 64rem) repeat-y #563522;
}

html.page-home body {
  box-sizing: border-box;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  padding: clamp(1rem, 4vw, 2rem);
  color: white;
}

.page-home :is(h1, .tagline) {
  text-shadow: 0 1px 3px #1b100b, 0 2px 9px #1b100b;
}

.page-home .pcb-recess {
  --recess-rim: clamp(0.45rem, 1.15vw, 0.9rem);
  position: relative;
  box-sizing: border-box;
  width: min(100%, calc(960px + 2 * var(--recess-rim)));
  padding: var(--recess-rim);
  border-radius: 1.35rem 1.1rem 1.25rem 1rem;
  background:
    linear-gradient(165deg, #26160fe8, #472a1cc4 58%, #8f5433a6),
    var(--redwood-image) center 28% / max(100%, 64rem) #3d2619;
  box-shadow:
    inset 0 4px 9px #180d09e0,
    inset 3px 0 7px #1b0d0899,
    inset 0 -1px 1px #e0a56e77,
    0 1px 1px #e7a66e66;
}

.page-home .pcb-recess::after {
  position: absolute;
  z-index: 1;
  inset: var(--recess-rim);
  border-radius: 0.62rem;
  box-shadow: inset 0 2px 4px #190e0a80, 0 0 0 1px #f0be866b;
  content: "";
  pointer-events: none;
}

.page-home img.hero-pcb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  filter: brightness(1.08);
  border-radius: 0.62rem;
}

.page-home h1 {
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 0.45em;
}

.page-home h1 span {
  display: inline-block;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0.06em;
}

.page-home area {
  cursor: pointer;
}

.page-home .highlight {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 2px solid #00ffff;
  border-radius: 8px;
  box-shadow: 0 0 8px #00ffff;
  display: none;
}

.page-home .tagline {
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 1.1em;
  margin: 0 0 1.25rem;
  color: #fff3e2;
}
