/* landmassapp.com in the app's look: the values of docs/2026-11-20-ui-standard.md and mobile/src/theme/tokens.ts.
   Jost comes from this site (OFL, fonts/OFL.txt); nothing loads from anywhere else (R28). */

@font-face { font-family: Jost; font-weight: 500; font-display: swap; src: url('/fonts/Jost-500.ttf') format('truetype'); }
@font-face { font-family: Jost; font-weight: 600; font-display: swap; src: url('/fonts/Jost-600.ttf') format('truetype'); }
@font-face { font-family: Jost; font-weight: 700; font-display: swap; src: url('/fonts/Jost-700.ttf') format('truetype'); }

:root {
  --ink: #1C1B19;
  --ink-soft: #6B6253;
  --cream: #FFF8EC;
  --paper: #FFFDF8;
  --sand: #E9DDC6;
  --sand-deep: #D9CCB2;
  --sun: #F4C430;
  --sun-deep: #D9A915;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 17px/1.4 Jost, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 430px;
  margin: 0 auto;
  padding: 40px 22px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p { margin: 0; }

/* The page's lines in ink-soft, a little larger than the app's 15 sub-line: they're the page's only instructions. */
.sub { color: var(--ink-soft); text-wrap: pretty; }

/* A paper card: 1.5 sand edge, 3 sand lip, radius 22. */
.card {
  padding: 18px 16px 20px;
  background: var(--paper);
  border: 1.5px solid var(--sand);
  border-radius: 22px;
  box-shadow: 0 3px 0 var(--sand);
}

.label { color: var(--ink-soft); font-size: 15px; font-weight: 600; }

.code {
  margin-top: 4px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  -webkit-user-select: all;
  user-select: all;
}

/* The sun button: 60 tall, a pill, a 4 sun-deep lip inside its bottom edge. A press moves it 2 down and the lip
   shrinks to 2, over 90 ms, as PrimaryButton does. */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 var(--sun-deep), 0 10px 22px -10px rgba(60, 80, 20, .55);
  transition: transform 90ms linear, box-shadow 90ms linear;
  -webkit-tap-highlight-color: transparent;
}
.cta:active {
  transform: translateY(2px);
  box-shadow: inset 0 -2px 0 var(--sun-deep), 0 6px 14px -8px rgba(60, 80, 20, .55);
}

/* Store buttons (from Phase 9): the secondary button, a paper pill with a 2 sand-deep edge and lip. */
.stores { display: flex; gap: 12px; }
.store {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 54px;
  border: 2px solid var(--sand-deep);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--sand-deep);
  transition: transform 90ms linear, box-shadow 90ms linear;
  -webkit-tap-highlight-color: transparent;
}
.store:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sand-deep); }

.cta:focus-visible, .store:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }

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

/* A person's profile and export pages (src/pages.ts): a page that reads from the top, in the same look. */
main.page { justify-content: flex-start; gap: 18px; padding-top: 34px; }
main.page h1 { overflow-wrap: anywhere; }
main.page > .sub { margin-top: -10px; font-size: 15px; }

h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }

/* "12 countries · 6% of the world", then the smaller line under it. */
.stats { font-size: 20px; font-weight: 600; text-wrap: balance; }
.stats > span:not(.dot) { white-space: nowrap; }
.stats.more { margin-top: -10px; color: var(--ink-soft); font-size: 17px; font-weight: 500; }
.dot { color: var(--ink-soft); }

/* A map image: the app's map card edge (ink, rounded) on map ocean while it loads. */
.map {
  display: block;
  width: 100%;
  height: auto;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  background: #86C5EF;
}

/* The flags, round with an ink edge as in the app, each over its name. */
.flags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 16px 6px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
}
.flags li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.flag {
  display: block;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sand);
  object-fit: cover;
}

.card.shared, .card.list { display: flex; flex-direction: column; gap: 12px; }

/* An export's wish list: a spot per row, "Open in Maps" at its end as the secondary button, 44 tall. */
.spots { margin: 0; padding: 0; list-style: none; text-align: left; }
.spots li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1.5px solid var(--sand); }
.spots li:first-child { border-top: 0; padding-top: 0; }
.spots li:last-child { padding-bottom: 0; }
.spot { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.spot .title { font-weight: 600; }
.spot .where { color: var(--ink-soft); font-size: 15px; }
.maps {
  display: flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--sand-deep);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--sand-deep);
  transition: transform 90ms linear, box-shadow 90ms linear;
  -webkit-tap-highlight-color: transparent;
}
.maps:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sand-deep); }

/* "Made with Landmass", back to the home page. */
main.page footer { padding-top: 6px; }
main.page footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.maps:focus-visible, main.page footer a:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }

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

/* The privacy policy, the terms and the support page (launch essentials 2, Task 4): reading text from the top, left
   aligned, in a column a little wider than a phone so a computer doesn't stretch it into one long line. Claude's call. */
main.doc { max-width: 640px; gap: 26px; text-align: left; }
main.doc > .sub { margin-top: -18px; }
main.doc section { display: flex; flex-direction: column; gap: 10px; }
main.doc p, main.doc li { line-height: 1.5; text-wrap: pretty; }
main.doc ul { margin: 0; padding-left: 22px; }
main.doc li + li { margin-top: 6px; }
main.doc section a { color: var(--ink); text-underline-offset: 3px; }
main.doc .cta { overflow-wrap: anywhere; }

/* The site's own links under each of those pages and the home page: Landmass, Privacy, Terms, Support. */
footer.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
main.doc footer.links { justify-content: flex-start; padding-top: 6px; }
footer.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-underline-offset: 3px;
}
footer.links a:focus-visible, main.doc section a:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }
