@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* Dark only: the page lives on the photo. */
:root {
  --bg: #0A0A0B;
  --text: #F1EFEA;
  --muted: rgba(241, 239, 234, .74);
  --faint: rgba(241, 239, 234, .5);
  --accent: #F07A3A;
  --leaf: #EF721F;
  --veil: 10, 10, 11;            /* tint colour, rgb */
  --photo-filter: saturate(.9) contrast(1.05);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Backdrop: sharp photo, a blurred copy that only shows where the text sits, a tint, grain. */
.backdrop { position: fixed; inset: 0; overflow: hidden; z-index: -1; }
.photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 40%;
  filter: var(--photo-filter);
  transform-origin: 100% 40%;   /* growing from the right edge moves the pour left of the text */
  transform: scale(1.12);
  animation: settle 14s cubic-bezier(.2, .6, .2, 1) both;
}
.photo.blurred {
  filter: var(--photo-filter) blur(30px);
  /* Same framing as the sharp photo; only the falloff decides where it shows. */
  -webkit-mask-image: radial-gradient(120% 110% at 100% 100%, #000 0%, #000 30%, rgba(0,0,0,.55) 52%, transparent 74%);
          mask-image: radial-gradient(120% 110% at 100% 100%, #000 0%, #000 30%, rgba(0,0,0,.55) 52%, transparent 74%);
}
.tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(var(--veil), .85) 0%, rgba(var(--veil), .4) 30%, rgba(var(--veil), 0) 58%),
    linear-gradient(to left, rgba(var(--veil), .75) 0%, rgba(var(--veil), .3) 38%, rgba(var(--veil), 0) 62%),
    linear-gradient(to bottom, rgba(var(--veil), .5) 0%, rgba(var(--veil), 0) 22%);
}
.grain {
  position: absolute; inset: 0; opacity: .08; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes settle { from { transform: scale(1.2); } to { transform: scale(1.12); } }

/* Page: logo top, statement bottom-left, a quiet footer line. */
.page {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  padding: 32px clamp(20px, 5vw, 72px) 24px;
}
.logo { display: block; width: 136px; height: auto; color: var(--text); }
.logo #leaf { fill: var(--leaf); }
.logo #wordmark { fill: currentColor; }
.logo #subtitle { fill: var(--muted); }

main { align-self: end; justify-self: end; width: min(560px, 39vw); padding-bottom: clamp(32px, 7vh, 88px); }
main > * { animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both; }
main > :nth-child(2) { animation-delay: .15s; }
main > :nth-child(3) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1 {
  margin: 0 0 24px; font: 500 clamp(32px, 3.4vw, 54px)/1.04 var(--sans);
  letter-spacing: -.04em; text-wrap: balance;
}
.lede { margin: 0; max-width: 34em; font-size: clamp(16px, 1.25vw, 19px); color: var(--muted); }
.contact { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.countdown { display: block; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.contact a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.contact a:hover { color: var(--accent); }

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 12px; letter-spacing: .02em; color: rgba(241, 239, 234, .3);
  padding-top: clamp(24px, 5vh, 56px);
}
.links { display: flex; gap: 20px; }
.links a { color: inherit; text-decoration: none; }
.links a:hover { color: var(--muted); }

/* Imprint page */
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 72px); }
header.wrap { padding-top: 32px; font-size: 14px; }
header.wrap a { color: var(--muted); text-decoration: none; }
.legal { max-width: 640px; padding: 9vh 0 80px; }
.legal h1 { font-size: 40px; }
.legal h2 { font: 500 15px/1.4 var(--sans); margin: 32px 0 6px; }
.legal p { margin: 0; color: var(--muted); }
.todo { background: rgba(240, 122, 58, .2); padding: 0 4px; border-radius: 3px; }

/* Narrow screens: the pour sits above, the text spans the bottom. */
@media (max-width: 1000px) {
  main { justify-self: stretch; width: auto; max-width: 640px; }
  .photo.blurred {
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.8) 35%, transparent 75%);
            mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.8) 35%, transparent 75%);
  }
  .tint { background: linear-gradient(to top, rgba(var(--veil), .94) 0%, rgba(var(--veil), .6) 40%, rgba(var(--veil), .1) 70%), linear-gradient(to bottom, rgba(var(--veil), .5) 0%, rgba(var(--veil), 0) 18%); }
}

@media (max-width: 700px) {
  .page { padding: 22px 20px 18px; }
  .logo { width: 112px; }
  .photo { object-position: 46% 30%; transform: none; animation: none; }
  .photo.blurred {
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.8) 35%, transparent 75%);
            mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.8) 35%, transparent 75%);
  }
  .tint { background: linear-gradient(to top, rgba(var(--veil), .94) 0%, rgba(var(--veil), .6) 40%, rgba(var(--veil), .1) 70%), linear-gradient(to bottom, rgba(var(--veil), .5) 0%, rgba(var(--veil), 0) 18%); }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .photo, .photo.blurred { animation: none; }
}
