@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: #fff8f6;
  --card: #fffdfb;
  --ink: #362433;
  --muted: #654c59;
  --teal: #176763;
  --teal-deep: #0d504d;
  --berry: #962b58;
  --line: #e8d3d9;
  --aqua: #dbeeed;
  --blush: #f8dfeb;
  --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(--blush); color: var(--ink); }
:focus-visible { outline: 3px solid var(--berry); 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(--teal); 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(--berry); text-decoration: underline; }

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding-block: clamp(2rem, 3.5vw, 3.25rem);
}
.wordmark { width: min(100%, 30rem); height: auto; }
.intro { max-width: 26rem; }
.intro::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: .2rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: var(--teal);
}
.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 {
  display: grid;
  align-items: center;
  background: #f8dce1 url("./assets/sweaty-bingo-backdrop.png") center / cover;
}
.release-art img { width: 100%; height: auto; }
.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: var(--aqua);
  color: var(--teal-deep);
  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: var(--blush); color: var(--berry); }
.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(--teal);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .16s ease;
}
.download:hover { background: var(--teal-deep); }
.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(--teal); font-weight: 700; }
.install a { color: var(--teal); }
.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; }
  .wordmark { width: min(100%, 26rem); }
  .intro::before { margin-bottom: .75rem; }
  .release { grid-template-columns: 1fr; }
  .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; }
}
