:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --ink: #162535;
  --muted: #455664;
  --blue: #2357a4;
  --line: #d9e0e2;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(100% - clamp(1.5rem, 7vw, 5rem), 68rem); margin-inline: auto; }

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .7rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 4.7rem; align-items: center; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { display: block; border-radius: 50%; }
.brand-text { display: grid; gap: .2rem; line-height: 1.15; }
.brand-tagline { color: var(--muted); font-size: .8125rem; font-weight: 450; }

.scene-grid {
  --scene-spacing: clamp(.65rem, 2.5vw, 1.6rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--scene-spacing);
  padding-block: var(--scene-spacing);
}
.scene {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #fffefa;
}
.scene canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  image-rendering: pixelated;
}
.scene-walk canvas { background: #abd6ec; }
.scene-cook canvas { background: #f4cc9d; }
.scene-hike canvas { background: #a5c9d4; }
.scene-work canvas { background: #303e64; }
.scene-drive canvas { background: #ecd3aa; }
.scene-garden canvas { background: #c8dfb2; }
.scene-fish canvas { background: #afd8db; }
.scene-sunset canvas { background: #bc83a2; }
.scene figcaption {
  position: absolute;
  top: clamp(.35rem, 1.5vw, .75rem);
  left: clamp(.35rem, 1.5vw, .75rem);
  padding: .29rem .55rem;
  clip-path: polygon(2px 0, calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px), 0 2px, 2px 2px);
  background: #202a38eb;
  color: #fff8ed;
  font-size: clamp(.9375rem, 1.5vw, 1.125rem);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.05rem; color: var(--muted); font-size: .8125rem; text-align: center; }
.footer-inner p { margin: 0; }
.footer-inner p + p, .site-icp { margin-top: .4rem; }
.footer-inner a { text-underline-offset: .2em; }
.site-icp { display: inline-block; }

@media (max-width: 560px) {
  .header-inner { min-height: 3.9rem; }
  .brand img { width: 2rem; height: 2rem; }
  .scene-grid { grid-template-columns: minmax(0, 1fr); }
  .scene { border-radius: .4rem; }
}
