/*
  Projects - shared base styles for every page under /projects.
  Page-specific styles go in the page itself (or its own file), built on these tokens.

  Head snippet every Projects page uses (replace the <...> parts; og:image is absolute):

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><Page title> - Marko Humar</title>
    <meta name="description" content="<one quiet sentence>">
    <link rel="canonical" href="https://markohumar.com/<path>">
    <meta property="og:type" content="website">
    <meta property="og:title" content="<Page title> - Marko Humar">
    <meta property="og:description" content="<one quiet sentence>">
    <meta property="og:url" content="https://markohumar.com/<path>">
    <meta property="og:image" content="https://markohumar.com/<image path>">
    <meta property="og:image:width" content="<width>">
    <meta property="og:image:height" content="<height>">
    <meta name="twitter:card" content="summary_large_image">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap">
    <link rel="stylesheet" href="/projects/base.css">
    <script src="/contact.js" defer></script>

  Site header markup (first thing in <body>):

    <header class="site-header">
      <div class="container site-header__inner">
        <a class="site-header__home" href="/">Marko Humar</a>
        <a class="site-header__mail" href="mailto:hello@markohumar.com">hello@markohumar.com</a>
      </div>
    </header>
*/

:root {
  color-scheme: dark;

  --stage: #0f0f0e;
  --shot: #020202;
  --card: #171715;
  --raise: #201f1c;
  --line: #34322e;
  --fg: #eeece6;
  --muted: #9b988e;
  --faint: #5f5c55;
  --sub: #c6c2b8;
  --accent: #e07a5b;
  --accent-text: #eaa68e;
  --on-accent: #1a0f0b;
  --accent-soft: rgba(224, 122, 91, 0.14);

  --f-text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --s-xs: 0.78rem;
  --s-sm: 0.9rem;
  --s-md: 1.05rem;
  --s-lg: 1.35rem;
  --s-xl: clamp(1.5rem, 2.4vw, 2.1rem);
  --s-hero: clamp(1.9rem, 4vw, 3.3rem);

  --r-sm: 4px;
  --r-md: 6px;
  --r-pill: 999px;

  --container: 1180px;
  --gutter: 20px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Base */
body {
  min-height: 100vh;
  background: var(--stage);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-text);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--s-hero);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--s-xl);
}

h3 {
  font-size: var(--s-lg);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--fg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* Site header: quiet, mono, small */
.site-header {
  font-family: var(--f-mono);
  font-size: var(--s-xs);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.site-header a {
  color: var(--muted);
  text-decoration: none;
}

.site-header a:hover {
  color: var(--fg);
}

.site-header__home {
  color: var(--fg) !important;
  font-weight: 500;
}

.site-header__mail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Text helpers */
.label {
  font-family: var(--f-mono);
  font-size: var(--s-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tagline {
  font-family: var(--f-mono);
  font-size: var(--s-sm);
  color: var(--sub);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--f-text);
  font-size: var(--s-sm);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

/* Coral fill with dark text: white on coral fails contrast. */
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-text);
  color: var(--on-accent);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--muted);
  background: var(--accent-soft);
  color: var(--fg);
}

/* Planets and hairlines: the small orbs and lines from the session-orchestrator art. */
.planet {
  display: inline-block;
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.planet--coral {
  background: radial-gradient(circle at 35% 35%, #ffe2d4, #f0a184 45%, #e07a5b 75%);
  box-shadow: 0 0 8px 1px rgba(224, 122, 91, 0.55), 0 0 22px 4px rgba(224, 122, 91, 0.14);
}

.planet--neutral {
  background: radial-gradient(circle at 35% 35%, #f4f1ea, #b9b5ac 50%, #7d7a73 85%);
  box-shadow: 0 0 8px rgba(238, 236, 230, 0.25);
}

.planet--off {
  background: #121211;
  border: 1px solid #47443e;
}

.hairline {
  display: block;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, #2e2c28, #3a3732 50%, #2e2c28);
}

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