@font-face {
  font-family: "Caveat";
  src: url("fonts/Caveat.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cg-cream: #faf6ec;
  --cg-cream2: #f3ecdc;
  --cg-paper: #fffefa;
  --cg-ink: #221f1a;
  --cg-ink2: #4a463e;
  --cg-ink3: #8a8478;
  --cg-hair: rgba(34, 31, 26, 0.08);
  --cg-sage: #6e8259;
  --cg-sage-deep: #4e5f3d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Geist", -apple-system, "Helvetica Neue", sans-serif;
  background: var(--cg-cream);
  color: var(--cg-ink);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--cg-cream2);
  border-bottom: 1px solid var(--cg-hair);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Caveat", cursive;
  font-size: 28px;
  line-height: 1;
  color: var(--cg-ink);
}

/* Official App Store badge — https://developer.apple.com/app-store/marketing/guidelines/ */

.app-store-badge {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.app-store-badge:hover {
  opacity: 0.85;
}

.app-store-badge img {
  display: block;
  height: auto;
  width: auto;
}

.app-store-badge--header img {
  height: 32px;
}

.app-store-badge--hero img {
  height: 44px;
}

/* Hero */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.hero-inner {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.hero-headline {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 6vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-subcopy {
  font-size: 16px;
  line-height: 1.5;
  color: var(--cg-ink2);
  margin-bottom: 32px;
}

.hero-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-qr-link {
  display: block;
  padding: 12px;
  background: var(--cg-paper);
  border: 1px solid var(--cg-hair);
  border-radius: 16px;
  line-height: 0;
  transition: border-color 0.15s ease;
}

.hero-qr-link:hover {
  border-color: rgba(34, 31, 26, 0.14);
}

.hero-qr-link img {
  display: block;
  width: 132px;
  height: 132px;
}

.hero-qr-label {
  font-size: 13px;
  color: var(--cg-ink3);
}

/* Footer */

.site-footer {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--cg-ink3);
  border-top: 1px solid var(--cg-hair);
}

.site-footer a {
  color: var(--cg-sage);
  text-decoration: none;
}

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