/* fremian.com — shared styles. Plain CSS, no build step, no requests to other sites. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ground: #ffffff;
  --ground-2: #f2f3f3;        /* one tone step: panels, the nav strip */
  --ink: #111517;
  --ink-soft: #4d575b;
  --accent: #0b7f86;          /* Kavirel teal */
  --accent-ink: #ffffff;
  --accent-text: #0a6f75;     /* teal used as text on the ground (5.6:1) */
  --stage: #0b7f86;
  --night: #111517;           /* a dark field inside the light page */
  --night-ink: #f3f5f5;
  --margin: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --s-display: clamp(48px, 7.2vw, 112px);
  --s-head: clamp(32px, 4.2vw, 64px);
  --s-lead: clamp(21px, 2vw, 28px);
  --s-body: 17px;
  --s-small: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
html[data-theme="dark"] {
    --ground: #0e1112;
    --ground-2: #1a1f21;
    --ink: #f1f3f3;
    --ink-soft: #a6b0b3;
    --accent: #0b7f86;
    --accent-text: #4cc3c9;
    --stage: #0b6d73;
    --night: #1a1f21;
  }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--s-body)/1.55 "Inter", system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h3 { font-weight: 600; font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 50; background: var(--ground); padding: 8px 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }

/* ---------- navigation ---------- */
.nav { position: relative; z-index: 20; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.wordmark { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }

/* the product's own bar, held at the top while reading */
.subnav { position: sticky; top: 0; z-index: 30; background: var(--ground); transition: background-color .3s; }
.subnav.stuck { background: var(--ground-2); }
.subnav .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.subnav .name { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; margin-right: auto; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.subnav .name img { width: 26px; height: 26px; }
.subnav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.subnav ul a { text-decoration: none; color: var(--ink-soft); }
.subnav ul a:hover { color: var(--ink); }
@media (max-width: 720px) { .subnav ul { display: none; } .nav ul { gap: 18px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font: 500 16px/1 "Inter", system-ui, sans-serif; padding: 15px 24px; border-radius: 999px;
  transition: transform .18s var(--ease), background-color .2s;
}
.btn:hover { background: #096a70; }
.btn:active { transform: scale(.97); }
.btn.small { font-size: 14px; padding: 9px 16px; }
.link-more { color: var(--accent-text); text-decoration: none; font-weight: 500; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-more::after { content: " ›"; }

/* ---------- entrances (only when script runs; content is visible without it) ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-rise].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { transform: none; transition: opacity .4s linear; transition-delay: 0s; }
}

/* ---------- footer: one quiet line ---------- */
.foot { padding: 30vh 0 30px; font-size: var(--s-small); color: var(--ink-soft); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: baseline; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .end { justify-self: end; }
@media (max-width: 720px) {
  .foot { padding-top: 20vh; }
  .foot .wrap { grid-template-columns: 1fr; gap: 8px; }
  .foot .end { justify-self: start; }
}
