:root {
  --ink: #583F10;
  --story-fill: rgba(255, 248, 248, 0.4);
  --page-width: 422px;
  --page-height: 917px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f8efe0;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Zilla Slab", Georgia, serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  background: #f8efe0;
}

.link-page {
  position: relative;
  width: min(100vw, var(--page-width));
  aspect-ratio: 422 / 917;
  overflow: hidden;
  isolation: isolate;
  background: #fff7eb;
  box-shadow: 0 18px 40px rgba(88, 63, 16, 0.16);
}

.page-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}

.brand-title {
  position: absolute;
  top: 2.400%;
  left: 50%;
  width: 58.057%;
  height: 10.033%;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.brand-title svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-title path {
  fill: none;
}

.brand-title text {
  fill: var(--ink);
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 0;
  text-anchor: middle;
}

.brand-mark {
  position: absolute;
  top: 6.434%;
  left: 50%;
  width: 46.682%;
  height: 27.699%;
  object-fit: contain;
  transform: translateX(-50%);
  user-select: none;
  pointer-events: none;
}

.primary-links {
  position: absolute;
  inset: 0;
}

.wood-link {
  position: absolute;
  left: 25.829%;
  width: 47.630%;
  height: 11.014%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink);
  outline: none;
  transform-origin: center;
  transition:
    transform 180ms ease,
    filter 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.wood-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}

.wood-link span,
.elsewhere-heading,
.story-panel h2 {
  position: relative;
  z-index: 1;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  text-align: center;
}

.wood-link span {
  display: block;
  width: 82%;
  padding-top: 4px;
}

.wood-link-shop span {
  padding-top: 5px;
}

.wood-link:hover,
.wood-link:focus-visible {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.06) saturate(1.04) drop-shadow(0 7px 9px rgba(88, 63, 16, 0.2));
}

.wood-link:focus-visible {
  border-radius: 16px;
  box-shadow: 0 0 0 3px rgba(88, 63, 16, 0.24);
}

.wood-link:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.98);
}

.wood-link-shop {
  top: 24.755%;
}

.wood-link-instagram {
  top: 38.495%;
}

.wood-link-pinterest {
  top: 47.219%;
}

.wood-link-facebook {
  top: 55.834%;
}

.elsewhere-heading {
  position: absolute;
  top: 38.059%;
  left: 0;
  width: 100%;
}

.story-panel {
  position: absolute;
  top: 67.503%;
  left: 7.109%;
  width: 86.019%;
  height: 30.752%;
  padding: 14px 8px 12px;
  border-radius: 5px;
  background: var(--story-fill);
  text-align: center;
  overflow: hidden;
}

.story-panel h2 {
  margin: 0 0 9px;
}

.story-copy {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--ink);
}

.story-copy p {
  margin: 0 0 10px;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.heart {
  color: #e02821;
}

@media (max-width: 400px) {
  .story-panel {
    padding: 8px 7px;
  }

  .story-panel h2 {
    margin-bottom: 5px;
  }

  .story-copy {
    font-size: 11.25px;
    line-height: 1.04;
  }

  .story-copy p {
    margin-bottom: 7px;
  }
}

@media (max-width: 360px) {
  .story-panel {
    padding: 4px 6px;
  }

  .story-panel h2 {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .story-copy {
    font-size: 9.8px;
    line-height: 0.98;
  }

  .story-copy p {
    margin-bottom: 3px;
  }
}

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