:root {
  --bg: #f6f1e8;
  --ink: #4d3c31;
  --paper: rgba(252, 248, 241, 0.88);
  --paper-edge: rgba(139, 110, 81, 0.08);
  --shadow: 0 1.5rem 3rem rgba(118, 93, 70, 0.12);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)),
    url("./assets/frames/background-texture.jpg") center top / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.55), transparent 35%),
    radial-gradient(circle at bottom center, rgba(255, 255, 255, 0.2), transparent 42%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.home-shell {
  width: min(100% - 1.5rem, 70rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(3rem, 8vw, 5rem);
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.home-brand {
  width: min(100%, 25rem);
  margin: clamp(1rem, 3vw, 2.25rem) auto 0;
}

.home-note {
  position: relative;
  width: min(100%, 36rem);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(2px);
}

.home-note::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08)),
    rgba(255, 249, 242, 0.55);
  mix-blend-mode: screen;
  pointer-events: none;
}

.home-note__tape {
  position: absolute;
  width: 9rem;
  height: 2rem;
  background:
    linear-gradient(rgba(255, 245, 232, 0.38), rgba(232, 207, 182, 0.3)),
    repeating-linear-gradient(
      90deg,
      rgba(198, 171, 144, 0.25) 0,
      rgba(198, 171, 144, 0.25) 0.45rem,
      rgba(241, 229, 215, 0.18) 0.45rem,
      rgba(241, 229, 215, 0.18) 0.9rem
    );
  opacity: 0.9;
  filter: drop-shadow(0 0.4rem 0.4rem rgba(119, 93, 70, 0.08));
}

.home-note__tape--top {
  top: -0.65rem;
  left: clamp(1rem, 7vw, 3rem);
  transform: rotate(-8deg);
}

.home-note__tape--bottom {
  right: clamp(0.75rem, 6vw, 2.5rem);
  bottom: -0.75rem;
  transform: rotate(6deg);
}

.home-kicker {
  position: relative;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(88, 68, 54, 0.7);
}

.home-note h1 {
  position: relative;
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
  font-weight: 500;
}

.home-copy {
  position: relative;
  width: min(100%, 28rem);
  margin: 1rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: rgba(77, 60, 49, 0.88);
}

.home-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13rem;
  margin-top: 1.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #715647, #574236);
  color: #fff9f2;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 0.85rem 1.8rem rgba(87, 66, 54, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.home-link:hover,
.home-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 1rem 2rem rgba(87, 66, 54, 0.22);
  background: linear-gradient(180deg, #7b5f4e, #5d483b);
}

.home-link:focus-visible {
  outline: 2px solid rgba(91, 71, 58, 0.35);
  outline-offset: 4px;
}

.home-preview {
  width: min(100%, 31rem);
  margin: 0 auto;
  filter: drop-shadow(0 1.6rem 2.7rem rgba(111, 87, 67, 0.15));
}

.home-preview img {
  border-radius: 0.5rem;
}

@media (min-width: 64rem) {
  .home-shell {
    grid-template-columns: minmax(0, 30rem) minmax(0, 32rem);
    grid-template-areas:
      "brand brand"
      "note preview";
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }

  .home-brand {
    grid-area: brand;
  }

  .home-note {
    grid-area: note;
    margin: 0 0 0 auto;
    text-align: left;
  }

  .home-copy {
    margin-left: 0;
  }

  .home-preview {
    grid-area: preview;
    margin: 1rem auto 0 0;
    transform: rotate(2deg);
  }
}

@media (max-width: 40rem) {
  body::before {
    background-size: 1400px auto;
  }

  .home-shell {
    width: min(100% - 1rem, 70rem);
  }

  .home-note {
    border-radius: 1rem;
  }

  .home-note__tape {
    width: 7.5rem;
  }

  .home-preview {
    width: min(100%, 24rem);
  }
}
