/* strays.app — shared styles */

:root {
  color-scheme: light;

  --bg: #fdfbf8;
  --ink: #1a1614;
  --muted: #6d635c;
  --orange: #ec6626;
  --orange-soft: #fbe6da;
  --line: #ece3d8;

  --wrap: 1080px;
  --shots-wrap: 960px; /* width of the screenshot strip */
  --radius: 18px;

  --font: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: #c94f14;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: clamp(56px, 9vw, 104px) 0 clamp(32px, 5vw, 56px);
}

.hero__logo {
  width: min(543px, 86%);
  height: auto;
  margin: 0 auto clamp(20px, 3vw, 28px);
  image-rendering: -webkit-optimize-contrast;
}

.hero__tagline {
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 auto;
  max-width: 17ch;
  text-wrap: balance;
}

.hero__sub {
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 44ch;
  text-wrap: balance;
}

.badge {
  display: inline-block;
  margin-top: clamp(26px, 4vw, 34px);
  transition: transform 0.15s ease;
}

.badge:hover {
  transform: translateY(-2px);
}

.badge svg,
.badge img {
  height: 56px;
  width: auto;
}

.badge__note {
  margin: 12px 0 0;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- screenshots ---------- */

.shots {
  padding: clamp(16px, 3vw, 32px) 0 clamp(48px, 7vw, 80px);
}

.shots__scroller {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 24px 24px;
  max-width: var(--shots-wrap);
  margin-inline: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.shots__scroller::-webkit-scrollbar {
  height: 8px;
}

.shots__scroller::-webkit-scrollbar-track {
  background: transparent;
}

.shots__scroller::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

.shot {
  flex: 0 0 auto;
  width: clamp(230px, 58vw, 300px);
  scroll-snap-align: center;
  margin: 0; /* figure defaults to 1em 40px */
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ---------- features ---------- */

.features {
  padding-bottom: clamp(48px, 7vw, 88px);
}

.section-title {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(24px, 3.5vw, 36px);
  text-align: center;
}

.features__grid {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-inline: auto;
}

@media (min-width: 660px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
}

.card__icon {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ---------- contact ---------- */

.contact {
  text-align: center;
  padding: clamp(40px, 6vw, 64px) 0 clamp(48px, 7vw, 72px);
  border-top: 1px solid var(--line);
}

.contact p {
  color: var(--muted);
  margin: 0 auto 20px;
  max-width: 46ch;
  text-wrap: balance;
}

.button {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 13px 30px;
  border-radius: 99px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: #d4551a;
  color: #fff;
  transform: translateY(-1px);
}

/* the contact address is long — keep it inside a 320px viewport */
@media (max-width: 380px) {
  .button {
    font-size: 0.88rem;
    padding: 12px 18px;
    max-width: 100%;
  }
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* ---------- long-form pages (privacy) ---------- */

.doc {
  padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 7vw, 80px);
}

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.doc__back:hover {
  text-decoration: underline;
}

.prose {
  max-width: 68ch;
  margin-inline: auto;
}

.prose h1 {
  font-size: clamp(2rem, 5.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 10px;
}

.prose .updated {
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 clamp(28px, 4vw, 40px);
}

.prose .lede {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.prose h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: clamp(36px, 5vw, 48px) 0 12px;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line);
}

.prose h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 26px 0 6px;
}

.prose p,
.prose li {
  color: #403833;
}

.prose ul {
  padding-left: 1.25em;
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--orange);
}

.callout {
  background: var(--orange-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 8px;
}

.callout p:last-child {
  margin-bottom: 0;
}
