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

:root {
  --fg: #1d1d1d;
  --bg: #fafaf7;
  --serif: Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

h1, .rule, .title, .tagline, .links {
  animation: reveal 0.8s var(--ease-out) var(--d, 0s) both;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

h1 {
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 0.9;
}

h1 .first,
h1 .last {
  display: block;
  font-size: 5.5rem;
}

h1 .first { font-weight: 300; }
h1 .last { font-weight: 400; }

.rule {
  --d: 0.15s;
  width: 40px;
  height: 1px;
  background: var(--fg);
  margin: 40px 0;
}

.title {
  --d: 0.3s;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.tagline {
  --d: 0.45s;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #999;
  margin-top: 20px;
  max-width: 340px;
}

.links {
  --d: 0.6s;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.links a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.4s var(--ease-smooth);
}

.links a:hover {
  color: #6b6b6b;
}

.links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-smooth);
}

.links a:hover::after {
  width: 100%;
}

@media (max-width: 480px) {
  h1 .first,
  h1 .last {
    font-size: 3.5rem;
  }

  .links { gap: 20px; }
  .tagline { font-size: 0.95rem; }
}
