:root {
  color-scheme: light;
  --ink: #172a3a;
  --muted: #536778;
  --line: #d8e1e8;
  --paper: #f7f9fb;
  --card: #fff;
  --accent: #176b68;
  --accent-soft: #e5f2f0;
  --warm: #c36c45;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #0e514f; }
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 2; background: white; padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); }
.header-inner, main, .site-footer { width: min(1060px, calc(100% - 40px)); margin-inline: auto; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { color: var(--ink); font-weight: 720; letter-spacing: -.02em; text-decoration: none; }
.eyebrow, .label { color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 3.25rem; max-width: 780px; }
h1 { margin: .25rem 0 1rem; font-size: clamp(2.5rem, 7vw, 4.7rem); letter-spacing: -.055em; line-height: 1.04; }
.hero p { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 65ch; }
.section-title { margin: 0 0 1.2rem; font-size: 1.35rem; letter-spacing: -.025em; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-bottom: 4rem; }
.work-card { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: clamp(1.2rem, 3vw, 1.8rem); display: flex; flex-direction: column; min-height: 275px; box-shadow: 0 8px 30px rgba(24, 48, 65, .035); }
.work-card:first-child { border-top: 3px solid var(--accent); }
.work-card:nth-child(2) { border-top: 3px solid #7387a1; }
.work-card:nth-child(3) { border-top: 3px solid var(--warm); }
.card-index { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.work-card h3 { margin: .5rem 0 .65rem; font-size: 1.25rem; line-height: 1.3; }
.work-card p { margin: 0; color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 1.1rem 0 1.4rem; list-style: none; }
.skills li { border-radius: 999px; background: #eff3f6; padding: .2rem .65rem; color: #344a5a; font-size: .78rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; width: fit-content; font-weight: 700; text-decoration: none; }
.card-link span { transition: transform .15s ease; }
.card-link:hover span { transform: translateX(3px); }
.site-footer { border-top: 1px solid var(--line); padding: 1.1rem 0 2rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 680px) { .work-grid { grid-template-columns: 1fr; } .work-card { min-height: 0; } .header-inner, main, .site-footer { width: min(100% - 28px, 1060px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
