/* The Tinker Click look, shared by every page on tinker.click: warm paper, black ink, one
   blue accent, Anton for the big words and Geist for the rest. The fonts are served from
   tinker.click itself (/fonts/), so no request leaves the site. */
@font-face { font-family: "Anton"; src: url("/fonts/Anton-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #eee9e2; --bg-raised: #e5dfd6; --ink: #121212; --ink-2: #4b4842; --muted: #7a756c;
  --line: rgba(18, 18, 18, 0.14); --accent: #2b4dff; --orange: #ff5f00; --danger: #c8321e; --ok: #0f9f72;
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 3vw, 40px); --container-max: 1440px; --header-h: 76px; --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0f; --bg-raised: #171718; --ink: #eee9e2; --ink-2: #b3aea6; --muted: #8a857d;
    --line: rgba(238, 233, 226, 0.14); --accent: #7590ff; --orange: #ff8a5c; --danger: #ff7a66; --ok: #3fd3a0;
  }
}
@media (max-width: 767px) { :root { --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.55; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
code { font: 0.8125rem/1.5 var(--mono); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only, .hp {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.text-accent { color: var(--accent); }
.text-orange { color: var(--orange); }

/* Buttons: ink pills that turn blue under the pointer. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn:disabled { opacity: 0.5; cursor: progress; }

/* Header: the mark on the left, one pill on the right, frosted paper behind. */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.header-logo { display: inline-flex; align-items: center; gap: 12px; transition: opacity 0.2s; }
.header-logo img { width: 40px; height: 40px; }
.header-logo span { font-family: var(--font-display); font-size: 1.375rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.header-logo b { font-weight: 400; color: var(--accent); }
.header-logo:hover { opacity: 0.7; }
.header-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.header-link { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.header-link:hover, .header-link[aria-current="page"] { color: var(--ink); }
.header-cta { height: 40px; padding: 0 18px; font-size: 0.875rem; }
@media (max-width: 767px) {
  .header-logo img { width: 34px; height: 34px; }
  .header-logo span { display: none; }
  .header-cta { height: 36px; }
}

/* The big uppercase wordmark and the heavy rule under it. */
.display {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  line-height: 0.88; letter-spacing: -0.012em;
}
.rule { height: 4px; background: var(--ink); border: 0; }

/* Footer: a heavy rule, a statement, then the small print. */
.site-footer { padding: clamp(64px, 9vw, 120px) 0 32px; }
.footer-statement {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding-top: clamp(24px, 2.5vh, 40px); border-top: clamp(4px, 0.35vw, 6px) solid var(--ink);
}
.footer-headline { font-size: clamp(2.25rem, 5.2vw, 6.5rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.05em; }
.footer-orb { flex: none; width: clamp(4.5rem, 11vw, 12rem); aspect-ratio: 1; }
.footer-orb img { width: 100%; height: 100%; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  margin-top: clamp(32px, 4vw, 56px); padding-top: clamp(16px, 1.8vh, 24px); border-top: 1px solid var(--line);
  font-size: clamp(0.8125rem, 0.85vw, 1rem); color: var(--muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a:hover { color: var(--accent); }
@media (max-width: 760px) { .footer-bottom { flex-direction: column; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
