:root {
  --bb-ink: #0C0A09;
  --bb-sand: #E7E5E4;
  --bb-stone: #A8A29E;
  --bb-paper: #FAFAF9;
  --bb-font-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --bb-font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--bb-font-sans);
  color: var(--bb-ink);
  background:
    radial-gradient(circle at 18% 28%, rgba(12, 10, 9, 0.07) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 64%, rgba(12, 10, 9, 0.06) 0 1px, transparent 1.5px),
    linear-gradient(145deg, #d6d3d1 0%, var(--bb-sand) 42%, #b8b3af 100%);
  background-size: 14px 14px, 20px 20px, auto;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: rise 0.7s ease both;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.mark img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.mark span {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}

.meta {
  font-family: var(--bb-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-ink);
  opacity: 0.55;
}

main {
  flex: 1;
  display: grid;
  align-content: center;
  gap: clamp(1.5rem, 4vh, 2.75rem);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 8vh, 5rem) 0;
}

main > * {
  animation: rise 0.85s ease both;
}

main > *:nth-child(1) {
  animation-delay: 0.05s;
}
main > *:nth-child(3) {
  animation-delay: 0.2s;
}
main > *:nth-child(4) {
  animation-delay: 0.28s;
}

main > .lede[data-generate] {
  animation: none;
  opacity: 1;
  transform: none;
}

h1 {
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 800;
  max-width: 11ch;
}

.lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(12, 10, 9, 0.78);
}

.tg-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  will-change: opacity, filter;
  margin-right: 0.28em;
  animation: tg-reveal var(--tg-duration, 0.5s) ease forwards;
  animation-delay: var(--tg-delay, 0s);
}

.tg-word--no-blur {
  filter: none;
  animation-name: tg-reveal-opacity;
}

@keyframes tg-reveal {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes tg-reveal-opacity {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tg-word {
    opacity: 1;
    filter: none;
    animation: none;
  }
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
  max-width: 34rem;
}

input[type="email"] {
  flex: 1 1 220px;
  border: 1.5px solid rgba(12, 10, 9, 0.28);
  background: rgba(250, 250, 249, 0.72);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  font: 500 1rem / 1.2 var(--bb-font-sans);
  color: var(--bb-ink);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

input::placeholder {
  color: var(--bb-stone);
}

input:focus {
  border-color: var(--bb-ink);
  background: var(--bb-paper);
}

button {
  border: 0;
  background: var(--bb-ink);
  color: var(--bb-sand);
  border-radius: 12px;
  padding: 0.95rem 1.35rem;
  font: 700 0.95rem / 1 var(--bb-font-sans);
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

button:hover {
  opacity: 0.9;
}

button:active {
  transform: translateY(1px);
}

.note {
  font-family: var(--bb-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(12, 10, 9, 0.45);
}

footer {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--bb-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 10, 9, 0.4);
  animation: rise 0.7s ease 0.35s both;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  color: var(--bb-ink);
}

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

@media (prefers-reduced-motion: reduce) {
  header,
  main > *,
  footer {
    animation: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
