:root {
  color-scheme: light;
  --ink: #191713;
  --muted: #6f6a61;
  --line: #ddd7cc;
  --paper: #f7f3eb;
  --surface: #fffdf8;
  --accent: #e95d3f;
  --accent-dark: #b83f27;
  --shadow: 0 18px 50px rgb(80 58 35 / 10%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgb(233 93 63 / 13%), transparent 27rem),
    linear-gradient(180deg, #fffaf1 0, var(--paper) 42rem);
}

a {
  color: inherit;
}

.hero,
main,
nav,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  padding: 40px 0 76px;
}

.brand {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

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

.hero .eyebrow {
  margin-top: 90px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 840px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .96;
}

.lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 253 248 / 70%);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  border-color: #aea597;
  background: var(--surface);
}

.button.primary {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.button.primary:hover {
  background: #302d28;
}

.button.full {
  width: 100%;
  margin-top: 10px;
}

.preview-badge,
.status,
.tags span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgb(233 93 63 / 10%);
  font-size: 12px;
  font-weight: 700;
}

.section-heading {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.section-heading > p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.55;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 80px;
}

.package-card,
.info-card,
.readme,
.release-row {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(255 253 248 / 78%);
  box-shadow: var(--shadow);
}

.package-card {
  padding: 28px;
}

.package-card-top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.package-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.package-icon.large {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  font-size: 38px;
}

.publisher {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.package-card h3 {
  margin: 0;
  font-size: 20px;
}

.package-card > p {
  min-height: 52px;
  margin: 22px 0;
  color: var(--muted);
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.package-meta {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

code {
  overflow-wrap: anywhere;
  color: #655c50;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

nav > a:last-child {
  color: var(--muted);
  font-size: 14px;
}

.package-page {
  padding: 72px 0;
}

.package-hero {
  display: flex;
  max-width: 900px;
  gap: 24px;
  align-items: center;
  margin-bottom: 56px;
}

.package-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.package-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.readme,
.info-card {
  padding: 30px;
}

.readme h1,
.readme h2,
.info-card h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.readme p {
  color: #4f4a43;
  line-height: 1.75;
}

dl {
  margin: 24px 0;
}

dl div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 0;
  font-size: 14px;
}

.releases {
  margin-top: 60px;
}

.release-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 18px 20px;
}

.release-row > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.empty {
  display: grid;
  min-height: 80vh;
  place-content: center;
  justify-items: start;
}

.empty h1 {
  max-width: 720px;
  margin-bottom: 30px;
}

@media (max-width: 760px) {
  .hero {
    padding-bottom: 54px;
  }

  .hero .eyebrow {
    margin-top: 62px;
  }

  .package-grid,
  .package-layout {
    grid-template-columns: 1fr;
  }

  .section-heading,
  footer {
    align-items: start;
    flex-direction: column;
  }

  .package-hero {
    align-items: start;
    flex-direction: column;
  }

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