:root {
  color-scheme: light;
  --paper: #fffaf3;
  --ink: #2e2620;
  --muted: #776c62;
  --line: rgba(80, 57, 42, 0.16);
  --rose: #d86f74;
  --leaf: #5e8b74;
  --sun: #f1bd5a;
  --shadow: 0 18px 44px rgba(52, 38, 26, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(241, 189, 90, 0.18), transparent 32rem),
    linear-gradient(180deg, #f7eadb 0%, var(--paper) 46%, #f1f7ef 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button {
  font: inherit;
}

.app-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  background: #e7d8c8;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 20, 16, 0.08) 0%, rgba(26, 20, 16, 0.12) 38%, rgba(26, 20, 16, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 56%);
}

.hero__content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 34px;
  color: #fffaf5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 13vw, 58px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 18em;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.7;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 18px 18px;
}

.label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 700;
}

.intro h2 {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.pill-button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 22px rgba(46, 38, 32, 0.18);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 26px;
}

.photo-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #eadbca;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.photo-card:nth-child(5n + 1),
.photo-card:nth-child(5n + 4) {
  grid-row: span 2;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(24, 18, 14, 0.52));
  opacity: 0.86;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 420ms ease;
}

.photo-card:nth-child(5n + 1) img,
.photo-card:nth-child(5n + 4) img {
  aspect-ratio: 3 / 5;
}

.photo-card:active img {
  transform: scale(1.035);
}

.photo-card span {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 10px;
  z-index: 1;
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 58px 14px 80px;
  background: rgba(21, 16, 13, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.viewer__image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.viewer__close,
.viewer__nav {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
  color: white;
  backdrop-filter: blur(14px);
}

.viewer__close {
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
}

.viewer__nav {
  top: 50%;
  width: 44px;
  height: 44px;
  font-size: 36px;
  transform: translateY(-50%);
}

.viewer__nav--prev {
  left: 10px;
}

.viewer__nav--next {
  right: 10px;
}

.viewer__caption {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: max(22px, env(safe-area-inset-bottom));
  color: #fffaf3;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 720px) {
  body {
    background: #efe2d4;
  }

  .app-shell {
    margin-block: 28px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(52, 38, 26, 0.22);
  }
}
