:root {
  --cream: #fbf5e9;
  --paper: #fffaf2;
  --beige: #eadcc6;
  --beige-deep: #d7bea1;
  --brown: #4d382f;
  --brown-soft: #725b4e;
  --rose: #bd8588;
  --rose-soft: #efd8d6;
  --sage: #8b9277;
  --line: rgba(77, 56, 47, 0.16);
  --shadow: 0 26px 70px rgba(89, 63, 49, 0.13);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--brown);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 255, 255, 0.92), transparent 28rem),
    linear-gradient(180deg, var(--cream), #f7efe2 72%, #f2e8d9);
  color: var(--brown);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 3px solid #7a4d50;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--brown);
  color: white;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-mark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-flower {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.72);
  color: var(--rose);
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 2rem);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  opacity: 0.7;
  transform: scaleX(1);
}

.wallpaper-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.92fr);
  min-height: min(720px, calc(100svh - 5.25rem));
  align-items: center;
  gap: clamp(3rem, 7vw, 7.5rem);
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(6rem, 12vw, 10rem);
}

.hero-copy {
  width: 100%;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.wallpaper-hero h1,
.gallery-intro h2,
.favorites-bridge h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.wallpaper-hero h1 {
  font-size: clamp(4.2rem, 7.2vw, 7.15rem);
}

.wallpaper-hero h1 em {
  color: var(--rose);
  font-weight: 400;
}

.hero-intro-block {
  max-width: 38rem;
  margin-top: clamp(2rem, 4.5vw, 3rem);
  padding: 0.3rem 0 0.3rem 1.15rem;
  border-left: 3px solid rgba(189, 133, 136, 0.72);
}

.hero-intro {
  margin: 0;
  color: var(--brown-soft);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.primary-button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.65rem;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  background: var(--brown);
  box-shadow: 0 14px 30px rgba(77, 56, 47, 0.18);
  color: #fffaf2;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-family-portrait {
  position: relative;
  display: block;
  width: min(100%, 31rem);
  aspect-ratio: 0.92;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(77, 56, 47, 0.12);
  border-radius: 48% 48% 2.5rem 2.5rem;
  background: var(--beige);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.hero-family-scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) sepia(0.04) brightness(1.02);
  transition: transform 320ms ease;
}

.hero-family-portrait:hover .hero-family-scene {
  transform: scale(1.012);
}

.hero-family-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(77, 56, 47, 0.08));
  pointer-events: none;
}

.hero-family-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 8px 20px rgba(77, 56, 47, 0.12);
  color: var(--brown-soft);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-style: italic;
}

.gallery-section {
  padding: clamp(5.5rem, 11vw, 9rem) 0 clamp(6rem, 12vw, 10rem);
  border-top: 1px solid var(--line);
}

.gallery-intro {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.gallery-intro h2 {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  direction: rtl;
}

.wallpaper-card {
  min-width: 0;
  direction: ltr;
}

.preview-link,
.placeholder-preview {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 46% 46% 2rem 2rem;
  background: var(--rose-soft);
  box-shadow: var(--shadow);
}

.preview-link {
  aspect-ratio: var(--preview-aspect, 9 / 16);
}

.placeholder-preview {
  aspect-ratio: 9 / 16;
}

.preview-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.preview-link:hover img {
  transform: scale(1.012);
}

.placeholder-preview {
  isolation: isolate;
}

.tone-1 {
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 248, 211, 0.9) 0 5%, transparent 5.3%),
    linear-gradient(160deg, #ecd4d0, #c99fa1 56%, #8b9277);
}

.tone-2 {
  background:
    radial-gradient(circle at 25% 22%, rgba(255, 250, 242, 0.66) 0 6%, transparent 6.3%),
    linear-gradient(160deg, #f1e3ce, #d7bea1 56%, #bd8588);
}

.placeholder-orbit {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 67%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 242, 0.5);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.8rem rgba(255, 250, 242, 0.1), inset 0 0 0 3.6rem rgba(255, 250, 242, 0.07);
  transform: translateX(-50%);
}

.placeholder-flower {
  position: absolute;
  top: 34%;
  left: 50%;
  color: rgba(255, 250, 242, 0.92);
  font-size: clamp(4.5rem, 9vw, 7rem);
  filter: drop-shadow(0 8px 12px rgba(77, 56, 47, 0.12));
  transform: translateX(-50%);
}

.placeholder-label {
  position: absolute;
  right: 0;
  bottom: 10%;
  left: 0;
  color: rgba(255, 250, 242, 0.92);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-style: italic;
  text-align: center;
}

.wallpaper-details {
  padding: 1.15rem 0 0;
}

.wallpaper-details > div {
  min-height: 9.5rem;
}

.wallpaper-meta {
  margin: 0 0 0.55rem;
  color: var(--rose);
  font-size: 0.54rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wallpaper-details h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.65vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.wallpaper-details p:not(.wallpaper-meta) {
  margin: 0.65rem 0 1.25rem;
  color: var(--brown-soft);
  font-size: 0.72rem;
}

.download-button,
.quiet-button {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.download-button {
  width: 100%;
  padding-inline: 0.65rem;
  background: var(--brown);
  box-shadow: 0 14px 30px rgba(77, 56, 47, 0.18);
  color: #fffaf2;
  font-size: 0.6rem;
  letter-spacing: 0.065em;
}

.download-button.is-disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.open-image-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: 0.35rem;
  margin-left: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.save-guide {
  display: flex;
  max-width: 48rem;
  align-items: center;
  gap: 1.2rem;
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  padding: 1.3rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-flower {
  color: var(--rose);
  font-size: 2rem;
}

.save-guide h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.save-guide p {
  margin: 0.2rem 0 0;
  color: var(--brown-soft);
  font-size: 0.85rem;
}

.favorites-bridge {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.favorites-bridge h2 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.favorites-bridge > p {
  max-width: 34rem;
  margin: 1rem 0 1.7rem;
  color: var(--brown-soft);
}

.quiet-button {
  border: 1px solid rgba(77, 56, 47, 0.28);
  background: rgba(255, 250, 242, 0.58);
}

.quiet-button::after {
  margin-left: 0.7rem;
  content: "→";
}

.coming-soon {
  display: block;
  margin-top: 0.8rem;
  color: var(--brown-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0 3rem;
  color: var(--brown-soft);
  font-size: 0.74rem;
}

.footer-brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem 1.2rem;
}

.footer-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.footer-links span[aria-disabled="true"] {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: rgba(77, 56, 47, 0.55);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding-top: 1.2rem;
  }

  .site-nav {
    gap: 0.85rem;
    font-size: 0.66rem;
  }

  .wallpaper-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 3.5rem;
    padding-top: 3.5rem;
  }

  .hero-family-portrait {
    width: min(92%, 31rem);
    justify-self: center;
  }

  .wallpaper-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 1.25rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 4.5rem;
  }

  .brand-mark > span:last-child {
    max-width: 5.2rem;
    line-height: 1.35;
  }

  .site-nav a:first-child {
    display: none;
  }

  .wallpaper-hero {
    padding: 4.6rem 0 6rem;
  }

  .wallpaper-hero h1 {
    font-size: clamp(3.45rem, 15vw, 5.7rem);
  }

  .hero-intro-block {
    margin-top: 2rem;
    padding-left: 0.9rem;
  }

  .hero-family-portrait {
    width: 100%;
    aspect-ratio: 1.08;
    border-radius: 43% 43% 2rem 2rem;
  }

  .hero-family-scene {
    object-position: center 42%;
  }

  .hero-family-caption {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .gallery-section {
    padding: 4.8rem 0 6rem;
  }

  .gallery-intro h2 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .wallpaper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 1rem;
  }

  .wallpaper-card {
    width: 100%;
  }

  .preview-link,
  .placeholder-preview {
    border-radius: 44% 44% 1.8rem 1.8rem;
  }

  .save-guide {
    align-items: flex-start;
    padding-inline: 0.5rem;
  }

  .favorites-bridge {
    padding-block: 5rem;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (max-width: 350px) {
  .brand-mark {
    font-size: 0.98rem;
  }

  .brand-mark > span:last-child {
    max-width: 4.8rem;
  }

  .site-nav {
    gap: 0.35rem;
    font-size: 0.58rem;
    letter-spacing: 0.07em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
