/* The app's design language (ADR 0002): one serif voice, one colour, quiet lines. The same tokens as web/src/styles.css. */
:root {
  --canvas: #f7f5f0;
  --surface: #fffefb;
  --sunken: #ece8df;
  --line: #e3ded3;
  --ink: #141312;
  --ink-secondary: #6e6a62;
  --ink-faint: #8f8a80;
  --accent: #7f6329;
  --on-accent: #ffffff;
  --leaf: #d9be7c;
  --serif: ui-serif, "New York", "Iowan Old Style", "Charter", Georgia, serif;
  --column: 600px;
  --settle: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0f0e0c;
    --surface: #1b1916;
    --sunken: #26231f;
    --line: #2c2924;
    --ink: #efe8d9;
    --ink-secondary: #9a9385;
    --ink-faint: #6f6a5f;
    --accent: #c8a96b;
    --on-accent: #14110b;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); color: var(--ink); }
body {
  font: 18px/1.5 var(--serif);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

.bar {
  display: flex; align-items: center; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 18px 24px;
}
/* Unkerned: the serif face tucks the ä under the T's arm, and the dots hit the serif. */
.wordmark { font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -0.2px; font-kerning: none; }
.bar .spacer { flex: 1; }
.languages { display: flex; gap: 4px; }
.languages button {
  font: inherit; font-size: 15px; color: var(--ink-secondary); background: none; border: 0;
  padding: 8px 10px; min-height: 44px; cursor: pointer; border-radius: 8px;
}
.languages button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer;
  font: 600 17px var(--serif); text-decoration: none;
}
.button.quiet { background: none; color: var(--accent); padding: 0 8px; min-height: 44px; }

.prose h1 { font-size: 34px; line-height: 1.2; font-weight: 300; margin: 0 0 24px; }
.prose h2 { font-size: 22px; font-weight: 500; margin: 40px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose .caption { font-size: 15px; color: var(--ink-secondary); }

/* The Nuhvel Solutions wordmark, as on nuhvel.solutions: Roboto Condensed Bold, only its own letters. */
@font-face {
  font-family: "Nuhvel Wordmark";
  font-weight: 700;
  font-display: swap;
  src: url("brand/nuhvel-wordmark.woff") format("woff");
}

footer {
  border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px;
  font-size: 15px; color: var(--ink-secondary);
}
footer .column { max-width: 1080px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
footer a { color: var(--ink-secondary); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

.nuhvel {
  display: grid; color: var(--ink); text-decoration: none;
  font: 700 28px/0.75 "Nuhvel Wordmark", "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}
.nuhvel span { white-space: nowrap; }
.nuhvel span:first-child { margin-left: 0.01em; }

.love { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.love:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.strawberry {
  flex: 0 0 auto; width: 22px; height: 22px; background: currentColor;
  mask: url("brand/viljandi-strawberry.png") center / contain no-repeat;
  -webkit-mask: url("brand/viljandi-strawberry.png") center / contain no-repeat;
  transition: transform 160ms ease;
}
.love:hover .strawberry { transform: rotate(-4deg) translateY(-1px); }

/* The language links on pages that have an address per language. */
.languages a {
  font-size: 15px; color: var(--ink-secondary); text-decoration: none;
  padding: 8px 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px;
}
.languages a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* The comparison page: one table per moment, the apps in rows, Täna's row last and marked. */
.compare { padding-top: 24px; }
.compare h1 { font-size: 36px; margin-bottom: 16px; }
.compare h2 { scroll-margin-top: 24px; }
.compare .lede { font-size: 20px; line-height: 1.5; color: var(--ink); margin: 0 0 12px; }
.compare p { color: var(--ink-secondary); }
.compare .table { overflow-x: auto; margin: 16px 0; }
.compare table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 14px; font-weight: 500; color: var(--ink-secondary); }
.compare tbody th { font-weight: 500; white-space: nowrap; width: 9.5em; }
.compare tr.tana th, .compare tr.tana td { background: var(--surface); color: var(--ink); }
.compare tr.tana th { color: var(--accent); padding-left: 12px; border-radius: 10px 0 0 10px; }
.compare tr.tana td { border-radius: 0 10px 10px 0; }
.compare td.ahead { color: var(--accent); font-weight: 500; }
.compare td.behind { color: var(--ink-secondary); font-style: italic; }
.compare .choose, .compare .sources { padding-left: 20px; color: var(--ink-secondary); }
.compare .choose li, .compare .sources li { margin: 8px 0; }
.compare .choose strong { color: var(--ink); font-weight: 500; }
.compare .start { margin: 48px 0 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.compare .start p { margin: 0; font-size: 15px; }
@media (max-width: 480px) {
  .compare h1 { font-size: 30px; }
  .compare tbody th { white-space: normal; width: 6.5em; }
  .compare table { font-size: 15px; }
}
