:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #102033;
  --muted: #5f6f83;
  --line: #dbe3ec;
  --brand: #0969da;
  --brand-dark: #0753ad;
  --accent: #0f766e;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

body {
  margin: 0;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.header-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.brand {
  font-weight: 800;
  color: var(--text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
}

.nav a:hover {
  background: #eef6ff;
  text-decoration: none;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.language-picker select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 4px 8px;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

section {
  margin: 34px 0;
}

.hero {
  padding: clamp(42px, 8vw, 86px) 0 28px;
}

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

h1,
h2 {
  line-height: 1.08;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 36px);
}

.lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 23px);
}

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

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.quick-actions a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.quick-actions a:hover {
  border-color: #b8d5f4;
  background: #fbfdff;
  text-decoration: none;
}

.quick-actions span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e6f2ff;
  color: var(--brand);
  font-weight: 850;
}

.quick-actions strong {
  font-size: 17px;
  line-height: 1.25;
}

.quick-actions em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
}

.button:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.button-secondary {
  background: #fff;
  color: var(--brand);
}

.button-secondary:hover {
  background: #eef6ff;
}

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

.feature,
.callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature {
  display: flex;
  min-height: 134px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: var(--text);
}

.feature strong {
  font-size: 19px;
}

.feature span,
.note {
  color: var(--muted);
}

.callout {
  padding: 24px;
}

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

.mobile-list {
  display: none;
}

.mobile-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mobile-card span {
  color: var(--muted);
}

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

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

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

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

.status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 750;
}

.status.ok {
  background: #ecfdf5;
  color: #047857;
}

.bracket {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.round {
  min-width: 180px;
}

.round h2 {
  font-size: 18px;
}

.slot {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.poster-tool {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.poster-form {
  display: grid;
  gap: 12px;
}

.poster-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.poster-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  padding: 9px 11px;
}

.poster-tool canvas {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1f38;
}

.footer {
  margin-top: 64px;
  padding: 28px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-tools {
    align-items: flex-start;
    justify-content: flex-start;
  }

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

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

  .poster-tool {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 24px, 1120px);
  }

  section {
    margin: 26px 0;
  }

  .site-header {
    gap: 10px;
    padding: 10px 12px;
  }

  .header-tools {
    width: 100%;
    gap: 10px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .nav a {
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13px;
  }

  .language-picker {
    width: 100%;
    justify-content: space-between;
  }

  .language-picker select {
    min-width: 150px;
  }

  .hero {
    padding: 28px 0 12px;
  }

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

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .quick-actions a {
    min-height: 86px;
  }

  h1 {
    font-size: 34px;
  }

  .lede {
    font-size: 17px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .table-wrap {
    display: none;
  }

  .mobile-list {
    display: grid;
    gap: 10px;
  }
}

@media print {
  .site-header,
  .footer,
  .actions,
  .button,
  .callout {
    display: none;
  }

  body {
    background: #fff;
  }

  main {
    width: 100%;
  }

  .hero {
    padding: 0 0 16px;
  }

  table {
    min-width: 0;
    font-size: 11px;
  }
}
