:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --card: #fffefa;
  --ink: #1f2724;
  --muted: #6f7772;
  --line: #ded8cb;
  --green: #265744;
  --green-soft: #e5eee9;
  --accent: #c47d4c;
  --shadow: 0 16px 45px rgba(55, 48, 38, 0.08);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--green); }

code {
  padding: 2px 5px;
  background: #eeeae0;
  color: #625b50;
  font: 12px Consolas, "DM Mono", monospace;
}

.site-header {
  height: 68px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 42px;
  color: #e9eee9;
  background: #17201d;
  border-bottom: 1px solid #323c38;
}

.brand {
  color: #f6f0e5;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  align-self: stretch;
  display: flex;
  gap: 28px;
}

.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: #8f9c96;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: #ffffff;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
}

main {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.eyebrow,
.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.3;
}

p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.actions,
.overview-grid {
  display: grid;
  gap: 14px;
}

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

.data-card,
.notice,
.changelog-entry {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.data-card,
.notice {
  padding: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-item {
  min-width: 0;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}

.summary-item strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #ebe6dc;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.data-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fffefa;
  padding: 0 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

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

.compact-card {
  margin-top: 16px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.notice {
  max-width: 620px;
}

.changelog-list {
  display: grid;
  gap: 12px;
}

.changelog-entry {
  padding: 18px;
}

.changelog-entry header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.changelog-entry time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.changelog-entry ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #4f5753;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px 0;
  }

  .site-nav {
    min-height: 42px;
    gap: 18px;
  }

  main {
    width: min(100% - 28px, 1180px);
    padding-top: 24px;
  }

  .page-heading,
  .card-row,
  .changelog-entry header {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-grid,
  .summary-row {
    grid-template-columns: 1fr;
  }

  .data-card {
    overflow-x: auto;
  }
}
