:root {
  --bg: #08090c;
  --fg: #f1efea;
  --muted: #8d8f98;
  --faint: #5a5c66;
  --accent: #c8b28a;
  --line: rgba(255, 255, 255, 0.07);
  --pad: clamp(1.5rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--pad);
  text-align: center;
  --mx: 50%;
  --my: 46%;
  background:
    radial-gradient(38rem 26rem at var(--mx) var(--my), rgba(200, 178, 138, 0.09), transparent 70%),
    radial-gradient(70rem 40rem at 50% 120%, rgba(90, 110, 160, 0.10), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(200, 178, 138, 0.28); }

.top {
  padding: var(--pad) 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.mark::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.9em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.12em;
}

main {
  align-self: center;
  justify-self: center;
  max-width: 44rem;
  padding: 4rem 0;
}

/* a single fine vertical line, the one quiet detail */
main::before {
  content: "";
  display: block;
  width: 1px;
  height: 4rem;
  margin: 0 auto 2.5rem;
  background: linear-gradient(to bottom, transparent, var(--accent));
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 {
  background: linear-gradient(180deg, #ffffff 20%, #a9a7a2 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.15em; /* keeps descenders inside the gradient */
  margin-bottom: -0.15em;
}
.amp {
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
  font-weight: 300;
}

.tagline {
  margin: 1.5rem 0 0;
  font-size: clamp(0.95rem, 1.8vw, 1.0625rem);
  color: var(--muted);
  letter-spacing: 0.01em;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0 var(--pad);
  font-size: 0.8125rem;
  color: var(--faint);
}
footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
footer a:hover,
footer a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.home {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 178, 138, 0.3);
  padding-bottom: 1px;
}
.home:hover { border-bottom-color: var(--accent); }

/* one gentle entrance, nothing more */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.top, footer { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
footer { animation-delay: 1.5s; }

/* the line draws itself, then the heading and tagline settle in */
@keyframes draw {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes focus {
  from { opacity: 0; filter: blur(10px); transform: translateY(10px); letter-spacing: -0.015em; }
  to   { opacity: 1; filter: blur(0); transform: none; letter-spacing: -0.03em; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(200, 178, 138, 0.35); }
  50%      { opacity: 0.55; box-shadow: 0 0 0 6px rgba(200, 178, 138, 0); }
}

main::before {
  transform-origin: top;
  animation: draw 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both;
}
h1 { animation: focus 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both; }
.tagline { animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 1.5s both; }
.mark::before { animation: pulse 3.2s ease-in-out 2s infinite; }

/* ---- small screens ---- */
body {
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}
h1, .tagline { overflow-wrap: break-word; }
footer a { padding: 0.35rem 0.25rem; }

@media (max-width: 480px) {
  .top { font-size: 0.6875rem; letter-spacing: 0.2em; }
  main { padding: 2.5rem 0; }
  main::before { height: 3rem; margin-bottom: 2rem; }
  h1 { font-size: clamp(1.75rem, 9vw, 2.25rem); line-height: 1.2; }
  .tagline { margin-top: 1.25rem; }
  footer { padding-bottom: max(var(--pad), env(safe-area-inset-bottom)); }
}

@media (max-width: 340px) {
  .top { letter-spacing: 0.14em; }
}

/* short landscape phones: drop the line so nothing feels cramped */
@media (max-height: 480px) {
  main { padding: 1.5rem 0; }
  main::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
