/* ---- theme ---------------------------------------------------------- */
:root {
  --bg:     #F3EADF;   /* flat beige */
  --ink:    #141414;   /* black */
  --gray:   #6B6660;   /* the one gray */
  --white:  #FFFFFF;
  --accent: #DC8940;   /* highlight */

  --sprite: 240px;      /* crow size */
  --cycle:  0.7s;      /* full 4-frame loop */

  --sans: "helvetica-lt-pro", Helvetica, Arial, sans-serif;
  --display: "argent-pixel-cf", Georgia, serif;
  --mono: "source-code-pro", ui-monospace, Menlo, monospace;
}

/* ---- base ----------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 44px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---- title ---------------------------------------------------------- */
header { padding-top: 50px; }

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.1;
}

/* each letter lights up on hover */
h1 span {
  transition: color 0.1s ease-out;
}

h1 span:hover {
  color: var(--accent);
}

/* ---- crow + coming soon --------------------------------------------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.crow {
  position: relative;
  width: var(--sprite);
  height: var(--sprite);
}

.crow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;   /* keep the pixel grid crisp */
  opacity: 0;
  animation: crow-cycle var(--cycle) infinite;
}

/* each frame owns one quarter of the loop */
.crow img:nth-child(1) { animation-delay: 0s; }
.crow img:nth-child(2) { animation-delay: calc(var(--cycle) * -0.75); }
.crow img:nth-child(3) { animation-delay: calc(var(--cycle) * -0.5); }
.crow img:nth-child(4) { animation-delay: calc(var(--cycle) * -0.25); }

@keyframes crow-cycle {
  0%,      25% { opacity: 1; }
  25.01%, 100% { opacity: 0; }
}

.coming {
  margin: 0;
  padding: 5px 12px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;   /* balance the trailing letter-space */
}

/* ---- links ---------------------------------------------------------- */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  }

a:hover,
a:focus-visible {
  background: var(--accent);
  color: var(--ink);              /* 6.75:1 — white on orange fails */
  text-decoration-color: transparent;
}

/* ---- footer --------------------------------------------------------- */
footer {
  max-width: 86ch;
  color: var(--gray);
  font-size: 0.8125rem;
}

footer a { color: var(--gray); }

/* ---- motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .crow img { animation: none; }
  .crow img:first-child { opacity: 1; }
}
