/* Take Back Focus's site: the teal of its icon on seafoam paper, Bricolage Grotesque, and the Nuhvel Solutions footer shared with Täna. */
:root {
  --canvas: #eef4f1;
  --surface: #ffffff;
  --sunken: #e2ebe7;
  --line: #cfdcd6;
  --ring: #c3d6cf;
  --ink: #0d1f1c;
  --ink-secondary: #4e6460;
  --ink-faint: #7f918d;
  --accent: #0b6b61;
  --accent-soft: #d6ece7;
  --on-accent: #ffffff;
  --shadow: 0 30px 70px -30px rgba(13, 31, 28, 0.35), 0 2px 6px -2px rgba(13, 31, 28, 0.12);
  --sans: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --column: 680px;
  --wide: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0a1413;
    --surface: #132221;
    --sunken: #1b2d2b;
    --line: #263936;
    --ring: #1d302d;
    --ink: #e6f0ed;
    --ink-secondary: #94a7a2;
    --ink-faint: #627571;
    --accent: #3fc6b5;
    --accent-soft: #15332f;
    --on-accent: #04211d;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  }
}

/* Bricolage Grotesque, SIL Open Font License 1.1, see fonts/LICENSE-bricolage-grotesque.txt. Latin subset, variable weight. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2-variations");
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); color: var(--ink); }
body {
  font: 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
main { overflow-x: clip; }
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%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.bar {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--wide); margin: 0 auto; padding: 20px 24px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 19px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark img { width: 28px; height: 28px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer;
  font: 600 16px var(--sans); text-decoration: none;
}
.button.quiet { background: var(--sunken); color: var(--ink); }

.prose h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 20px; }
.prose h2 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 8px; }
.prose p, .prose li { color: var(--ink-secondary); }
.prose .caption { font-size: 15px; color: var(--ink-faint); }

/* 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: var(--wide); 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: 0 24px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }

.nuhvel {
  display: grid; align-content: end; min-height: 44px; 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 .made { 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); }
.heart { width: 14px; height: 14px; vertical-align: -2px; margin: 0 1px; }
