/* barone.work — portfolio
   Hand-written, no build step, no external requests. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-alt: #f4f2ee;
  --text: #15171a;
  --muted: #565d65;
  --line: #e3e0da;
  --accent: #0d6a75;
  --accent-text: #0d6a75;
  --accent-soft: #e7f1f2;
  --shadow: 0 1px 2px rgba(20, 23, 26, .04), 0 8px 24px -12px rgba(20, 23, 26, .12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f11;
    --surface: #14171a;
    --surface-alt: #191d21;
    --text: #eceef0;
    --muted: #99a2aa;
    --line: #242a30;
    --accent: #5fd0de;
    --accent-text: #7cdbe7;
    --accent-soft: #10262b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding-inline: 1.5rem; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--surface); color: var(--text);
  padding: .75rem 1rem; border-radius: 6px; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 5;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem; flex-wrap: wrap;
}
.brand {
  font-weight: 650; letter-spacing: -.01em; font-size: 1.02rem;
  color: var(--text); text-decoration: none;
}
.brand span { color: var(--muted); font-weight: 450; }
.site-nav { display: flex; gap: 1.4rem; font-size: .94rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero { padding-block: 5.5rem 4rem; }
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 550; letter-spacing: .02em;
  color: var(--accent-text); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: .35rem .8rem; border-radius: 999px;
}
.status::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.6rem);
  line-height: 1.08; letter-spacing: -.03em;
  margin: 1.5rem 0 0; font-weight: 680; max-width: 18ch;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted); max-width: 54ch; margin: 1.35rem 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-size: .95rem; font-weight: 550;
  padding: .7rem 1.25rem; border-radius: 8px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ---------- sections ---------- */

section { padding-block: 3.5rem; }
.section-head {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 2rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-size: 1.28rem; letter-spacing: -.015em; font-weight: 620; margin: 0;
}
.section-head .count { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }

/* ---------- project cards ---------- */

.projects { display: grid; gap: 1.25rem; }
@media (min-width: 46rem) { .projects { grid-template-columns: 1fr 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.6rem; box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.card.feature { grid-column: 1 / -1; }

.card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: .55rem;
}
.card h3 { margin: 0; font-size: 1.16rem; letter-spacing: -.015em; font-weight: 620; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent-text); }

.tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: .25rem .55rem; border-radius: 5px;
  background: var(--surface-alt); color: var(--muted); white-space: nowrap;
}
.tag-live { background: var(--accent-soft); color: var(--accent-text); }

.card p { margin: 0 0 1.1rem; color: var(--muted); font-size: .97rem; }
.card p strong { color: var(--text); font-weight: 600; }

.stack { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.15rem; padding: 0; list-style: none; }
.stack li {
  font-size: .78rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 5px; padding: .2rem .5rem;
}

.card-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .92rem; }
.card-links a { font-weight: 550; }
.card-links .plain { color: var(--muted); text-decoration: none; }
.card-links .plain:hover { color: var(--text); text-decoration: underline; }

/* ---------- experience ---------- */

.role {
  display: grid; gap: .35rem 2rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.6rem; box-shadow: var(--shadow);
}
@media (min-width: 46rem) {
  .role { grid-template-columns: 11rem 1fr; }
  .role .meta { text-align: right; }
}
.role h3 { margin: 0; font-size: 1.1rem; font-weight: 620; letter-spacing: -.01em; }
.role .org { color: var(--accent-text); font-weight: 550; }
.role .meta { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.role p { margin: .5rem 0 0; color: var(--muted); font-size: .97rem; }

/* ---------- toolkit ---------- */

.toolkit { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.toolkit li {
  font-size: .9rem; padding: .4rem .8rem; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}

/* ---------- contact ---------- */

.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: var(--shadow); text-align: center;
}
.contact-card h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.02em; font-weight: 660; }
.contact-card p { color: var(--muted); max-width: 46ch; margin: 1rem auto 2rem; }
.mail {
  font-size: clamp(1.05rem, 3vw, 1.3rem); font-weight: 600;
  word-break: break-word;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line); margin-top: 3rem;
  padding: 2rem 0 3rem; color: var(--muted); font-size: .88rem;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; }
.site-foot a { color: var(--muted); }
