:root {
  --bg: #efece6;
  --copper: #bd7f33;
  --copper-soft: #c79a5e;
  --muted: #b3a896;

  --serif: "Tiempos Headline", "DM Serif Display", ui-serif, Georgia, serif;
  --sans: "Founders Grotesk", "Work Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--copper);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 1.1s ease both;
}

.mark {
  width: clamp(140px, 30vw, 220px);
  height: auto;
  color: var(--copper);
}

/* line-art draws itself in on load */
.mark path,
.mark rect {
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: draw 1.8s ease forwards;
}

.wordmark {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 11vw, 6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;

  /* copper base with a lighter highlight that sweeps across */
  background: linear-gradient(
    110deg,
    var(--copper) 0%,
    var(--copper) 38%,
    #f4e7cd 50%,
    var(--copper) 62%,
    var(--copper) 100%
  );
  background-size: 250% 100%;
  background-position: 150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5.5s ease-in-out 1.6s infinite;
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(0.8rem, 2.4vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  /* compensate for the trailing letter-spacing so text stays centered */
  text-indent: 0.42em;
}

.note {
  margin-top: 3.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 1.1s ease 0.9s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes shine {
  /* quick glint, then rest before the next sweep */
  0% {
    background-position: 150% 0;
  }
  18% {
    background-position: -50% 0;
  }
  100% {
    background-position: -50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .note,
  .mark path,
  .mark rect,
  .wordmark {
    animation: none;
  }
  .mark path,
  .mark rect {
    stroke-dashoffset: 0;
  }
  .wordmark {
    background: none;
    color: var(--copper);
  }
}
