:root {
  --bg: #0a0a0a;
  --ink: #f5f3ef;
  --mute: #6b6864;
  --hairline: #1a1916;
}

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

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---------------------------------------------------------------
   Page shell
--------------------------------------------------------------- */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 6vh, 4rem);
}

/* ---------------------------------------------------------------
   Logo
--------------------------------------------------------------- */
.masthead {
  display: flex;
}

.logo {
  display: inline-block;
}

.logo svg {
  width: clamp(140px, 16vw, 200px);
  height: auto;
  fill: var(--ink);
  display: block;
}

.logo svg path {
  opacity: 0;
  animation: fade-in 1.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.logo .word--new path        { animation-delay: 0.30s; }
.logo .punct--first          { animation-delay: 0.85s; }
.logo .word--state path      { animation-delay: 1.05s; }
.logo .punct--second         { animation-delay: 1.65s; }
.logo .word--design path     { animation-delay: 1.85s; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------------------------------------------------------------
   Statement
--------------------------------------------------------------- */
.statement {
  align-self: center;
  max-width: 64rem;
  opacity: 0;
  animation: fade-in 1.4s ease forwards 2.6s;
}

.statement__title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.statement__mood {
  margin-top: clamp(1rem, 2.5vh, 1.6rem);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  color: var(--mute);
  letter-spacing: 0;
}

.statement__caption {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: 0;
  animation: fade-in 1.4s ease forwards 3.2s;
}

.foot__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
}

.foot__id {
  justify-self: end;
}

.foot__dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1);    }
}

/* Hidden text revealed on selection (Cmd+A) */
.foot__hint {
  color: transparent;
  user-select: text;
  font-size: 0.66rem;
  text-transform: none;
  letter-spacing: 0.04em;
  text-align: center;
  pointer-events: auto;
}

.foot__hint::selection {
  color: var(--ink);
  background: var(--mute);
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 640px) {
  .foot {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    text-align: left;
  }

  .foot__status,
  .foot__id {
    justify-self: start;
  }

  .foot__hint {
    text-align: left;
  }

  .statement__title br {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logo svg path,
  .statement,
  .foot {
    opacity: 1;
    animation: none;
  }

  .foot__dot {
    animation: none;
    opacity: 0.7;
  }
}
