/* Shared base for the d3 red variations (d3a to d3d). Each variant overrides in its own style.css. */
:root {
  --bg: #0a0a0a;
  --text: #ededed;
  --muted: #a3a3a3;
  --red: #c42020;
  --red-hover: #a81b1b;
  --red-text: #f05252;
  --on-red: #ffffff;
  --line: #262626;
  --card: #131313;
  --field: #0e0e0e;
  --radius: 1rem;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.65 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}
.inner {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.narrow {
  max-width: 44rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 2.1rem;
  height: 2.1rem;
}
.word {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.word b {
  color: var(--red-text);
  font-weight: 800;
}
.sub {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.2rem;
}
nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
nav a:hover {
  color: var(--text);
}
nav .pill {
  color: var(--text);
  border: 1px solid var(--red);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
}
nav .pill:hover {
  background: var(--red);
  color: var(--on-red);
}

.tag {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--red-text);
  margin: 0 0 1.2rem;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.lead {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 36rem;
  margin: 0 0 2.2rem;
}
.solid {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  background: var(--red);
  color: var(--on-red);
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.7rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.solid:hover {
  background: var(--red-hover);
}
.solid:disabled {
  opacity: 0.6;
  cursor: default;
}
.ghost {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
}
.ghost:hover {
  color: var(--red-text);
}

.block {
  padding: 5rem 0;
}
h2 {
  font-size: 1.8rem;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
article:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}
.n {
  color: var(--red-text);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}
article h3 {
  margin: 0.6rem 0 0.5rem;
  font-size: 1.1rem;
}
article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}
#approach p {
  color: var(--muted);
  font-size: 1.1rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.2);
  padding: 2.2rem;
}
.panel h2 {
  margin-top: 0;
}
.panel > p {
  color: var(--muted);
}
form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}
.row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
}
input,
textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.6);
  padding: 0.7rem 0.85rem;
  width: 100%;
}
textarea {
  min-height: 9rem;
  resize: vertical;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
form .solid {
  justify-self: start;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.status {
  margin: 0;
  min-height: 1.5em;
  color: var(--muted);
}
.status.ok {
  color: #4ade80;
}
.status.err {
  color: var(--red-text);
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  nav a:not(.pill) {
    display: none;
  }
  .block {
    padding: 3.5rem 0;
  }
  .panel {
    padding: 1.5rem;
  }
}

.sub2 {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.8;
  margin-top: 0.15rem;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .sub2 {
    display: none;
  }
}
