/* Natsnak landing page: the app's palette (apps/mobile/src/theme.ts), a dark room lit by one bedside lamp. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --nat: #1d1934;
  --skumring: #2b2550;
  --lampe: #f4b860;
  --lampe-tekst: #2a1a05;
  --maane: #f1e6d3;
  --taage: #b3aacb;
  --rose: #ee9dac;
  --streg: #463e73;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--nat);
  color: var(--maane);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--lampe);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--maane);
}

:focus-visible {
  outline: 3px solid var(--lampe);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--lampe);
  color: var(--lampe-tekst);
  padding: 0.5rem 1rem;
  z-index: 1;
}

header.site {
  padding: 1.5rem 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--maane);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  min-height: 44px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

nav.site ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav.site a {
  display: inline-block;
  padding: 0.6rem 0;
  color: var(--taage);
  text-decoration: none;
}

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--maane);
  text-decoration: underline;
}

main {
  padding-bottom: 4rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 3rem 0 0.75rem;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 2rem 0 0.4rem;
}

p,
li {
  max-width: 38rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--taage);
  margin: 0 0 2rem;
}

.features {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--skumring);
  border-radius: 22px;
  padding: 1.25rem 1.5rem;
}

.features h2 {
  font-size: 1.1875rem;
  margin: 0 0 0.3rem;
}

.features p {
  margin: 0;
  color: var(--taage);
}

.features li:first-child h2 {
  color: var(--rose);
}

.note {
  border-left: 3px solid var(--lampe);
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--maane);
}

.stores {
  color: var(--taage);
}

details {
  border-top: 1px solid var(--streg);
  padding: 0.25rem 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--streg);
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0;
  min-height: 44px;
}

details p {
  margin: 0 0 1rem;
  color: var(--taage);
}

.updated {
  color: var(--taage);
  font-size: 0.9375rem;
}

footer.site {
  border-top: 1px solid var(--streg);
  padding: 2rem 0 3rem;
  color: var(--taage);
  font-size: 0.9375rem;
}

footer.site p {
  margin: 0.25rem 0;
}

footer.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

footer.site a {
  display: inline-block;
  padding: 0.5rem 0;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .features li {
    padding: 1.5rem;
  }

  .wrap.wide {
    max-width: 60rem;
  }
}
