/* Aniela Tech — one stylesheet, every colour is a token. */

@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/plex-mono.woff2") format("woff2"); }

:root {
  --paper: #f6f7f5;
  --surface: #ffffff;
  --ink: #161a1d;
  --muted: #5b6470;
  --line: #dce0e2;
  --accent: #2f4c6e;        /* harbour */
  --accent-ink: #ffffff;
  --accent-soft: #e6ecf3;

  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.5rem, 1.5rem + 4vw, 4.6rem);

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1215;
    --surface: #161a1e;
    --ink: #e7eaee;
    --muted: #9aa3ae;
    --line: #262c33;
    --accent: #9db6d6;
    --accent-ink: #0f1215;
    --accent-soft: #1c2633;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1215;
  --surface: #161a1e;
  --ink: #e7eaee;
  --muted: #9aa3ae;
  --line: #262c33;
  --accent: #9db6d6;
  --accent-ink: #0f1215;
  --accent-soft: #1c2633;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: var(--step--1); }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Labels */
.label { font: 400 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px); display: grid; gap: 28px; }
.hero h1 { font-size: var(--step-4); max-width: 15ch; }
.hero .lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-size: var(--step--1); font-weight: 600;
  text-decoration: none; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
}
.button.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button:hover { filter: brightness(1.08); }
.button.quiet:hover { border-color: var(--ink); filter: none; }

.hero-media { position: relative; overflow: hidden; border-radius: 6px; background: var(--line); aspect-ratio: 16 / 7; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section.block { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.block-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 5vw, 56px); }
.block-head h2 { font-size: var(--step-3); max-width: 20ch; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(28px, 4vw, 48px); }
.services h3 { font-size: var(--step-1); margin-bottom: 10px; }
.services p { color: var(--muted); }

/* Products */
.products { display: grid; gap: clamp(56px, 8vw, 96px); }
.product { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 820px) {
  .product { grid-template-columns: 1.1fr 1fr; }
  .product:nth-child(even) .product-media { order: 2; }
}
.product-media { overflow: hidden; border-radius: 6px; background: var(--line); aspect-ratio: 4 / 3; }
.product-media img, .product-media video { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: grid; gap: 16px; align-content: start; }
.product-body h3 { font-size: var(--step-3); }
.product-body .kind { font-size: var(--step-1); color: var(--muted); line-height: 1.4; }
.product-body p { max-width: 52ch; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 32px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; }
.facts dt { font: 400 0.7rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: var(--step--1); font-weight: 600; }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr 1fr; } }
.more { font-weight: 600; font-size: var(--step--1); text-decoration: none; color: var(--accent); }
.more:hover { text-decoration: underline; }

/* Compact product list (home) */
.teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 4vw, 40px); }
.teaser { display: grid; gap: 14px; text-decoration: none; }
.teaser .product-media { aspect-ratio: 3 / 2; }
.teaser h3 { font-size: var(--step-2); }
.teaser p { color: var(--muted); max-width: 44ch; }
.teaser:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* Contact */
.contact { display: grid; gap: 20px; }
.contact h2 { font-size: var(--step-3); max-width: 18ch; }
.contact p { color: var(--muted); max-width: 48ch; }
.contact .mail { font-size: var(--step-2); font-weight: 600; color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; overflow-wrap: anywhere; }

/* Page intro */
.page-intro { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); display: grid; gap: 20px; }
.page-intro h1 { font-size: var(--step-4); max-width: 16ch; }
.page-intro p { font-size: var(--step-1); color: var(--muted); max-width: 46ch; line-height: 1.5; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 6px 20px; font-variant-numeric: tabular-nums; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Logo mark */
.mark-bg { fill: var(--accent); }
.mark-a { fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.samples { display: grid; gap: 8px; }
.sample-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
