/*
 * travelee.live — Atlas look on the web (docs/design/atlas-design-system.md): warm paper, ink, one terracotta accent
 * used only for the brand dot and small marks. Display: Noto Serif Display Condensed Medium (the app's face, OFL);
 * text: Inter (OFL). Both self-hosted (static/fonts, Latin + Cyrillic subsets). Light and dark follow the system.
 */

@font-face {
  font-family: 'Travelee Serif';
  src: url('/fonts/serif-display.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Travelee Serif';
  src: url('/fonts/serif-display-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Atlas palette (apps/mobile/src/theme/atlas.ts). */
  --ground: #f6f3ee;
  --surface: #fffdf9;
  --sunken: #ece7df;
  --ink: #1b1a17;
  --ink2: #4a453e;
  --ink3: #6b655c;
  --hairline: #e6e0d6;
  --border: #ddd6cb;
  --accent: #b4472e;
  --button-bg: #1b1a17;
  --button-fg: #fffdf9;
  --shadow: 0 1px 2px rgba(27, 26, 23, 0.06), 0 24px 48px -24px rgba(60, 45, 30, 0.35);
  --paper: #fffdf9; /* stamps stay on paper in both themes */

  --serif: 'Travelee Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --gutter: 20px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1b1a17;
    --surface: #24221e;
    --sunken: #2c2a25;
    --ink: #f6f3ee;
    --ink2: #d3ccc0;
    --ink3: #a8a194;
    --hairline: #35322c;
    --border: #45413a;
    --accent: #d4694b; /* accentNight: the only accent on ink */
    --button-bg: #f6f3ee;
    --button-fg: #1b1a17;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 10px 14px;
  background: var(--button-bg);
  color: var(--button-fg);
  border-radius: 10px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow {
  max-width: 760px;
}

/* ---------- Type ---------- */

.display-1,
.display-2,
.display-3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.display-1 {
  font-size: clamp(56px, 15vw, 132px);
  line-height: 0.95;
}
.display-1 em {
  font-style: italic;
  color: var(--ink2);
}
.display-1--page {
  font-size: clamp(48px, 12vw, 84px);
  line-height: 1;
  margin-bottom: 16px;
}
.display-2 {
  font-size: clamp(36px, 8vw, 56px);
  line-height: 1.04;
  margin-bottom: 16px;
}
.display-3 {
  font-size: clamp(26px, 5vw, 32px);
  line-height: 1.12;
  margin-bottom: 8px;
}

.body-lg {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink2);
  margin: 0 0 14px;
  max-width: 34em;
  text-wrap: pretty;
}

.overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.overline::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.overline__num {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0;
  color: var(--ink);
}

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

.site-header {
  padding: 14px 0;
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand img {
  width: 118px;
  height: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
  color: var(--ink2);
  border-radius: 999px;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--sunken);
}
.site-nav .lang-switch {
  border: 1px solid var(--border);
  padding: 0 14px;
  color: var(--ink);
}

.site-footer {
  margin-top: 40px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink3);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.site-footer__note {
  margin: 0;
}
.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: 14px;
  color: var(--ink2);
  overflow-wrap: anywhere;
}
.site-footer__copy {
  margin: 0;
}

/* ---------- Store CTA ---------- */

/* Not live yet: a plain overline, nothing that looks like a button or a store badge (Apple marketing guidelines). */
.soon {
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
}
.soon::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
/* Live: Apple's official badge artwork, unmodified (static/img/app-store-badge-*.svg). */
.store-badge {
  display: inline-block;
  margin: 24px 0 0;
  line-height: 0;
}
.store-badge img {
  height: 44px;
  width: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 18px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Screenshots ---------- */

.shot {
  margin: 0;
}
.shot img {
  width: 100%;
  border-radius: 30px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.shot--phone {
  width: min(300px, 78vw);
}
.shot--strip img,
.shot--card img {
  border-radius: 22px;
}
.shot--strip {
  width: min(380px, 100%);
}
.shot--card {
  width: min(360px, 100%);
}

/* ---------- Hero ---------- */

.hero {
  padding: 24px 0 40px;
}
.hero__grid {
  display: grid;
  gap: 40px;
}
.hero__lead {
  font-family: var(--serif);
  font-size: clamp(24px, 6vw, 40px);
  line-height: 1.1;
  margin: 12px 0 14px;
  text-wrap: balance;
}
.hero__media {
  display: flex;
  justify-content: center;
}

/* ---------- Features ---------- */

.feature {
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}
.feature__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.feature__media {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
}
.feature__media--2 .shot--phone {
  width: min(240px, 44vw);
}
.feature__media--2:has(.shot--strip) {
  flex-direction: column;
  align-items: center;
}
.feature__media--2 .shot--phone:nth-child(2) {
  margin-top: 40px;
}

.stamps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 22px 16px;
}
.stamps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.stamps__item:nth-child(odd) .stamp {
  transform: rotate(-2deg);
}
.stamps__item:nth-child(even) .stamp {
  transform: rotate(1.5deg);
}
.stamp {
  display: block;
  width: 100%;
  max-width: 150px;
  padding: 8px;
  background: var(--paper);
  /* Perforation: dots of the page colour cut into the paper edge. */
  border: 7px dotted var(--ground);
  box-shadow: 0 0 0 1px var(--hairline);
}
@media (prefers-color-scheme: dark) {
  /* On ink the dark perforation reads as loud dots: thinner edge, slightly dimmed paper. */
  .stamp {
    border-width: 4px;
    filter: brightness(0.92);
  }
}
.stamps__city {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}

/* ---------- Plus ---------- */

.plus {
  padding: 56px 0;
}
.plus__card {
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 28px 22px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 8px 0 20px;
  display: grid;
  gap: 14px;
}
.checks li {
  position: relative;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.checks strong {
  font-weight: 600;
}
.checks span {
  color: var(--ink3);
  font-size: 15px;
}
.plus__note {
  margin: 0;
  font-size: 15px;
  color: var(--ink3);
  max-width: 40em;
}

/* ---------- Closing ---------- */

.closing {
  padding: 56px 0 24px;
  border-top: 1px solid var(--hairline);
}
.closing__inner .soon,
.closing__inner .store-badge {
  margin: 0 0 16px;
}

/* ---------- Documents: support, legal, open, 404 ---------- */

.doc {
  padding-top: 32px;
  padding-bottom: 32px;
}
.doc__meta {
  color: var(--ink3);
  font-size: 15px;
  margin: 0 0 28px;
}
.prose {
  color: var(--ink2);
  max-width: 40em;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
  margin: 36px 0 10px;
}
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 6px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  text-align: start;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--hairline);
}
.notice {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 22px 22px 8px;
}
.notice p {
  margin: 0 0 14px;
}
.notice__title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  color: var(--ink);
}
.notice a,
.contact a {
  overflow-wrap: anywhere;
}

.contact {
  margin: 28px 0 40px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  color: var(--ink2);
}
.contact p {
  margin: 0 0 8px;
}
.contact__email {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
}

.faq-group {
  margin: 0 0 36px;
}
.faq {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--ink3);
  border-bottom: 2px solid var(--ink3);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.faq__a {
  color: var(--ink2);
  padding: 0 0 12px;
}
.faq__a p {
  margin: 0 0 12px;
}

.open,
.notfound {
  text-align: start;
}
.seal {
  margin: 8px 0 24px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
}
.open__noapp {
  margin: 28px 0 0;
  color: var(--ink3);
}
.open__hint {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink3);
}
.open .soon,
.open .store-badge {
  margin-top: 8px;
}
.open__other {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--ink3);
}
.notfound__code {
  font-family: var(--serif);
  font-size: clamp(96px, 30vw, 180px);
  line-height: 1;
  margin: 0 0 12px;
  color: var(--ink3);
}
.notfound [lang='ru'] {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
  .stamps {
    grid-template-columns: repeat(5, 1fr);
  }
  .plus__card {
    padding: 36px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 40px 0 88px;
  }
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
  }
  .hero__media {
    justify-content: flex-end;
  }
  .shot--phone {
    width: 300px;
  }
  .feature {
    padding: 88px 0;
  }
  .feature--media .feature__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .feature--flip .feature__text {
    order: 2;
  }
  .feature--text .feature__text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
  .feature--text .feature__body {
    padding-top: 32px;
  }
  .feature__media--2 .shot--phone {
    width: 250px;
  }
  .plus {
    padding: 88px 0;
  }
  .closing {
    padding: 88px 0 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
