:root {
  color-scheme: dark;
  --background: #111111;
  --panel: #1a1a1a;
  --panel-light: #222222;
  --border: #383838;
  --text: #f4f4f1;
  --muted: #a9a9a2;
  --accent: #d1ad2d;
  --accent-text: #171300;
  --max-width: 980px;
  --page-padding: clamp(20px, 5vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

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

button,
select,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-header,
.page-footer,
.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-right: var(--page-padding);
  padding-left: var(--page-padding);
}

.page-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.brand-mark::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.header-label {
  color: var(--muted);
  font-size: 14px;
}

.page-shell {
  padding-top: 56px;
  padding-bottom: 72px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 48px;
  align-items: end;
  padding-bottom: 48px;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.intro p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.device-picker {
  display: grid;
  gap: 8px;
}

.device-picker span,
.section-label,
dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.device-picker select {
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.device-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 36px;
  align-items: center;
  padding: 28px;
  border-left: 5px solid var(--accent);
  background: var(--panel);
}

.section-label {
  margin-bottom: 7px;
}

.device-summary h2,
.section-header h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.device-summary dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
}

.device-summary dl div {
  min-width: 0;
}

dt,
dd {
  margin: 0;
}

dd {
  margin-top: 4px;
  font-weight: 700;
}

.content-section {
  padding-top: 64px;
}

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

.section-header > p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 14px;
}

.manual-panel {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px;
  background: var(--panel);
}

.manual-panel h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.manual-panel p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.manual-button {
  display: inline-flex;
  min-width: 150px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.manual-button.is-disabled {
  background: var(--panel-light);
  color: var(--muted);
  cursor: not-allowed;
}

.release-list {
  display: grid;
}

.release-entry {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.release-entry header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.release-entry header div {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.release-entry strong {
  font-size: 21px;
}

.release-entry header span,
.release-entry time {
  color: var(--muted);
  font-size: 14px;
}

.release-entry ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.release-entry li::marker {
  color: var(--accent);
}

.empty-state {
  padding: 26px 0;
  color: var(--muted);
}

.feed-status {
  margin: 44px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.page-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .header-label {
    display: none;
  }

  .page-shell {
    padding-top: 38px;
  }

  .intro,
  .device-summary {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 28px;
  }

  .device-summary {
    gap: 24px;
  }

  .device-summary dl {
    grid-template-columns: repeat(3, 1fr);
  }

  .manual-panel {
    display: grid;
  }

  .manual-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .device-summary dl {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .device-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }

  dd {
    margin-top: 0;
  }

  .section-header,
  .release-entry header {
    align-items: start;
  }

  .release-entry header div {
    display: grid;
    gap: 2px;
  }
}
