:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #12131a;
  --muted: #4e5568;
  --line: #d9dce5;
  --accent: #335dff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1118;
    --panel: #171a24;
    --text: #eef1f7;
    --muted: #b7bfd3;
    --line: #2a3040;
    --accent: #8aa0ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.shell {
  width: min(980px, 100% - 2rem);
  margin-inline: auto;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 1.2rem 0 0.6rem;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.topnav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr minmax(160px, 230px);
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 0 1.1rem;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.84rem;
}

h1 {
  margin: 0.35rem 0 0.65rem;
  line-height: 1.12;
  font-size: clamp(1.8rem, 4.8vw, 3rem);
}

.lede {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.panel {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 1rem 1.05rem;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.muted {
  color: var(--muted);
}

.micro-list {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.micro-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
}

.micro-item h3 {
  margin: 0.2rem 0;
  font-size: 1rem;
}

.micro-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.micro-copy p {
  margin: 0.35rem 0 0;
}

form {
  display: grid;
  gap: 0.5rem;
}

label {
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}

input:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-color: var(--accent);
}

button {
  margin-top: 0.35rem;
  width: fit-content;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.06);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hp-label,
.hp-input {
  position: absolute;
  left: -10000px;
}

footer {
  padding: 0.4rem 0 2rem;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-width: 240px;
  }
}
