/* base.css: shared foundation of the Teckel site (website, blog and the writing desk).
   Style "Sommerluft" (design rounds 24/25): Ivory Sand, Sage Green, Stormy Sky, Burnt Sienna;
   headings Alegreya, body Albert Sans, Caveat only as a rare handwritten pointer. */
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-normal-400-900.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-italic-400-900.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* palette */
  --sand: #e9e1d1; --sand-light: #f4efe5; --sand-deep: #ddd3bf; --sage: #a3ab93; --sky: #7e929e;
  --sienna: #954b28; --sienna-deep: #7d3d20; --ink: #26231e; --ink-soft: #4e483d; --frame: #4a5240; --error: #8b2e16;
  --line: rgb(38 35 30 / 0.2); --line-strong: var(--ink-soft);
  /* type */
  --serif: "Alegreya", Georgia, serif; --sans: "Albert Sans", system-ui, sans-serif; --hand: "Caveat", "Bradley Hand", cursive;
  /* spacing on a 4 px base */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s12: 96px;
  --gutter: clamp(16px, 5vw, 64px); --max-width: 1280px;
  /* motion, timing from the reference videos (Design/Moodboard/bewegung/ANALYSE.md) */
  --ease-swap: cubic-bezier(.65, 0, .35, 1); --ease-enter: cubic-bezier(.16, 1, .3, 1);
  --dur-swap: 700ms; --dur-enter: 500ms; --stagger: 120ms;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.5 var(--sans); hyphens: auto; -webkit-hyphens: auto; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--sand-light); color: var(--ink); }
.skip-link:focus { top: 8px; }
