/* coldbrewapp.com: plain and roomy, light or dark like the visitor's Mac, with the app icon's blue as the accent. */

:root {
  color-scheme: light dark;
  --page: #fbfbfd;
  --text: #1d1d1f;
  --muted: #515154;
  --faint: #86868b;
  --line: rgb(0 0 0 / 0.08);
  --accent: #0a66e8;
  --shadow: 0 24px 60px rgb(10 30 80 / 0.16), 0 0 0 1px rgb(0 0 0 / 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0d12;
    --text: #f5f5f7;
    --muted: rgb(245 245 247 / 0.74);
    --faint: rgb(245 245 247 / 0.5);
    --line: rgb(255 255 255 / 0.12);
    --accent: #5ab0ff;
    --shadow: 0 24px 60px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.08);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header and footer */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.brand:hover,
.site-header nav a:hover,
.site-footer a:hover {
  text-decoration: none;
  color: var(--text);
}

.site-header nav,
.site-footer nav {
  display: flex;
  gap: 22px;
}

.site-header nav a,
.site-footer a {
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 32px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

/* Home */

.hero {
  padding: 56px 0 16px;
  text-align: center;
}

.hero .icon {
  width: 128px;
  height: 128px;
}

h1 {
  margin: 20px auto 14px;
  max-width: 960px;
  font-size: clamp(42px, 7.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 21px);
}

.store {
  display: inline-block;
  line-height: 0;
}

.store img {
  width: auto;
  height: 54px;
}

.note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 15px;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-shot {
  display: block;
  max-width: 720px;
  margin: 56px auto 0;
}

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.pair figure {
  margin: 0;
}

.pair figcaption {
  margin-top: 12px;
  color: var(--faint);
  font-size: 15px;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 56px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

section {
  padding: 72px 0 8px;
}

h2 {
  margin: 0 auto 12px;
  max-width: 720px;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-lede {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 19px;
  text-align: center;
}

.feature + .feature {
  margin-top: 30px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

code {
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--line);
  font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.get {
  padding: 96px 0 40px;
  text-align: center;
}

.get .icon {
  width: 88px;
  height: 88px;
}

.get h2 {
  margin-top: 14px;
}

/* Support and privacy */

.page {
  max-width: 720px;
  margin: 24px auto 40px;
}

.page h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5.6vw, 48px);
  text-align: left;
}

.page .intro {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 19px;
}

.page .updated {
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 15px;
}

.page h2 {
  margin: 40px 0 8px;
  font-size: 24px;
  text-align: left;
}

.page h3 {
  margin: 26px 0 4px;
  font-size: 18px;
}

.page p,
.page li {
  color: var(--muted);
}

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

.page li + li {
  margin-top: 4px;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split picture {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 32px;
  }

  section {
    padding-top: 56px;
  }

  .shot {
    border-radius: 10px;
  }
}
