.foundation-shell {
  min-height: 100svh;
  padding: clamp(28px, 4vw, 58px) clamp(20px, 5vw, 82px) 36px;
  background:
    radial-gradient(circle at 82% 10%, rgba(24, 228, 216, 0.09), transparent 28%),
    linear-gradient(145deg, #020606 0%, #000 70%);
}

.foundation-header,
.foundation-main,
.foundation-footer {
  width: min(100%, 1120px);
  margin-right: auto;
  margin-left: auto;
}

.foundation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.foundation-brand,
.foundation-back,
.foundation-card a,
.foundation-footer a,
.foundation-action {
  text-decoration: none;
}

.foundation-brand {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.foundation-back {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.foundation-hero {
  padding: clamp(62px, 9vw, 122px) 0 clamp(40px, 6vw, 72px);
}

.foundation-eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.foundation-hero h1,
.not-found h1 {
  max-width: 900px;
  margin: 10px 0 20px;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.foundation-hero > p:last-child,
.not-found > p {
  max-width: 740px;
  margin: 0;
  color: rgba(244, 247, 245, 0.72);
  font-size: 1rem;
  line-height: 1.75;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.foundation-card,
.foundation-panel,
.not-found {
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background:
    radial-gradient(circle at 12% 5%, rgba(24, 228, 216, 0.07), transparent 34%),
    rgba(2, 9, 9, 0.88);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.34);
}

.foundation-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
}

.foundation-card h2,
.foundation-panel h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.45;
}

.foundation-card a {
  color: var(--green);
  font-size: clamp(0.92rem, 1.8vw, 1.06rem);
  overflow-wrap: anywhere;
}

.foundation-panel {
  margin-top: 20px;
  padding: clamp(28px, 4vw, 48px);
}

.foundation-panel p,
.foundation-panel li,
.release-empty {
  color: rgba(244, 247, 245, 0.74);
  font-size: 1rem;
  line-height: 1.75;
}

.foundation-panel ul {
  margin: 18px 0 0;
  padding-left: 1.25rem;
}

.foundation-panel li + li {
  margin-top: 8px;
}

.foundation-warning {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(91, 152, 130, 0.18);
  color: var(--muted);
}

.release-empty {
  margin: 0;
}

.release-list {
  display: grid;
  gap: 16px;
}

.release-entry {
  padding: 22px;
  border: 1px solid rgba(91, 152, 130, 0.22);
}

.foundation-footer {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid rgba(57, 255, 40, 0.12);
  text-align: center;
}

.foundation-footer a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.not-found-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 70% 20%, rgba(24, 228, 216, 0.09), transparent 30%),
    #000;
}

.not-found {
  width: min(100%, 820px);
  padding: clamp(34px, 7vw, 76px);
}

.not-found h1 {
  font-size: clamp(2.7rem, 8vw, 5rem);
}

.foundation-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 20px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: #001500;
  background: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.foundation-secondary-link {
  display: inline-block;
  margin-left: 22px;
  color: #fff;
  text-underline-offset: 5px;
}

.foundation-brand:focus-visible,
.foundation-back:focus-visible,
.foundation-card a:focus-visible,
.foundation-footer a:focus-visible,
.foundation-action:focus-visible,
.foundation-secondary-link:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 5px;
}

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

@media (max-width: 560px) {
  .foundation-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .foundation-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .foundation-action {
    width: 100%;
  }

  .foundation-secondary-link {
    display: block;
    margin: 22px 0 0;
    text-align: center;
  }
}

