/* One theme: black text on the app's My Pieces yellow. */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/instrument-sans.woff2') format('woff2');
}

:root {
  --background: #ffe666;
  --text: #000000;
  --gutter: 16px;
  --width: 1080px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: block;
}

.brand img {
  width: auto;
  height: 36px;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 16px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Landing: the logo, centred. */

.landing main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(64px, 10.8vw, 118px);
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px var(--gutter);
}

.landing h1 {
  width: clamp(200px, 31vw, 340px);
}

.landing img {
  width: 100%;
}

.landing p {
  font-size: clamp(28px, 3.65vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 96px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--text);
  color: var(--text);
  font-size: 15px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Text pages: privacy, terms, support */

.prose {
  max-width: 68ch;
  margin-top: 48px;
}

.prose h1 {
  font-size: clamp(36px, 5vw, 52px);
}

.prose .updated {
  margin-top: 12px;
  color: var(--text);
  font-size: 15px;
}

.prose h2 {
  margin-top: 44px;
  font-size: 24px;
}

.prose p,
.prose ul {
  margin-top: 14px;
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

@media (max-width: 860px) {
  .site-footer {
    margin-top: 64px;
  }
}

@media (max-width: 420px) {
  .site-nav {
    gap: 16px;
  }
}
