:root {
  color-scheme: light;
  --background: #f7f2ec;
  --surface: #fbf8f4;
  --text: #211c19;
  --muted: #74665e;
  --accent: #8f6051;
  --border: rgba(33, 28, 25, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 38% 48%, rgba(143, 96, 81, 0.11) 0%, transparent 38%),
    radial-gradient(circle at 82% 18%, rgba(169, 121, 104, 0.12), transparent 31%),
    radial-gradient(circle at 8% 88%, rgba(33, 28, 25, 0.045), transparent 27%),
    linear-gradient(128deg, rgba(255, 255, 255, 0.56) 0%, transparent 46%),
    var(--background);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0,
    transparent 28px,
    rgba(33, 28, 25, 0.018) 29px,
    transparent 30px
  );
  content: "";
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1440px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 7vw, 108px) clamp(24px, 4vw, 52px);
}

.page-shell::before,
.page-shell::after {
  position: absolute;
  width: clamp(54px, 7vw, 92px);
  height: clamp(54px, 7vw, 92px);
  border-color: rgba(143, 96, 81, 0.28);
  content: "";
  pointer-events: none;
}

.page-shell::before {
  top: clamp(22px, 4vw, 58px);
  right: clamp(18px, 5vw, 76px);
  border-top: 1px solid;
  border-right: 1px solid;
}

.page-shell::after {
  bottom: clamp(20px, 3vw, 42px);
  left: clamp(18px, 5vw, 76px);
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.site-header,
.site-footer {
  position: relative;
  min-width: 0;
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  line-height: 1;
  animation: mualina-reveal 700ms ease-out both;
}

.hero {
  position: relative;
  isolation: isolate;
  align-self: center;
  min-width: 0;
  width: min(100%, 840px);
  padding: clamp(62px, 10vh, 108px) 0;
}

.hero::before {
  position: absolute;
  z-index: -2;
  top: 42%;
  left: 35%;
  width: min(82vw, 760px);
  height: min(52vw, 420px);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(143, 96, 81, 0.13), rgba(247, 242, 236, 0) 69%);
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 48%;
  left: 30%;
  width: min(76vw, 690px);
  height: min(43vw, 330px);
  border: 1px solid rgba(143, 96, 81, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-7deg);
}

.hero__rule {
  width: 56px;
  height: 1px;
  margin-bottom: clamp(26px, 4vh, 38px);
  background: var(--accent);
  animation: mualina-reveal 650ms 80ms ease-out both;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7.4vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 0.96;
  text-wrap: balance;
  animation: mualina-reveal 780ms 120ms ease-out both;
}

.intro {
  max-width: 650px;
  margin: clamp(30px, 5vh, 44px) 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.72;
  text-wrap: pretty;
  animation: mualina-reveal 780ms 210ms ease-out both;
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1.5;
  animation: mualina-reveal 760ms 300ms ease-out both;
}

.status::before {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(169, 121, 104, 0.12);
  content: "";
  transform-origin: center;
  animation: status-pulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.site-footer {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  animation: mualina-reveal 700ms 360ms ease-out both;
}

.ambient {
  position: fixed;
  z-index: -1;
  border: 1px solid rgba(169, 121, 104, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.ambient--top {
  top: -32vw;
  right: -23vw;
  width: min(70vw, 980px);
  height: min(70vw, 980px);
}

.ambient--bottom {
  bottom: -34vw;
  left: -28vw;
  width: min(66vw, 880px);
  height: min(66vw, 880px);
  border-color: rgba(33, 28, 25, 0.08);
}

::selection {
  background: var(--accent);
  color: var(--surface);
}

@keyframes mualina-reveal {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.78;
    box-shadow: 0 0 0 4px rgba(143, 96, 81, 0.1);
    transform: scale(1);
  }

  12% {
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(143, 96, 81, 0.15);
    transform: scale(1.16);
  }

  24% {
    opacity: 0.84;
    box-shadow: 0 0 0 4px rgba(143, 96, 81, 0.1);
    transform: scale(1.02);
  }

  36% {
    opacity: 0.96;
    box-shadow: 0 0 0 5px rgba(143, 96, 81, 0.13);
    transform: scale(1.1);
  }

  52% {
    opacity: 0.78;
    box-shadow: 0 0 0 4px rgba(143, 96, 81, 0.1);
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .page-shell {
    padding-inline: 22px;
  }

  .hero {
    padding-block: clamp(58px, 11vh, 88px);
  }

  .hero__rule {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(2.55rem, 12.4vw, 3.5rem);
    line-height: 1.01;
  }

  .intro {
    font-size: 1.02rem;
    line-height: 1.68;
  }

  .status {
    align-items: flex-start;
    font-size: 0.78rem;
  }

  .status::before {
    margin-top: 0.35rem;
  }
}

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