:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #25241d;
  background-color: #fff3bd;
  background-image: repeating-linear-gradient(to bottom, transparent 0 2.125rem, #83aeca48 2.125rem calc(2.125rem + 1px));
  --ink: #25241d;
  --muted: #615b4e;
  --line: #71899a66;
}

*, *::before, *::after { box-sizing: border-box; }

body, h1, p, figure { margin: 0; }

.frame {
  width: min(63rem, calc(100% - 5rem));
  margin-inline: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 2.5rem 2.85rem;
  text-align: center;
}

.brand {
  position: relative;
  width: 10.5rem;
  margin-bottom: .75rem;
  isolation: isolate;
}

.brand::before {
  position: absolute;
  inset: 19% 17% 10% 11%;
  z-index: -1;
  background: #f4db83;
  box-shadow: 0 3px 9px #5f4b2622;
  content: '';
  transform: rotate(-14deg) translate(-9%, 2%);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 7px 10px #2c2b3f27);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 2.625rem);
  font-weight: 750;
  line-height: 1.06;
}

.creator {
  margin: .3rem 0 1.25rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
  text-underline-offset: .2em;
}

.creator:hover { color: var(--ink); }

.download {
  min-width: 9rem;
  padding: .7rem 1.1rem;
  border-radius: .45rem;
  background: var(--ink);
  color: #fffdf5;
  font-weight: 680;
  line-height: 1.4;
  text-decoration: none;
}

.download:hover { background: #454235; }

.creator:focus-visible, .download:focus-visible {
  outline: 2px solid #354c95;
  outline-offset: 4px;
}

.build-info {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.app-frame { position: relative; }

.app-screen {
  display: block;
  overflow: hidden;
  background: #e1e3eb;
  border: 1px solid #aeb6cc;
  border-radius: .75rem;
  box-shadow: 0 12px 35px #27334e19, 0 2px 5px #27334e13;
}

.app-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.pencil {
  position: absolute;
  top: 32%;
  right: -1.35rem;
  width: .75rem;
  height: 9rem;
  border-radius: .18rem .18rem 0 0;
  background:
    linear-gradient(#c68277 0 9%, #c2ae7b 9% 16%, transparent 16%),
    linear-gradient(90deg, #50654e 0 24%, #829777 24% 76%, #5a6e55 76%);
  filter: drop-shadow(3px 3px 3px #423a2b38);
  transform: rotate(13deg);
}

.pencil::after {
  position: absolute;
  top: 100%;
  width: 100%;
  height: 1.1rem;
  background: linear-gradient(#d6b78a 0 70%, #3d3b32 70%);
  clip-path: polygon(0 0, 100% 0, 52% 100%, 48% 100%);
  content: '';
}

.features {
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
  padding-block: clamp(3.75rem, 8vw, 6.25rem) 4rem;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 28%);
  align-items: center;
  max-width: 58rem;
  width: 100%;
  margin-inline: auto;
}

.feature-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #373a4b33;
  border-radius: .65rem;
  box-shadow: 0 5px 16px #362e1f24;
}

.feature--finder .feature-image {
  width: min(100%, 34rem);
  justify-self: end;
}

.sticky-note {
  position: relative;
  margin-left: -1.1rem;
  padding: 1.45rem clamp(1rem, 2.6vw, 1.65rem) 1.35rem;
  background: linear-gradient(#f5d46f, #ffe287 22%, #ffe892);
  box-shadow: 2px 7px 13px #6b552631, 0 1px 2px #6b552624;
  line-height: 1.55;
  word-break: keep-all;
  transform: rotate(2deg);
}

.feature--tags .sticky-note { transform: rotate(-2deg); }
.feature--comments .sticky-note { transform: rotate(1.5deg); }

.sticky-note::before {
  position: absolute;
  top: -.55rem;
  left: calc(50% - 1.6rem);
  width: 3.2rem;
  height: 1.05rem;
  background: #fff8d5aa;
  content: '';
  transform: rotate(-6deg);
}

.sticky-note h2 {
  margin: 0 0 .48rem;
  font-size: 1.25rem;
  letter-spacing: -.035em;
}

.sticky-note p { letter-spacing: -.025em; }
.sticky-note q { color: #4b4028; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1rem;
  border-top: 1px solid var(--line);
  padding-block: 1rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

@media (max-width: 50rem) {
  .frame { width: calc(100% - 3rem); }
  .pencil { display: none; }
}

@media (max-width: 38rem) {
  .hero { padding-block: 2rem; }
  .brand { width: 9rem; }
  .features { padding-bottom: 3rem; }
  .feature { grid-template-columns: 1fr; }
  .sticky-note {
    justify-self: end;
    max-width: calc(100% - 1rem);
    margin: -.45rem .55rem 0 0;
  }
}
