:root {
  --bg: #4a3d35;
  --fg: #eee6db;
  --fg-soft: rgb(238 230 219 / 0.78);
  --tracking: 0.38em;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

/* ~25 % of the viewport on desktop, ~70 % on phones, a fixed 18rem in between;
   capped by height (logo ratio ≈ 3:1) so very short viewports keep room for the text. */
.logo {
  width: min(40rem, 100%, 105vh, max(25vw, min(70vw, 18rem)));
  margin: 0 0 clamp(2rem, 6vmin, 4.5rem);
  line-height: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.tagline {
  margin: 0;
  /* Letter-spacing also trails the last glyph; indent the start to keep it centred. */
  padding-inline-start: var(--tracking);
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.5rem);
  letter-spacing: var(--tracking);
  text-transform: uppercase;
}

.contact {
  margin: clamp(0.75rem, 2.5vmin, 1.5rem) 0 0;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.2rem);
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.contact a {
  color: var(--fg-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgb(238 230 219 / 0.35);
  text-underline-offset: 0.3em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--fg);
  text-decoration-color: currentColor;
}

.contact a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 0.35em;
  border-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .tagline.reveal {
    animation-delay: 0.35s;
  }

  .contact.reveal {
    animation-delay: 0.6s;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
