/* ============ dankellys.co.uk — online CV ============ */
:root {
  --bg: #f7f9fa;
  --surface: #ffffff;
  --text: #17222b;
  --muted: #5b6b7b;
  --border: #e3e8ee;
  --accent: #0f766e;
  --accent-soft: #d6efec;
  --accent-contrast: #ffffff;
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .07);
}
[data-theme="dark"] {
  --bg: #0e1418;
  --surface: #17212a;
  --text: #e6edf3;
  --muted: #93a1b1;
  --border: #24303c;
  --accent: #2dd4bf;
  --accent-soft: #123f3a;
  --accent-contrast: #06211e;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .25s, color .25s;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
.eyebrow {
  color: var(--accent); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; margin: 0 0 .3rem;
}

/* ---- nav ---- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: .8rem clamp(1rem, 6vw, 4rem);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { font-weight: 800; font-size: 1.15rem; color: var(--text); }
.nav-brand span { color: var(--accent); }
.site-nav nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-nav nav a { color: var(--text); font-size: .95rem; font-weight: 500; }
.site-nav nav a:hover { color: var(--accent); }
.theme-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: .35rem .7rem; cursor: pointer; font-size: .9rem;
}
.theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .moon { display: inline; }
[data-theme="dark"] .theme-btn .sun { display: none; }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center;
  gap: 3rem; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 4rem);
  max-width: 1150px; margin: 0 auto;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.role { font-size: 1.25rem; color: var(--muted); margin: .4rem 0 0; font-weight: 600; }
.role .at { color: var(--accent); }
.tagline { color: var(--muted); max-width: 46ch; margin: 1rem 0 1.5rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: .6rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn.icon { width: 42px; padding: .6rem 0; font-weight: 800; }
.hero-stats {
  display: flex; gap: 2.5rem; list-style: none; padding: 0; margin: 2rem 0 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--accent); }
.hero-stats span { font-size: .82rem; color: var(--muted); }
.hero-photo { justify-self: center; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: -14px;
  border-radius: 32px; background: var(--accent-soft); transform: rotate(-4deg); z-index: -1;
}
.hero-photo img {
  width: min(340px, 70vw); height: auto; border-radius: 24px; display: block;
  object-fit: cover; box-shadow: var(--shadow);
}

/* ---- sections ---- */
.section { padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 6vw, 4rem); max-width: 1150px; margin: 0 auto; }
.section.alt { max-width: none; background: var(--surface); border-block: 1px solid var(--border); }
.section.alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section.alt h2 { margin-bottom: 1.5rem; }

/* about */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
.about-cards { display: grid; gap: 1rem; }
.mini-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); text-align: center;
}
.mini-card h3 { font-size: .95rem; color: var(--accent); margin-bottom: .3rem; }
.mini-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.about-text { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* skills */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.skill-group {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem;
}
.skill-group h3 { color: var(--accent); font-size: 1.05rem; margin-bottom: 1rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; }
.chips li {
  background: var(--surface); border: 1px solid var(--border);
  padding: .4rem .95rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
}
.chips li:hover { border-color: var(--accent); color: var(--accent); }

/* career timeline */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 1.5rem; }
.tl-marker {
  position: absolute; left: -1.6rem; top: 1.4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}
.tl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm);
}
.tl-card header { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.tl-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; border: 1px solid var(--border); }
.tl-card h3 { font-size: 1.1rem; }
.tl-meta { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; }
.tl-card p { color: var(--muted); margin: .5rem 0 0; font-size: .96rem; }

/* contact */
.contact { text-align: center; }
.contact-cards { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact-card {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: .7rem 1.5rem; color: var(--text); font-weight: 600;
  box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.contact-icon {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  background: var(--accent); color: var(--accent-contrast); border-radius: 50%; font-size: .85rem; font-weight: 800;
}

/* footer */
.site-foot { text-align: center; padding: 2.5rem 1rem 2rem; color: var(--muted); font-size: .9rem; }
.site-foot nav { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: .75rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2.5rem; }
  .hero-photo { order: -1; }
  .hero-actions, .hero-stats { justify-content: center; }
  .about-grid, .skills-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
  .site-nav nav { gap: 1rem; }
}
