@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Same palette as work.nilbacardit.me. */
:root {
  color-scheme: light dark;
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #18232D;
  --muted: #52616B;
  --accent: #116466;
  --rule: #D5DFE2;
  --tint: #E4EFEE;
  --shadow: 0 1px 2px rgb(24 35 45 / 0.05), 0 2px 8px rgb(24 35 45 / 0.05);
  --shadow-hover: 0 2px 4px rgb(24 35 45 / 0.06), 0 8px 24px rgb(24 35 45 / 0.1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111A1F;
    --surface: #18242A;
    --ink: #E6EBED;
    --muted: #9BABB3;
    --accent: #5DC4BE;
    --rule: #2B3A42;
    --tint: #17282D;
    --shadow: none;
    --shadow-hover: 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: linear-gradient(var(--tint), transparent 22rem) no-repeat var(--bg); color: var(--ink); font: 400 1rem/1.5 "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.lang { display: flex; justify-content: flex-end; width: min(60rem, 100% - 2rem); margin-inline: auto; padding-top: 0.25rem; font-size: 0.875rem; }
.lang a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.5rem; color: var(--muted); text-decoration: underline; text-underline-offset: 0.18em; }
.lang a:hover { color: var(--accent); }
.lang a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }
.page { width: min(60rem, 100% - 2rem); margin-inline: auto; padding-block: 1rem 1rem; }
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar { width: 7.5rem; height: 7.5rem; border: 3px solid var(--surface); border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-hover); }
h1 { margin-top: 1rem; font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.bio { margin-top: 0.5rem; max-width: 30em; color: var(--muted); font-size: 1.0625rem; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 50%; }
.social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.social a:hover { border-color: var(--accent); color: var(--accent); }

.feature, .card { background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 2.25rem; border-radius: 12px; overflow: hidden; }
.feature img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border-bottom: 1px solid var(--rule); }
.feature .text { padding: 1rem 1.25rem 1.25rem; }
.feature strong { display: block; margin-top: 0.25rem; font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.kicker { display: block; color: var(--accent); font-size: 0.875rem; font-weight: 500; }
.go { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.75rem; color: var(--accent); font-weight: 500; }
.go svg { width: 1.125rem; height: 1.125rem; }

section { margin-top: 2.25rem; }
h2 { margin-bottom: 0.75rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.cards { display: grid; gap: 0.75rem; }
.card { display: flex; align-items: center; gap: 0.875rem; height: 100%; min-height: 5.25rem; padding: 0.625rem; padding-right: 0.875rem; border-radius: 12px; }
.thumb { flex: none; width: 6.5rem; height: 4.0625rem; border-radius: 8px; object-fit: cover; object-position: top; background: var(--tint); box-shadow: inset 0 0 0 1px var(--rule); }
.tile { display: grid; place-items: center; color: #fff; background: #2F6690; box-shadow: none; }
.tile svg { width: 2.5rem; height: 2.5rem; fill: currentColor; }
.text { min-width: 0; flex: 1; }
.card strong { display: block; font-weight: 500; line-height: 1.3; }
.sub { display: block; margin-top: 0.125rem; color: var(--muted); font-size: 0.875rem; }
.arrow { flex: none; width: 1.125rem; height: 1.125rem; color: var(--muted); }
.feature:hover, .card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.card:hover .arrow { color: var(--accent); }
.feature:active, .card:active { box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .feature, .card, .arrow, .go svg { transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
  .feature:hover, .card:hover { transform: translateY(-2px); }
  .card:hover .arrow, .feature:hover .go svg { transform: translate(2px, -2px); }
  .feature:active, .card:active { transform: none; }
}

@media (min-width: 48rem) {
  .page { padding-top: 1.5rem; }
  .feature { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; }
  .feature img { border-bottom: 0; border-right: 1px solid var(--rule); }
  .feature .text { padding: 1.5rem 2rem; }
  .feature strong { font-size: 1.5rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.foot { padding-block: 2.5rem; color: var(--muted); font-size: 0.875rem; text-align: center; }

.view { position: absolute; width: 1px; height: 1px; }

.stats { width: min(34rem, 100% - 2rem); padding-top: 3rem; }
.stats a { color: var(--accent); text-decoration: underline; }
.periods { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }
.periods a[aria-current] { color: var(--ink); font-weight: 500; text-decoration: none; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.625rem; margin: 1.5rem 0 0; }
.totals div { padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; }
.totals dt { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.totals dd { margin: 0.125rem 0 0; color: var(--muted); font-size: 0.875rem; }
.stats h2 { margin-top: 2rem; margin-bottom: 0.625rem; color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.stats table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.stats th, .stats td { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); text-align: right; font-weight: 400; }
.stats th { color: var(--muted); font-size: 0.875rem; }
.stats th:first-child, .stats td:first-child { text-align: left; overflow-wrap: anywhere; }
.stats td + td, .stats th + th { padding-left: 1rem; }
.export { margin-top: 1.5rem; }
