:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --gold: #c0955b;
  --gold-hover: #a87f4a;
  --charcoal: #1c1c1c;
  --charcoal-deep: #1a1a1a;
  --muted: #6b6b6b;
  --border-soft: #e5e1db;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--gold) 78%, var(--charcoal)) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-button {
  display: none;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--gold) 78%, var(--charcoal));
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--gold);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--foreground);
  background: var(--background);
  font-family: Manrope, system-ui, sans-serif;
}

a,
button,
[role="button"],
label,
summary,
select,
input[type="checkbox"],
input[type="radio"],
input[type="submit"],
input[type="button"] {
  cursor: pointer;
}

a:disabled,
button:disabled,
:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

.wrap {
  width: min(80rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rule {
  display: block;
  width: 4rem;
  height: 1px;
  margin: 1.5rem auto 0;
  background: var(--gold);
}

.topbar {
  background: var(--charcoal-deep);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.875rem;
}

.brand img {
  display: block;
  width: auto;
  max-width: 12.5rem;
  height: 2.4rem;
  object-fit: contain;
}

.topbar nav {
  display: flex;
  gap: 1.75rem;
}

.topbar nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar nav a:hover {
  color: var(--gold);
}

.intro,
.apps,
.endpoints {
  background: #fff;
}

.intro {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.intro h1,
.section-head h2 {
  margin: 0.85rem 0 0;
  color: var(--charcoal);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lede {
  max-width: 38rem;
  margin: 1.35rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-soft);
  background: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pill i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--gold);
}

.pill.is-ok i {
  background: #3d8b5c;
}

.pill.is-warn i {
  background: #b45309;
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.apps {
  padding: 1rem 0 4rem;
}

.section-head {
  margin-bottom: 2.75rem;
  text-align: center;
}

.app-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--border-soft);
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--border-soft);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.app-card:first-child {
  border-top: 0;
}

.app-card:hover {
  background: #faf9f7;
}

.app-card h3 {
  margin: 0.7rem 0 0;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.app-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-card .link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.endpoints {
  padding: 0 0 5.5rem;
}

.endpoint-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-soft);
}

.endpoint-list li {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.3rem 1rem;
  padding: 1.05rem 1.35rem;
  border-top: 1px solid var(--border-soft);
  background: #fff;
}

.endpoint-list li:first-child {
  border-top: 0;
}

.endpoint-list li:hover {
  background: #faf9f7;
}

.method,
.path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.method {
  color: var(--gold);
  font-weight: 700;
}

.path {
  color: var(--charcoal);
}

.endpoint-list span {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
}

footer {
  margin-top: auto;
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  justify-content: center;
  padding: 1.25rem 0;
  font-size: 0.82rem;
}

@media (min-width: 768px) {
  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-card {
    border-top: 0;
    border-left: 1px solid var(--border-soft);
  }

  .app-card:first-child {
    border-left: 0;
  }

  .endpoint-list li {
    grid-template-columns: 4.5rem 22rem minmax(0, 1fr);
    align-items: center;
  }

  .endpoint-list span {
    grid-column: auto;
  }
}
