:root {
  --bg0: #0c100e;
  --bg1: #152018;
  --ink: #eef5ea;
  --muted: #8fa388;
  --line: rgba(184, 212, 168, 0.14);
  --accent: #c5e0b4;
  --accent-dim: #7e9f6e;
  --panel: rgba(18, 28, 20, 0.72);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg0), var(--bg1) 55%, #101812);
  overflow-x: hidden;
}

.glow {
  position: fixed;
  inset: -20% -10% auto auto;
  width: min(70vw, 28rem);
  height: min(70vw, 28rem);
  background: radial-gradient(circle, rgba(140, 180, 120, 0.22), transparent 68%);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); opacity: 0.7; }
  to { transform: translate(-12%, 18%) scale(1.12); opacity: 1; }
}

main {
  position: relative;
  max-width: 30rem;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 4.5rem;
  animation: rise 0.7s ease-out both;
}

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

.hero { margin-bottom: 1.75rem; }

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lead {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1.05rem;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.links li { border-bottom: 1px solid var(--line); }

.links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.15rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.links a span { font-size: 1.02rem; }
.links a em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.links a:hover,
.links a:focus-visible {
  color: var(--accent);
  padding-left: 0.35rem;
}

.links a:hover em,
.links a:focus-visible em { color: var(--accent-dim); }

.gate {
  margin: 0 0 2rem;
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--panel);
  backdrop-filter: blur(8px);
  animation: rise 0.75s ease-out 0.05s both;
}

.gate h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.gate-hint {
  margin: 0.45rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.gate-hint strong {
  color: var(--accent);
  letter-spacing: 0.06em;
}

.gate-row {
  display: flex;
  gap: 0.55rem;
}

.gate-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.gate-row input:focus {
  border-color: var(--accent-dim);
}

.gate-row button,
.gate-copy {
  border: 0;
  border-radius: 0.55rem;
  background: var(--accent);
  color: #152016;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.gate-row button:hover,
.gate-copy:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.gate-err {
  margin: 0.65rem 0 0;
  color: #e2a3a3;
  font-size: 0.9rem;
}

.gate-out {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  animation: rise 0.35s ease-out;
}

.gate-label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.gate-link {
  display: block;
  word-break: break-all;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.45;
  font-size: 0.92rem;
  filter: blur(5px);
  transition: filter 0.35s ease;
  user-select: none;
}

.gate-out:hover .gate-link,
.gate-link:focus-visible {
  filter: none;
  user-select: text;
}

.gate-copy {
  margin-top: 0.75rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}

@media (max-width: 420px) {
  .links a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}
