:root {
  --bg: #f4ecd8;
  --text: #222b1e;
  --accent: #e9b949;
  --border: #6b4a2f;
  --muted: #384732;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(233, 185, 73, 0.28), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "PT Sans", "Noto Sans", sans-serif;
  line-height: 1.55;
}

.page {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  padding: 4.6rem 1.25rem 6.5rem;
}

header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.15;
}

h2 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.lead {
  font-size: 1.15rem;
}

.note,
.hint,
.pkg,
figcaption {
  color: var(--muted);
}

.hint {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  margin: 0 0 1.35rem;
  border: 3px solid var(--border);
  border-radius: 1.25rem;
  background: var(--bg);
  box-shadow: 0 0.7rem 0 rgba(107, 74, 47, 0.18);
}

.screens {
  margin: 1.6rem 0 1.8rem;
}

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
}

figure {
  margin: 0;
}

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 3px solid var(--border);
  border-radius: 1.2rem;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.shot img {
  display: block;
  width: 100%;
  height: 24rem;
  object-fit: cover;
  object-position: top center;
  background: var(--bg);
}

.zoom {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  padding: 0.28rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.04);
}

.shot img {
  transition: transform 160ms ease;
}

.shot:focus-visible {
  outline: 3px solid var(--muted);
  outline-offset: 3px;
}

figcaption {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  text-align: center;
}

.actions {
  text-align: center;
  margin: 0 0 0.55rem;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: var(--accent);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border: 3px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 0.35rem 0 var(--border);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 0.1rem 0 var(--border);
}

.button:focus-visible,
.viewer-close:focus-visible {
  outline: 3px solid var(--muted);
  outline-offset: 3px;
}

.pkg {
  text-align: center;
  font-size: 0.85rem;
  margin: 0;
}

.decor {
  position: absolute;
  pointer-events: none;
  height: auto;
}

.cloud {
  top: 0.6rem;
  left: 0.3rem;
  width: 6rem;
}

.bird {
  top: 0.35rem;
  right: 0.25rem;
  width: 4.8rem;
}

.flowers {
  right: 0.45rem;
  bottom: 0.35rem;
  width: 5.4rem;
}

.viewer {
  width: min(28rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  margin: auto;
  padding: 0 0.7rem 0.7rem;
  overflow: auto;
  border: 3px solid var(--border);
  border-radius: 1.1rem;
  background: var(--bg);
  color: var(--text);
}

.viewer::backdrop {
  background: rgba(34, 43, 30, 0.72);
}

.viewer-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  padding-top: 0.7rem;
  background: var(--bg);
}

.viewer-bar p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.viewer-close {
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.viewer-pic {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  background: var(--bg);
}

@media (max-width: 40rem) {
  .page {
    padding-top: 4.2rem;
  }

  .shots {
    grid-template-columns: 1fr;
  }

  .shot img {
    height: 28rem;
  }

  .cloud,
  .bird {
    width: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot img,
  .button {
    transition: none;
  }
}
