/* Native Tongue LLC
   Dark, typographic, no third party assets. System fonts only, in keeping
   with the privacy policy statement that this site embeds nothing external. */

:root {
  color-scheme: dark;

  --bg: #08080a;
  --bg-soft: #0d0d11;
  --bg-elev: #101015;

  --fg: #f4f4f6;
  --muted: #a9a9b4;
  --dim: #8c8c98;
  --faint: #6d6d7a;

  --line: #1c1c22;
  --line-strong: #2a2a33;

  --accent: #8ab4ff;
  --accent-soft: rgba(138, 180, 255, .14);

  --radius: 12px;
  --measure: 34rem;
  --ease: cubic-bezier(.2, .6, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font: 400 16px/1.7 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color: var(--fg);
  padding: 2rem 1.5rem 3rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  /* Ambient wash: a single soft bloom behind the masthead, nothing more. */
  background:
    radial-gradient(58rem 30rem at 50% -14rem, #17172010 0%, transparent 70%),
    radial-gradient(34rem 20rem at 50% -8rem, var(--accent-soft) 0%, transparent 72%),
    var(--bg);
  background-repeat: no-repeat;
}

::selection { background: var(--accent); color: #06060a; }

.wrap {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------- Masthead ---------- */

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  padding-bottom: 1.1rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}

.site-head .brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.015em;
  border-bottom: 0;
  color: var(--fg);
}

/* The mark is the Finnish diaeresis, the two dots of a and o. */
.mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  background: linear-gradient(150deg, #23232c, #131318);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow .25s var(--ease);
}

.mark::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 6px;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 6px 0 0 var(--accent);
  transition: box-shadow .25s var(--ease);
}

.brand:hover .mark { box-shadow: inset 0 0 0 1px var(--accent); }

.site-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-left: auto;
  font-size: .9rem;
}

.site-head nav a {
  color: var(--dim);
  border-bottom: 0;
  position: relative;
  padding-bottom: 2px;
}

.site-head nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.site-head nav a:hover { color: var(--fg); }
.site-head nav a:hover::after { transform: scaleX(1); }
.site-head nav a[aria-current="page"] { color: var(--fg); }
.site-head nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--line-strong); }

/* ---------- Typography ---------- */

main { flex: 1; }

h1 {
  font-size: clamp(2.1rem, 6.5vw, 3rem);
  margin: 0 0 .85rem;
  letter-spacing: -.035em;
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  margin: 0 0 3rem;
  max-width: var(--measure);
  text-wrap: pretty;
}

/* Small caps section label with a hairline running to the margin. */
h2 {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--dim);
  font-weight: 600;
  margin: 3.25rem 0 1.1rem;
}

h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 .35rem;
  letter-spacing: -.01em;
}

p {
  margin: 0 0 1.05rem;
  color: var(--muted);
  max-width: var(--measure);
  text-wrap: pretty;
}

p.after-rows { margin-top: 1.25rem; }
main > section > p:last-child { margin-bottom: 0; }

strong { color: var(--fg); font-weight: 600; }
em { color: var(--fg); font-style: italic; }

section + section { margin-top: 0; }

/* ---------- Card rows ---------- */

ul.rows {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
}

ul.rows li + li { border-top: 1px solid var(--line); }

ul.rows a {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  padding: .95rem 1.1rem;
  border-bottom: 0;
  color: inherit;
  transition: background-color .2s var(--ease);
}

ul.rows a:hover { background: rgba(255, 255, 255, .028); }

.name {
  color: var(--fg);
  font-weight: 500;
  border-bottom: 0;
  transition: color .2s var(--ease);
}

.meta { color: var(--dim); font-size: .875rem; }

.go {
  display: inline-block;
  margin-left: auto;
  color: var(--faint);
  font-size: .9rem;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

ul.rows a:hover .name { color: var(--accent); }
ul.rows a:hover .go { color: var(--accent); transform: translate(3px, -3px); }

/* ---------- Bulleted lists ---------- */

ul.bullets {
  padding: 0;
  margin: 0 0 1.05rem;
  list-style: none;
  color: var(--muted);
  max-width: var(--measure);
}

ul.bullets li { padding: .32rem 0 .32rem 1.25rem; position: relative; }

ul.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .95em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

/* ---------- Definition blocks ---------- */

dl { margin: 0; max-width: var(--measure); }

dt {
  color: var(--fg);
  font-weight: 600;
  margin-top: 1.6rem;
  letter-spacing: -.005em;
}

dl > dt:first-of-type { margin-top: 0; }

dd {
  margin: .3rem 0 0;
  padding-left: .95rem;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-foot {
  margin-top: 5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .9rem;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  margin-bottom: 1.1rem;
}

.site-foot nav a { color: var(--dim); border-bottom: 0; }
.site-foot nav a:hover { color: var(--fg); }
.site-foot .legal { margin: 0; color: var(--dim); font-size: .85rem; max-width: none; }

/* ---------- Links ---------- */

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

a:hover { color: var(--accent); border-color: var(--accent); }

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

/* ---------- Home: wider shell, prose still held to the measure ---------- */

body.home .wrap { max-width: 54rem; }

/* Band that separates the company half from the product half */
.band {
  margin: 4.5rem 0 0;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.kicker {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .85rem;
}

.band h2.title {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  text-transform: none;
  letter-spacing: -.03em;
  color: var(--fg);
  font-weight: 600;
  margin: 0 0 .75rem;
  line-height: 1.15;
}

.band h2.title::after { content: none; }

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

figure { margin: 0; }

figcaption {
  color: var(--dim);
  font-size: .85rem;
  margin-top: .7rem;
  max-width: var(--measure);
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
}

.shot-mac { box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8); }

.shots-ios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shots-ios li { margin: 0; }

.shots-ios:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

.shots-ios .cap {
  display: block;
  color: var(--dim);
  font-size: .8rem;
  margin-top: .55rem;
}

/* ---------- Feature grid ---------- */

/* Each dt/dd pair is wrapped in a div so the grid lays out pairs, not
   terms and definitions as separate cells. HTML5 allows div inside dl. */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.25rem;
  margin: 0;
  max-width: none;
}

.features > div { min-width: 0; }
.features dt { margin-top: 0; }
.features dd { max-width: none; }

/* ---------- Call to action ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.15rem;
  border-radius: 10px;
  background: var(--accent);
  color: #06060a;
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 0;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.cta:hover { background: #a8c7ff; color: #06060a; transform: translateY(-1px); }
.cta:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.cta-note { color: var(--dim); font-size: .9rem; margin: 0; }

/* ---------- Status pill ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--dim);
  font-size: .8rem;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 404 ---------- */

body.centered { justify-content: center; text-align: center; }

body.centered .wrap {
  max-width: 30rem;
  flex: 0 0 auto;
  justify-content: center;
}

body.centered p { max-width: none; }

body.centered .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

/* ---------- Skip link ---------- */

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

.skip:focus {
  left: 50%;
  top: .75rem;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--bg);
  padding: .5rem .9rem;
  border-radius: 8px;
  z-index: 10;
}

#main { scroll-margin-top: 1.5rem; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  main > h1, main > .lede, main > section {
    animation: rise .5s var(--ease) backwards;
  }
  main > .lede { animation-delay: .04s; }
  main > section:nth-of-type(1) { animation-delay: .08s; }
  main > section:nth-of-type(2) { animation-delay: .12s; }
  main > section:nth-of-type(n+3) { animation-delay: .16s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 46rem) {
  .features { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* Phones: the three iPhone shots scroll sideways instead of shrinking to
   thumbnails. Full-bleed so the row reads as a strip, not a cramped grid. */
@media (max-width: 40rem) {
  .shots-ios {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: .85rem;
    padding-bottom: .5rem;
    margin-inline: -1.15rem;
    padding-inline: 1.15rem;
    scrollbar-width: thin;
  }
  .shots-ios li { scroll-snap-align: start; }
}

@media (max-width: 34rem) {
  body { padding: 1.5rem 1.15rem 2.5rem; }
  .site-head { margin-bottom: 2.5rem; gap: .6rem 1rem; }
  .site-head nav { gap: 1.1rem; font-size: .875rem; }
  h2 { margin-top: 2.75rem; }
  ul.rows a { padding: .85rem .95rem; }
  .band { margin-top: 3.25rem; padding-top: 2.25rem; }
  .cta-row { gap: .75rem; }
}
