:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #eef2f5;
  --text: #17202a;
  --muted: #5d6875;
  --line: #d8dee6;
  --accent: #216f6b;
  --accent-strong: #174d4b;
  --code-bg: #f3f6f8;
  --code-text: #26313d;
  --shadow: 0 12px 30px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  color: #1f3f46;
  background: #edf4f4;
  border-radius: 4px;
  padding: 0.08em 0.28em;
}

pre {
  margin: 16px 0 0;
  overflow-x: auto;
  color: var(--code-text);
  background: var(--code-bg);
  border: 1px solid #d4dde5;
  border-radius: 8px;
  padding: 18px;
  line-height: 1.55;
}

pre code {
  font-size: 0.9rem;
  color: inherit;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 68px;
}

.brand {
  color: var(--text);
  font-weight: 760;
  font-size: 1.05rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-muted);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent-strong);
  background: #e7f1f0;
}

.section,
.section-band {
  padding: 78px 0;
}

.section-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding-top: 82px;
}

.page-hero {
  padding-top: 70px;
  padding-bottom: 72px;
}

.page-hero h1 {
  max-width: 980px;
}

.hero-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 44px;
  align-items: start;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.55fr);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 5.2vw, 4.4rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 14px 0 0;
  color: var(--muted);
}

.plain-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 8px;
}

.plain-list code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lead {
  max-width: 760px;
  font-size: 1.13rem;
  color: #394552;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  font-weight: 680;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.link-card {
  display: block;
  color: inherit;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: #aec8c5;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.link-card h3::after {
  content: " ->";
  color: var(--accent);
}

.status-panel,
.item,
.placeholder,
.workflow article,
.code-grid article,
.wide-code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.section-band .status-panel,
.section-band .item,
.section-band .placeholder,
.section-band .workflow article,
.section-band .code-grid article,
.section-band .wide-code {
  background: #fbfcfd;
}

.status-panel {
  box-shadow: var(--shadow);
}

.fps-logo {
  display: block;
  width: min(300px, 100%);
  height: auto;
  margin: -8px auto 16px;
}

.status-panel h2 {
  font-size: 1.1rem;
}

dl {
  margin: 18px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.86rem;
}

dd {
  margin: 0;
  font-weight: 650;
}

.stack,
.cards,
.placeholder-grid,
.workflow,
.code-grid {
  display: grid;
  gap: 18px;
}

.stack {
  grid-template-columns: 1fr;
}

.cards,
.placeholder-grid,
.workflow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

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

.code-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.wide-code {
  margin-top: 18px;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-weight: 760;
}

.table-wrap {
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--text);
  background: var(--surface-muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

tr:last-child td {
  border-bottom: 0;
}

.placeholder {
  border-style: dashed;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-grid,
  .two-column,
  .cards,
  .placeholder-grid,
  .workflow,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .section-band {
    padding: 58px 0;
  }
}

@media (max-width: 560px) {
  .container,
  .nav {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 2.25rem;
  }

  .nav-links a {
    padding: 0 8px;
  }

  .status-panel,
  .item,
  .placeholder,
  .workflow article,
  .code-grid article,
  .wide-code {
    padding: 18px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
