@font-face {
  font-family: "Raleway";
  src: url("fonts/raleway-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #dad5cc;
  --ink: #1d1a16;
  --text: #3b352d;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: light;
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Raleway", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* frosted glass over sand: soft, horizontally smeared bands of sand and shadow, drawn in CSS */
.frost {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #d6d3cc 0%, #ddd6ca 38%, #d9cbb7 62%, #e2dbd0 100%);
}

.smear {
  position: absolute;
  inset: -12% -25%;
  filter: blur(30px);
  will-change: transform;
}

/* deep shadows: low band and a darker mass upper left */
.smear--deep {
  background:
    radial-gradient(62% 17% at 36% 78%, rgba(88, 54, 28, 0.92), transparent 74%),
    radial-gradient(42% 14% at 70% 71%, rgba(112, 70, 36, 0.88), transparent 74%),
    radial-gradient(36% 19% at 16% 22%, rgba(120, 82, 50, 0.78), transparent 74%),
    radial-gradient(54% 11% at 82% 90%, rgba(80, 52, 30, 0.8), transparent 74%),
    radial-gradient(26% 12% at 86% 18%, rgba(140, 104, 72, 0.5), transparent 74%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

/* caramel light: warm streaks around the shadows, and a pale field behind the text */
.smear--warm {
  background:
    radial-gradient(66% 11% at 56% 64%, rgba(198, 142, 86, 0.88), transparent 74%),
    radial-gradient(46% 10% at 28% 86%, rgba(190, 134, 80, 0.75), transparent 74%),
    radial-gradient(40% 12% at 32% 33%, rgba(184, 140, 98, 0.6), transparent 74%),
    radial-gradient(56% 15% at 50% 47%, rgba(244, 238, 228, 0.9), transparent 74%);
  animation: drift-b 17s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(-9%, 1.5%, 0) scaleX(1.05); }
  to { transform: translate3d(9%, -2%, 0) scaleX(1.15); }
}

@keyframes drift-b {
  from { transform: translate3d(10%, -1.5%, 0); }
  to { transform: translate3d(-10%, 2.5%, 0) scaleX(1.1); }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.4' intercept='-0.7'/%3E%3CfeFuncG type='linear' slope='2.4' intercept='-0.7'/%3E%3CfeFuncB type='linear' slope='2.4' intercept='-0.7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: var(--gutter);
}

.brand {
  margin: 0;
  justify-self: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.center {
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding-bottom: 6vh;
}

.title {
  margin: 0;
  font-size: clamp(40px, 7.4vw, 104px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: 0.08em;
  /* tracking adds space after the last letter; pull it back so the line stays centred */
  margin-right: -0.08em;
  text-transform: uppercase;
}

.note {
  margin: clamp(18px, 2vw, 26px) 0 0;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  text-wrap: balance;
}

.home {
  margin-top: clamp(24px, 3vw, 36px);
  display: inline-block;
  padding: 14px 30px;
  background: var(--ink);
  color: #f6f1e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}

.home:hover { opacity: 0.85; }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .title { font-size: 15vw; }
  .title span { display: block; }
  .note br { display: none; }
  .note { max-width: 30ch; }
}

/* gentle entrance */
.rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 120ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .smear { animation: none; }
  .home { transition: none; }
}
