:root {
  --paper: #efe8dc;
  --ink: #1d1512;
  --muted: #7a6d63;
  --plum: #4a1424;
  --rose: #c9806f;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --pile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.42 0 0 0 0 0.52 2.2 0 0 0 -1.0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --pile-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.01 0 0 0 0 0.04 3.4 0 0 0 -1.0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --nap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='400'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.014 0.022' numOctaves='3' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.2 0 0 0 0 0.32 3 0 0 0 -1.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(22px, 3.5vw, 44px);
}

/* top bar */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.top a { border-bottom: 1px solid transparent; transition: border-color .25s; }
.top a:hover { border-color: currentColor; }

/* the sun / hour disc */
.disc {
  position: absolute;
  right: clamp(-120px, -6vw, -40px);
  top: 53%;
  width: min(46vw, 74vh, 640px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #4a1424;
  box-shadow: 0 0 70px 6px rgba(255, 140, 120, 0.28);
  z-index: 0;
}
.disc svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; display: block; }
.disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  background:
    var(--pile),
    var(--pile-dark),
    radial-gradient(circle at 28% 24%, rgba(255, 230, 215, 0.38) 0%, transparent 42%),
    radial-gradient(circle at 36% 32%, transparent 38%, rgba(40, 6, 18, 0.45) 70%, rgba(14, 2, 7, 0.92) 100%);
  background-size: 160px 160px, 200px 200px, auto, auto;
  box-shadow: inset 0 0 38px 4px rgba(255, 165, 140, 0.30);
}
.disc::after {
  content: "";
  position: absolute;
  inset: -4.5%;
  border-radius: 50%;
  border: 1px solid rgba(74, 20, 36, 0.35);
}

/* centre */
.hero {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 8vh 0;
}
.label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(18px, 3vw, 30px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.label::before { content: ""; width: 38px; height: 1px; background: var(--muted); }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, min(14.5vw, 25vh), 12rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--plum);
  background:
    var(--pile),
    var(--pile-dark),
    var(--nap),
    linear-gradient(105deg, transparent 10%, rgba(255, 110, 150, 0.6) 36%, rgba(255, 190, 205, 0.35) 44%, transparent 60%),
    linear-gradient(100deg, transparent 55%, rgba(255, 110, 150, 0.45) 72%, transparent 88%),
    linear-gradient(165deg, #9a2a48 0%, #561529 42%, #1a050c 100%);
  background-size: 160px 160px, 200px 200px, 700px 400px, 260% 100%, 260% 100%, auto;
  background-position: 0 0, 0 0, 0 0, 100% 0, 100% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}
h1 em { font-style: italic; display: block; padding-left: 0.5em; }
.desc {
  margin-top: clamp(28px, 5vw, 56px);
  max-width: 24ch;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  color: var(--ink);
}

/* bottom */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
}

/* gentle entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero > *, .disc { opacity: 0; animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) forwards; }
  .disc { animation-name: fade; animation-duration: 1.6s; }
  .label { animation-delay: .1s; }
  h1 { animation-delay: .25s; animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) .25s forwards, sheen 9s ease-in-out 1.4s infinite alternate; }
  @keyframes sheen { from { background-position: 0 0, 0 0, 0 0, 100% 0, 100% 0, 0 0; } to { background-position: 0 0, 0 0, 0 0, 0% 0, 0% 0, 0 0; } }
  .desc { animation-delay: .5s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; transform: translateY(-50%) scale(.96); } to { opacity: 1; transform: translateY(-50%); } }
}

@media (max-width: 640px) {
  .disc { top: auto; bottom: -22vw; transform: none; right: -30vw; width: 110vw; }
  @media (prefers-reduced-motion: no-preference) {
    .disc { animation-name: fade-m; }
    @keyframes fade-m { from { opacity: 0; } to { opacity: 1; } }
  }
  h1 em { padding-left: 0.25em; }
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' 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='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: grain 0.9s steps(6) infinite; }
  @keyframes grain {
    0%   { transform: translate(0, 0); }
    17%  { transform: translate(-6%, 4%); }
    33%  { transform: translate(5%, -7%); }
    50%  { transform: translate(-4%, -3%); }
    67%  { transform: translate(7%, 5%); }
    83%  { transform: translate(-3%, 7%); }
    100% { transform: translate(0, 0); }
  }
}
