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

:root {
  --ink: #0e2031;
  --ink-soft: #27425c;
  --paper: #f8f1e7;
  --paper-strong: #fff9f2;
  --sand: #e9dccb;
  --signal: #ff6a3d;
  --signal-dark: #d14f29;
  --teal: #0f8b8d;
  --midnight: #092033;
  --line: rgba(14, 32, 49, 0.14);
  --shadow: 0 22px 60px rgba(9, 32, 51, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 106, 61, 0.24), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(15, 139, 141, 0.18), transparent 22%),
    linear-gradient(160deg, #f8f1e7 0%, #f6ecdf 48%, #f0e3d5 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 32, 49, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 32, 49, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  opacity: 0.35;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.34), transparent 20%, transparent 80%, rgba(9, 32, 51, 0.05));
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.page-shell-tight {
  width: min(980px, calc(100% - 40px));
}

.hero,
.section,
.login-card,
.login-copy {
  animation: lift-in 500ms ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: lift-in 500ms ease forwards;
}

.reveal-1 { animation-delay: 40ms; }
.reveal-2 { animation-delay: 140ms; }
.reveal-3 { animation-delay: 240ms; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-panel,
.section,
.login-card,
.login-copy {
  background: rgba(255, 249, 242, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(14, 32, 49, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.hero-panel {
  padding: 28px;
  background: linear-gradient(180deg, rgba(9, 32, 51, 0.95), rgba(9, 32, 51, 0.9));
  color: var(--paper-strong);
}

.eyebrow,
.section-kicker,
.link-overline,
.card-label,
.meta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-dark);
  font-weight: 700;
}

.eyebrow::before,
.section-kicker::before,
.meta-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

h1,
h2,
h3,
strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

h1 {
  margin: 12px 0 14px;
  font-size: clamp(3rem, 5vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
}

h3 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
}

.lede {
  max-width: 54ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero-actions,
.band-actions,
.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--signal), #ff8d53);
  color: #fff7f3;
  box-shadow: 0 14px 30px rgba(255, 106, 61, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(14, 32, 49, 0.1);
  color: var(--ink);
}

.button-block {
  width: 100%;
}

.panel-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel-col .signal-list li {
  padding: 10px 0;
  font-size: 0.92rem;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 241, 231, 0.72);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ef5c2, var(--teal));
  box-shadow: 0 0 0 8px rgba(78, 245, 194, 0.12);
}

.signal-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.signal-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(248, 241, 231, 0.14);
  color: rgba(248, 241, 231, 0.88);
}

.section {
  padding: 30px;
  margin-bottom: 22px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.card-grid,
.link-grid {
  display: grid;
  gap: 16px;
}

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.link-card {
  min-height: 220px;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.card-accent {
  background: linear-gradient(165deg, rgba(255, 106, 61, 0.12), rgba(255, 255, 255, 0.78));
}

.card p,
.link-card span:last-child,
.band-copy p,
.login-copy-small,
.login-notes p {
  line-height: 1.6;
  color: var(--ink-soft);
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 61, 0.32);
  box-shadow: 0 16px 28px rgba(9, 32, 51, 0.09);
}

.link-card[data-hidden="true"] {
  display: none;
}

.section-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(9, 32, 51, 0.96), rgba(16, 45, 69, 0.92));
  color: var(--paper-strong);
}

.section-band .section-kicker,
.section-band .section-kicker::before {
  color: #f6c7b8;
}

.section-band p,
.section-band code {
  color: rgba(248, 241, 231, 0.84);
}

code {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(9, 32, 51, 0.08);
  font-family: "SFMono-Regular", "Menlo", monospace;
}

.section-band code {
  background: rgba(255, 255, 255, 0.08);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 22px;
}

.login-copy,
.login-card {
  padding: 34px;
}

.login-meta {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
}

.login-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.login-notes {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stack-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
  color: var(--ink-soft);
}

.stack-list li:first-child {
  padding-top: 0;
}

.stack-list li strong {
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.stack-list-links a {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: color 120ms ease;
}

.stack-list-links a:hover {
  color: var(--signal-dark);
}

.stack-list-links a:hover strong {
  color: var(--signal-dark);
}

.site-footer {
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer a {
  color: var(--signal-dark);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .login-layout,
  .section-band {
    grid-template-columns: 1fr;
    display: grid;
  }

  .card-grid-three,
  .link-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .page-shell-tight {
    width: min(100% - 24px, 100%);
    padding-top: 18px;
  }

  .hero-copy,
  .hero-panel,
  .section,
  .login-copy,
  .login-card {
    padding: 24px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .card-grid-three,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .band-actions,
  .login-actions {
    flex-direction: column;
  }

  .button,
  .button-block {
    width: 100%;
  }
}
