:root {
  color-scheme: dark;
  --bg: #171c18;
  --surface: #202720;
  --paper: #eee9db;
  --muted: #b2b8a9;
  --line: #424e40;
  --accent: #ddcb96;
  font-family: system-ui, sans-serif;
  color: var(--paper);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 90% 5%, #2c382941, transparent 50%);
  min-height: 100vh;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
a:hover {
  color: var(--accent);
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6%;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.wordmark {
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
  text-decoration: none;
}
.wordmark span {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 0.9rem;
}
.account-label {
  color: var(--muted);
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 62px 36px 100px;
  min-height: 80vh;
}
.intro {
  max-width: 700px;
  margin-bottom: 42px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 650;
}
h1 {
  font:
    normal clamp(2.7rem, 6vw, 4.8rem)/1.04 Georgia,
    serif;
  letter-spacing: -0.04em;
  margin: 18px 0 22px;
}
h2 {
  font:
    normal 2rem/1.15 Georgia,
    serif;
  letter-spacing: -0.02em;
  margin: 12px 0;
}
h3 {
  font:
    normal 1.5rem/1.25 Georgia,
    serif;
  margin: 0 0 20px;
}
h4 {
  font-size: 1rem;
  margin: 10px 0;
}
.lede {
  font-size: 1.08rem;
  max-width: 550px;
  color: var(--muted);
  line-height: 1.7;
}
p,
li {
  line-height: 1.65;
}
p {
  color: var(--muted);
}
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  margin: 22px 0;
  border-radius: 4px;
}
.narrow {
  max-width: 570px;
}
.panel > p:first-of-type {
  margin-bottom: 24px;
}
.hint {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
}
.availability {
  border-left: 3px solid var(--accent);
  padding: 14px;
}
.local-banner {
  margin-top: 24px;
  padding: 18px;
  border: 1px dashed var(--accent);
  color: var(--accent);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--paper);
  font-size: 0.85rem;
}
label {
  display: block;
  font-size: 0.86rem;
  margin: 18px 0 8px;
  color: var(--paper);
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #697460;
  background: #141a14;
  color: var(--paper);
  padding: 13px;
  border-radius: 2px;
  min-height: 48px;
}
input[type="file"] {
  padding: 12px;
  font-size: 0.86rem;
}
input[type="file"]::file-selector-button {
  background: var(--surface);
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 7px;
  margin-right: 12px;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
button,
.button {
  font: inherit;
  cursor: pointer;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #172017;
  padding: 13px 19px;
  font-size: 0.87rem;
  font-weight: 650;
  border-radius: 2px;
  margin-top: 18px;
  min-height: 44px;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  background: #ede0b5;
  color: #172017;
}
button.secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid #697460;
}
button.secondary:hover {
  background: #303b2f;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button + button {
  margin-left: 10px;
}
:focus-visible {
  outline: 3px solid #e9dbaa;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  background: var(--accent);
  color: var(--bg);
  padding: 12px;
  z-index: 1;
}
.skip:focus {
  top: 10px;
}
#notice:not(:empty) {
  padding: 16px 20px;
  margin-bottom: 26px;
  border: 1px solid #c7b47e;
  color: #f4e5b7;
  border-radius: 3px;
  max-width: 900px;
}
#notice.error {
  border-color: #d8a895;
  color: #ffccbd;
}
.account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.account-top p {
  overflow-wrap: anywhere;
}
.tabs {
  border-bottom: 1px solid var(--line);
  margin: 24px 0 32px;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 14px;
}
.tabs a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  padding: 10px 0;
}
.tabs a[aria-current="page"] {
  color: var(--accent);
  box-shadow: 0 2px var(--accent);
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.section-top label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  white-space: nowrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
  border-radius: 4px;
}
.card h4 {
  font:
    normal 1.35rem Georgia,
    serif;
  margin: 12px 0;
}
.card code {
  font-size: 0.7rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.badge {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  background: #394634;
  color: #e0e7d6;
  border: 1px solid #65725c;
  display: inline-block;
  border-radius: 2px;
}
.badge.revoked {
  background: #563e33;
  border-color: #96654f;
}
.card p {
  margin: 12px 0;
  font-size: 0.86rem;
}
.empty {
  padding: 38px 24px;
  border: 1px dashed var(--line);
  text-align: center;
  grid-column: 1/-1;
}
.empty a {
  color: var(--accent);
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.facts dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.facts dd {
  margin: 7px 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
.installation {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.installation code {
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}
.installation .badge {
  margin: 0 10px 0 0;
}
.key-panel {
  border-color: var(--accent);
}
#activation-key {
  font-family: monospace;
  font-size: 0.82rem;
}
.steps {
  padding-left: 22px;
  max-width: 750px;
  margin-bottom: 26px;
}
.steps li {
  padding: 5px 0;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th {
  color: var(--muted);
  font-weight: 500;
}
td button {
  margin-top: 0;
}
.file-summary {
  font-size: 0.86rem;
}
.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checkbox input {
  width: 20px;
  min-height: 20px;
  flex: none;
}
.checkbox span {
  line-height: 1.5;
}
.review {
  margin-bottom: 25px;
}
.review > p {
  overflow-wrap: anywhere;
}
.view {
  scroll-margin-top: 24px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 6%;
  font-size: 0.78rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  main {
    padding: 40px 22px 70px;
  }
  .masthead {
    padding: 22px;
  }
  .masthead nav {
    gap: 12px;
  }
  .account-label {
    display: none;
  }
  .intro {
    margin-bottom: 28px;
  }
  .panel {
    padding: 22px;
  }
  .account-top,
  .section-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .account-top button {
    margin: 0 0 12px;
  }
  .tabs {
    gap: 24px;
  }
  .section-top label {
    width: 100%;
    justify-content: space-between;
  }
  .section-top select {
    max-width: 220px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  footer {
    padding: 24px 22px;
    flex-direction: column;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.12s,
      color 0.12s;
  }
}
