:root {
  --ink: #1c1915;
  --muted: #5e584f;
  --bg: #f4f0e8;
  --paper: #fffcf7;
  --line: #e3dcd0;
  --accent: #0e7490;
  --accent-dark: #155e75;
  --night: #1b2430;
  --night-soft: #243044;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
}

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

.site-header {
  background: var(--night);
  color: #f7f4ee;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.header-inner,
.page,
.site-footer .footer-inner {
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.nav a {
  border-bottom: 1px solid transparent;
}

.nav a[aria-current="page"] {
  border-bottom-color: #7dd3e8;
}

.nav-label {
  color: #7dd3e8;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.page {
  padding: 2.5rem 0 3.5rem;
}

.hero {
  background: var(--night);
  color: #f7f4ee;
}

.hero-inner {
  width: min(52rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.hero h1,
.hero .lede {
  color: #f7f4ee;
}

.hero .lede {
  max-width: 36rem;
  margin-bottom: 0;
}

.hero .meta {
  color: #7dd3e8;
}

.home .header-inner,
.home .page,
.home .site-footer .footer-inner {
  width: min(52rem, calc(100% - 2rem));
}

.home .page {
  padding-top: 1.75rem;
}

.pitches {
  display: grid;
  gap: 0.85rem;
}

.pitch {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.45rem;
}

.pitch-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.pitch-head .meta,
.pitch-head h2 {
  margin: 0;
}

.pitch-head h2 {
  margin-top: 0.15rem;
}

.pitch-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex: none;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 25, 21, 0.16);
}

.pitch h2 {
  margin-top: 0.35rem;
}

.pitch p {
  margin: 0.35rem 0 0;
}

.stores {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  margin-top: auto;
  padding-top: 1rem;
}

.store-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.store-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

.store-apple {
  height: 40px;
}

.store-google {
  height: 60px;
}

.store-link + .store-link .store-google {
  margin-left: -6px;
}

.pitch-cta {
  display: inline-block;
  margin-top: 1rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 650;
  text-decoration: none;
}

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

.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.5rem 2.25rem;
}

h1,
h2,
h3 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.2;
  font-weight: 650;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
}

h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.35rem;
}

h3 {
  margin: 1.4rem 0 0.35rem;
  font-size: 1.05rem;
}

.lede {
  font-size: 1.2rem;
  margin-top: 0;
}

.meta {
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.cards {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}

.card {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fbf8f3;
}

.card:hover {
  border-color: #b7d4dc;
}

.card strong {
  display: block;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  margin-bottom: 0.2rem;
}

.card span {
  color: var(--muted);
  font-size: 0.98rem;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0.55rem 0 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.footer-inner {
  padding: 1.25rem 0 2rem;
}

.copyright {
  margin: 0.45rem 0 0;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .sheet {
    padding: 1.4rem 1.1rem 1.6rem;
  }
}
