@font-face {
  font-family: 'PPMuseum';
  src: url('/fonts/PPMuseum-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;

  --bg: #151718;
  --text: #ECEDEE;
  --text-secondary: #999EA4;
  --stroke: #353535;
  --card-bg: #292A2C;
  --accent: #DE8D5B;
  --accent-on: #151718;
  --flower-blue: #75A5ED;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFCF5;
    --text: #11181C;
    --text-secondary: #7B7368;
    --stroke: #E5DDC8;
    --card-bg: #EFE8D9;
    --accent-on: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

.display,
.title,
.subtitle,
.headline {
  font-family: 'PPMuseum', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

.display { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
.title { font-size: clamp(28px, 3.5vw, 36px); line-height: 1.1; }
.subtitle { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; color: var(--text-secondary); }
.headline { font-size: 18px; line-height: 1.3; }

p { margin: 0; }
.callout { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  z-index: 1;
}

.flower {
  position: absolute;
  top: 0;
  right: -16px;
  width: clamp(200px, 32vw, 320px);
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.page > *:not(.flower) {
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  .flower { right: 0; width: 60vw; opacity: 0.7; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.brand-name {
  font-family: 'PPMuseum', serif;
  font-size: 21px;
  font-weight: 400;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand a:hover { text-decoration: none; }

.hero {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 12vh, 120px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 28ch;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 40px;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 128px;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-store {
  display: inline-block;
  height: 48px;
}

.app-store svg {
  height: 100%;
  width: auto;
  display: block;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

footer > * { flex: 0 1 auto; }

footer a:hover { color: var(--text); }

/* Terms page */
.doc {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.doc h2 {
  font-family: 'PPMuseum', serif;
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.doc h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 6px;
  color: var(--text);
}

.doc p, .doc li {
  font-size: 15px;
  color: var(--text-secondary);
}

.doc ul {
  margin: 6px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.back-link:hover { color: var(--text); text-decoration: none; }
