/* sharepaws.app: one stylesheet for every page. Colours follow the app's tokens
   (apps/mobile/src/theme/tokens.ts); the app's Fraunces and Manrope are bundled font files,
   so the site uses the closest system faces instead. */

:root {
  color-scheme: light dark;
  --paper: #faf6f0;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #6b655e;
  --accent: #f0722f;
  --accent-ink: #1c1917;
  --accent-soft: #fde6d6;
  --line: rgba(0, 0, 0, 0.08);
  --image-outline: rgba(0, 0, 0, 0.1);
  --shadow-subtle: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --display: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1917;
    --surface: #26221f;
    --ink: #faf6f0;
    --muted: #b3aca3;
    --accent-soft: #3a2a20;
    --line: rgba(255, 255, 255, 0.1);
    --image-outline: rgba(255, 255, 255, 0.1);
    --shadow-subtle: 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

.page {
  max-width: calc(40rem + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header: the paw icon and the name, one link home. */
.site-header {
  padding: 16px 0 8px;
}

.home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.home img {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--image-outline);
}

/* Text */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: 2.125rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.27;
  letter-spacing: -0.01em;
  margin: 40px 0 8px;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.33;
  margin: 24px 0 4px;
}

p,
li,
dd {
  text-wrap: pretty;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 8px;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink);
}

.updated {
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.note {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease-out;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* An email address or a step on its own line: a full-height tap target. */
.tap {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.steps {
  font-weight: 600;
}

/* The one button: tangerine with dark text, as in the app. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
  transition: transform 150ms ease-out, filter 150ms ease-out;
}

.button:hover {
  filter: brightness(1.05);
}

.button:active {
  transform: scale(0.96);
}

.store {
  color: var(--muted);
}

/* The home page. */
.hero h1 {
  font-size: 2.5rem;
  line-height: 1.12;
  margin: 40px 0 16px;
}

/* The open page: the two store badges, sized to look equal, and their trademark line. */
.badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.badges img {
  display: block;
  height: 40px;
  width: auto;
}

.badges img.google-play {
  height: 60px;
}

.trademark {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Footer */
.site-footer {
  margin-top: 56px;
  padding: 16px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}

.site-footer p {
  margin: 8px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  a,
  .button {
    transition: none;
  }

  .button:active {
    transform: none;
  }
}
