/* Tadontor · tadontor.com — monochrome brand: black #0B0B0F, white #FFFFFF, greys only. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --black: #0b0b0f;
  --white: #ffffff;
  /* Fallback for browsers without light-dark() */
  --bg: var(--white);
  --ink: var(--black);
  --muted: #55565c;
  --line: #d9d9dc;
  --soft: #f3f3f4;
  --step: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--black);
    --ink: var(--white);
    --muted: #b4b5ba;
    --line: #3a3c41;
    --soft: #1a1b1f;
  }
}
@supports (color: light-dark(white, black)) {
  :root {
    --bg: light-dark(var(--white), var(--black));
    --ink: light-dark(var(--black), var(--white));
    --muted: light-dark(#55565c, #b4b5ba);
    --line: light-dark(#d9d9dc, #3a3c41);
    --soft: light-dark(#f3f3f4, #1a1b1f);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step)/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
p, li { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 2; padding: 0.6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 1rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.brand { display: block; margin-left: -0.35rem; border-radius: 6px; }
.brand img { width: auto; height: 2.25rem; }
.lang { display: flex; gap: 0.15rem; padding: 0; list-style: none; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; }
.lang a { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang a[aria-current] { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* Home */
.home { display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-content: center; padding-block: clamp(0.75rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4rem); }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin-top: 0.7rem; font-size: clamp(2.1rem, 1.2rem + 4.4vw, 4.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
.lead { margin-top: 0.9rem; max-width: 34rem; line-height: 1.5; color: var(--muted); }
.lead strong { color: var(--ink); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; padding: 0; list-style: none; font-size: 0.8125rem; font-weight: 600; }
.facts li { padding: 0.2rem 0.7rem; border: 1.5px solid var(--line); border-radius: 999px; }
.contact { margin-top: 1.1rem; font-size: 0.9375rem; color: var(--muted); }
.contact a { color: var(--ink); font-weight: 600; user-select: all; }

/* The «window»: echoes the Tadontor symbol (frame + title bar) */
.window { padding: 3px; border-radius: 1.15rem; background: var(--ink); }
.window > h2 { padding: 0.5rem 1.1rem 0.6rem; color: var(--bg); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3; }
.app { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; align-items: center; padding: 1.15rem 1.1rem 1.25rem; border-radius: 0.2rem 0.2rem calc(1.15rem - 3px) calc(1.15rem - 3px); background: var(--bg); color: var(--ink); }
.app img { width: 4rem; height: 4rem; border-radius: 22.5%; }
.app h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.app .tagline { font-weight: 600; line-height: 1.3; }
.app .desc, .app .meta, .app .go { grid-column: 1 / -1; }
.app .desc { margin-top: 0.6rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.app .meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin-top: 0.5rem; padding: 0; list-style: none; font-size: 0.8125rem; font-weight: 600; }
.app .meta li { padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--soft); }
.go { margin-top: 0.9rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.55rem 1.15rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.btn:hover { text-decoration: underline; text-decoration-thickness: 0.1em; }
.btn:focus-visible { outline-offset: 3px; border-radius: 999px; }
.btn span { transition: translate 0.2s; }
.btn:hover span { translate: 0.2rem 0; }

@media (min-width: 56rem) {
  .top { padding-block: 1.1rem; }
  .home { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .app { padding: 1.5rem 1.4rem 1.6rem; }
  .window > h2 { padding-inline: 1.4rem; }
}

/* Text pages (legal, 404) */
.doc { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem); max-width: 44rem; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
.doc .intro { margin-top: 1rem; color: var(--muted); }
.doc h2 { margin-top: 2.25rem; font-size: 1.25rem; font-weight: 700; }
.doc h2 + * , .doc p + p, .doc p + ul, .doc ul + p { margin-top: 0.75rem; }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: 0.35rem; }
.doc .updated { margin-top: 2.5rem; font-size: 0.875rem; color: var(--muted); }
.doc .back { margin-top: 2rem; }
mark { padding: 0.05em 0.35em; border-radius: 4px; background: var(--ink); color: var(--bg); font-weight: 600; }

/* Footer */
.foot { border-top: 1.5px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.6rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0; list-style: none; }
.foot a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .btn span { transition: none; } }
@media (forced-colors: active) { .window { border: 3px solid CanvasText; } .lang a[aria-current] { outline: 2px solid CanvasText; } }
@media print { .lang, .skip { display: none; } }
