:root {
  --ink: #2B2622;
  --ink-soft: #4F4842;
  --page: #FFFBF7;
  --band: #FFF1E6;
  --gutter: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Baloo 2', system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}

h1,
h2,
p,
figure,
ol {
  margin: 0;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px var(--gutter);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.site-header img {
  border-radius: 12px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) var(--gutter) clamp(40px, 5vw, 64px);
}

.hero-text {
  flex: 1 1 400px;
  min-width: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(50px, 7.2vw, 96px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 26em;
  margin-bottom: 30px;
  font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-soft);
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 4px 36px 0;
  border-radius: 20px;
  font-size: 23px;
  font-weight: 700;
  color: #1A0D00;
  text-decoration: none;
  background: #E8620C;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 80ms ease, box-shadow 80ms ease;
}

.download:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--ink);
}

.download:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--ink);
}

.download:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 10px;
}

.meta {
  margin-top: 22px;
  max-width: 40em;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-soft);
}

.map {
  flex: 1.25 1 480px;
  min-width: 0;
  height: clamp(360px, 44vw, 580px);
  overflow: hidden;
  border-radius: 28px;
  background: #F6EBE0;
}

.map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.frames {
  padding: clamp(24px, 3vw, 40px) clamp(14px, 3vw, 40px) clamp(48px, 6vw, 72px);
}

.frames h2,
.install h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
}

.frames h2 {
  max-width: 16em;
  margin: 0 auto 32px;
  text-align: center;
}

.frame-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 28px);
}

.frame {
  width: clamp(160px, 16.6vw, 228px);
  padding: 12px 12px 8px;
  border-radius: 18px;
  background-color: var(--paper);
  transform: rotate(var(--tilt));
  box-shadow: 0 8px 20px rgba(43, 38, 34, 0.16);
}

.dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.75) 3px, transparent 3.5px);
  background-size: 16px 16px;
}

.stripes {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.55) 0 7px, transparent 7px 16px);
}

.checks {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 50%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.45) 50%, transparent 50%);
  background-size: 22px 22px;
}

.photo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  border-radius: 10px;
  background: var(--photo);
}

.photo svg {
  display: block;
  flex: none;
  width: 92%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: -14%;
}

figcaption {
  padding-top: 8px;
  font-family: 'Caveat', cursive;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  padding: clamp(48px, 6vw, 80px) var(--gutter);
  background: var(--band);
}

.features h2 {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 16px 0;
  border-radius: 14px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  background: var(--label);
}

.features p {
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.install {
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}

.install h2 {
  margin-bottom: 32px;
}

.install ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.install li {
  padding: 24px;
  border-radius: 24px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  background: var(--card);
  counter-increment: step;
}

.install li::before {
  content: counter(step);
  display: block;
  margin-bottom: 8px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .download {
    transition: none;
  }
}
