:root {
  --sand-50: #f7f2eb;
  --sand-100: #efe7dc;
  --sand-200: #e4d8c8;
  --taupe: #b7a492;
  --taupe-dark: #8b765e;
  --brown: #3f3026;
  --brown-soft: rgba(63, 48, 38, 0.82);
  --line: rgba(78, 57, 42, 0.24);
  --footer-bg: rgba(247, 242, 235, 0.88);
  --footer-border: rgba(78, 57, 42, 0.14);
  --max-content: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--sand-100);
}

body {
  margin: 0;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--sand-100);
}

.page-shell {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
  background: var(--sand-50);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  transform: scale(1.01);
}

.page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(247, 242, 235, 0.26) 0%, rgba(247, 242, 235, 0.08) 28%, rgba(247, 242, 235, 0.08) 65%, rgba(247, 242, 235, 0.34) 100%),
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.38), transparent 40%),
    linear-gradient(90deg, rgba(247, 242, 235, 0.20), rgba(247, 242, 235, 0.12));
}

.site-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.7rem) clamp(1.4rem, 7vw, 7rem) 0;
}

.brand {
  color: var(--brown);
  text-decoration: none;
  font-size: clamp(2.8rem, 3.4vw, 3.8rem);
  letter-spacing: 0.015em;
  font-weight: 400;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}

.header-rule {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  justify-self: end;
}

.header-rule::before {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent 0%, var(--line) 10%, var(--line) 100%);
}

.header-rule span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--taupe-dark);
  box-shadow: 0 0 0 3px rgba(142,121,98,0.08);
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 7vw, 7rem) clamp(8rem, 20vh, 12rem);
}

.hero-copy {
  width: min(100%, var(--max-content));
  text-align: center;
  transform: translateY(-3vh);
}

.site-footer {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  min-height: clamp(6rem, 10vh, 8rem);
  padding: 1.3rem 1.5rem;
  text-align: center;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  backdrop-filter: blur(8px);
}

.site-footer p {
  margin: 0;
  color: var(--brown-soft);
  font-size: clamp(0.7rem, 1.05vw, 0.86rem);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .site-header {
    padding-inline: 1.35rem;
  }

  .header-rule {
    max-width: none;
  }

  .hero {
    padding: 4.8rem 1.5rem 10rem;
  }

  .hero-copy {
    transform: translateY(-1.5vh);
  }

  .page-shell::before {
    background-position: right center;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 1.15rem;
    gap: 1rem;
  }

  .hero {
    padding-top: 5rem;
    padding-bottom: 9rem;
  }

  .page-shell::before {
    background-position: right center;
    transform: scale(1.035);
  }

  .page-shell::after {
    background:
      linear-gradient(180deg, rgba(247, 242, 235, 0.35) 0%, rgba(247, 242, 235, 0.13) 32%, rgba(247, 242, 235, 0.13) 64%, rgba(247, 242, 235, 0.40) 100%),
      linear-gradient(90deg, rgba(247, 242, 235, 0.14), rgba(247, 242, 235, 0.10));
  }

  .site-footer {
    min-height: 7rem;
    padding: 1.15rem 1rem;
  }

  .site-footer p {
    font-size: 0.75rem;
  }
}

@media (max-width: 390px) {
  .site-header {
    padding-inline: 1.1rem;
  }

  .header-rule::before {
    background: var(--line);
  }

  .hero {
    padding-inline: 1.1rem;
  }

  .page-shell::before {
    background-position: right center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}