:root {
  color-scheme: light;
  --ink: #15233b;
  --muted: #526179;
  --brand: #087c79;
  --brand-dark: #07615f;
  --surface: #ffffff;
  --soft: #eff5f7;
  --border: #dce5ea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; color: var(--ink); background: var(--surface); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #db9c25; outline-offset: 4px; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; top: -90px; left: 10px; z-index: 10; padding: 10px 14px; background: #ffffff; color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 10px; }
.site-header { border-bottom: 1px solid var(--border); background: white; }
.header-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { font-size: 1.1rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.nav a:hover { color: var(--brand); }
.hero { padding: 100px 0; background: linear-gradient(125deg, #f0f7f8, #ffffff 64%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 52px; }
.eyebrow { color: var(--brand); font-size: 0.81rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.7rem); margin: 0 0 22px; }
h1 span { color: var(--brand); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 0 0 18px; }
h3 { font-size: 1.27rem; margin: 0 0 12px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; margin-bottom: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 20px; min-height: 48px; background: var(--brand); color: #ffffff; border-radius: 10px; text-decoration: none; font-weight: 750; }
.button:hover { background: var(--brand-dark); }
.button-outline { background: white; color: var(--brand-dark); border: 2px solid var(--brand); }
.button-outline:hover { background: var(--soft); }
.hero-art { background: #14223b; padding: 25px; border-radius: 22px; box-shadow: 0 22px 55px rgb(21 35 59 / 0.17); transform: rotate(2deg); }
.window-bar { display: flex; gap: 8px; margin-bottom: 25px; }
.window-bar span { width: 12px; height: 12px; border-radius: 50%; background: #6a829d; }
.window-bar span:first-child { background: #ff8a8a; }
.window-bar span:nth-child(2) { background: #facf70; }
.window-bar span:nth-child(3) { background: #7dd8a5; }
.code-lines { display: grid; gap: 14px; color: #f7f9ff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(0.74rem, 1.45vw, 0.97rem); overflow-wrap: anywhere; }
.code-lines b { color: #72e4c4; font-weight: 500; }
.section { padding: 86px 0; scroll-margin-top: 20px; }
.section-muted { background: var(--soft); }
.section-intro { color: var(--muted); max-width: 70ch; margin: 0 0 28px; }
.skill-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; list-style: none; }
.skill-list li, .card { min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.skill-list strong { display: block; color: var(--brand); margin-bottom: 8px; font-size: 1.2rem; }
.skill-list span { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; align-items: start; }
.card-number { font-size: 0.83rem; letter-spacing: 0.12em; color: var(--brand); font-weight: 900; margin: 0 0 26px; }
.card p:not(.card-number) { color: var(--muted); flex: 1; margin: 0 0 24px; }
.tag { font-size: 0.82rem; border-radius: 99px; background: #e5f5ef; color: #116755; padding: 6px 11px; font-weight: 700; }
.contact-box { padding: 38px 42px; display: flex; gap: 28px; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 20px; }
.contact-box p:last-child { max-width: 68ch; color: var(--muted); margin: 0; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 850px) {
  .hero { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { transform: none; }
  .skill-list, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-box { align-items: start; flex-direction: column; }
}
@media (max-width: 580px) {
  .container { width: min(100% - 28px, 1120px); }
  .header-inner { align-items: start; flex-direction: column; padding: 18px 0; gap: 12px; }
  .nav { gap: 12px 18px; }
  .hero { padding: 52px 0; }
  .section { padding: 60px 0; }
  .skill-list, .cards { grid-template-columns: 1fr; }
  .contact-box { padding: 24px; }
  .code-lines { font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
