@font-face {
  font-family: Fraunces;
  src: url("./assets/fraunces.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("./assets/outfit.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fcf6eb;
  --card: #fffaf1;
  --ink: #2f1a33;
  --muted: #644d64;
  --plum: #763865;
  --line: #dfced6;
  --pink: #f6b5cf;
  --display: Fraunces, Georgia, serif;
  --body: Outfit, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 5px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
p { margin: 0; line-height: 1.55; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; }

.shell { width: min(72rem, calc(100% - 5rem)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 1;
  inset: .5rem auto auto .5rem;
  transform: translateY(-150%);
  background: var(--card);
  padding: .75rem 1rem;
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}
.brand img { flex: none; }
.brand-light { color: var(--plum); font-weight: 500; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
nav a, .profile-link { font-size: .98rem; font-weight: 600; }
nav a { padding-block: .8rem; text-decoration: none; white-space: nowrap; }
nav a:hover, .profile-link:hover { color: var(--plum); text-decoration: underline; }

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 3rem;
  padding-block: clamp(3rem, 7vw, 5rem) clamp(3rem, 6vw, 4.5rem);
}
h1 {
  font-size: clamp(4rem, 10vw, 6rem);
  line-height: .91;
  letter-spacing: -.04em;
}
h1 span { color: var(--plum); }
.intro { max-width: 26rem; padding-bottom: .18rem; }
.intro-star { display: block; width: 2.5rem; color: var(--plum); margin-bottom: 1.15rem; }
.intro p { font-size: clamp(1.17rem, 2.2vw, 1.52rem); line-height: 1.38; }
.section-heading { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.1rem; }
.section-heading h2 { font-size: 1.6rem; }
.rule { height: 1px; background: var(--line); flex: 1; }
.release {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.release-art { position: relative; min-height: 25rem; background: #351e43; }
.release-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.release-copy {
  align-self: center;
  padding: clamp(1.75rem, 4.2vw, 3.65rem);
}
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.badge {
  background: #ede2f6;
  color: #502f63;
  border-radius: 99px;
  padding: .32rem .65rem;
  font-size: .79rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.badge-age { background: #f8dce8; color: #713251; }
.release h3 { font-size: clamp(2.55rem, 4.4vw, 4rem); line-height: .99; letter-spacing: -.035em; }
.release-copy > p:not(.release-meta) { color: var(--muted); font-size: 1.13rem; margin-top: 1rem; max-width: 34ch; }
.download {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  gap: 1.35rem;
  padding: .7rem 1.15rem;
  margin-top: 1.55rem;
  border-radius: .55rem;
  background: var(--plum);
  color: #fff9f3;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .16s ease;
}
.download:hover { background: #5f2751; }
.download:active { background: var(--ink); }
.release-meta { margin-top: .8rem; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.release-meta span { margin-inline: .25rem; }

.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-block: 2rem;
  margin-block: 3.5rem 2.5rem;
  border-top: 1px solid var(--line);
}
.install h2 { font-size: clamp(1.65rem, 3.4vw, 2.2rem); line-height: 1.13; letter-spacing: -.025em; }
.install p { margin-top: .6rem; color: var(--muted); }
.install ol { margin: 0; padding-inline-start: 1.3rem; line-height: 1.55; }
.install li + li { margin-top: .45rem; }
.install li::marker { color: var(--plum); font-weight: 700; }
.install a { color: var(--plum); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner .brand { font-size: 1rem; }
.profile-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 2.5rem); }
  .masthead { grid-template-columns: 1fr; gap: 1.55rem; }
  .intro { display: flex; align-items: flex-start; gap: .85rem; }
  .intro-star { width: 1.35rem; flex: none; margin-top: .15rem; margin-bottom: 0; }
  .release { grid-template-columns: 1fr; }
  .release-art { min-height: 0; aspect-ratio: 1.5; }
  .install { grid-template-columns: 1fr; gap: 1.2rem; margin-block: 2.75rem 1.25rem; }
}

@media (max-width: 400px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { gap: .6rem; min-height: 4rem; }
  .header-inner .brand { font-size: .98rem; gap: .45rem; }
  .header-inner .brand img { width: 30px; height: 30px; }
  nav { gap: .65rem; }
  nav a, .profile-link { font-size: .85rem; }
  .release-copy { padding: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .download { transition: none; }
}
