/* robciuc.dev — design tokens */
:root {
  --bg: #0C0C0E;
  --bg-header: rgba(12, 12, 14, 0.85);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --dim: #64748b;
  --sep: #334155;
  --border: #1e293b;
  --accent: #C0F447;
  --accent-tint: rgba(192, 244, 71, 0.1);
  --logo-ink: #F7F7F4;

  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand: 'Geist', ui-sans-serif, system-ui, sans-serif;

  --radius-btn: 6px;
  --radius-card: 8px;
  --radius-pill: 999px;

  --max-width: 720px;
  --gutter: clamp(16px, 5vw, 24px);
  --card-pad: clamp(16px, 4vw, 20px) clamp(16px, 4vw, 24px);

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { -webkit-tap-highlight-color: transparent; }

img,
svg { max-width: 100%; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text-soft); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, p, ul { margin: 0; }

.icon { display: block; flex: none; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--bg); }

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  padding-right: 0.06em;
  font-family: var(--font-brand);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--logo-ink);
  white-space: nowrap;
}
.wordmark:hover { color: var(--logo-ink); }
.wordmark__name { font-weight: 650; }
.wordmark__dot { font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.wordmark__tld { font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  padding: 10px clamp(8px, 2.5vw, 12px);
  border-radius: var(--radius-btn);
  line-height: 20px;
}
.nav a:hover { background: var(--border); }

/* Buttons */
.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text);
}

.icon-btn--ghost {
  box-shadow: none;
  color: var(--muted);
}

.btn {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  white-space: nowrap;
}

.icon-btn:hover,
.btn:hover {
  background: var(--border);
  color: var(--text);
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(40px, 10vw, 104px) 0 clamp(40px, 8vw, 56px);
}

.hero__mark {
  display: block;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--border);
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.hero__name { color: var(--text); font-weight: 500; }
.hero__sep { color: var(--sep); }

.hero h1 {
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 56ch;
  font-size: clamp(16px, 2.6vw, 18px);
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: pretty;
}

.socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

/* Sections */
.section {
  scroll-margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(36px, 7vw, 48px) 0;
  border-top: 1px solid var(--border);
}

.section--last { padding-bottom: clamp(48px, 9vw, 72px); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section__head h2 {
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.0075em;
}

.section__head p {
  font-size: 16px;
  line-height: 28px;
  color: var(--muted);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--text-soft);
  box-shadow: inset 0 0 0 1px var(--border);
}

.pill--current {
  background: var(--accent-tint);
  color: var(--accent);
  box-shadow: none;
}
.pill--current::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}

/* Experience */
.jobs {
  overflow: hidden;
  padding: 0;
  list-style: none;
}

.job {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 8px;
  padding: var(--card-pad);
}
.job + .job { border-top: 1px solid var(--border); }

.job__meta {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  row-gap: 2px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}
.job__dates { font-variant-numeric: tabular-nums; }
.job__location { font-size: 13px; line-height: 20px; color: var(--dim); }

.job__body {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.job__company,
.app__name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.job__company a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job__role { font-size: 14px; line-height: 20px; color: var(--text-soft); }

.job__desc {
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
  text-wrap: pretty;
}

/* Apps */
.app {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 20px);
  padding: var(--card-pad);
}

.app__icon {
  display: block;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--border);
}

.app__info {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app__desc { font-size: 14px; line-height: 20px; color: var(--muted); }

.app__stores {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); }

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .socials {
  gap: 4px;
  margin: 0 -8px;
}
