/* Mark T. Lee — personal website
   Sarreal Consulting build. Aesthetic: senior legal executive — deep navy authority,
   muted gold accent, geometric sans-serif, generous whitespace, mobile-first. */

:root {
  --navy: #0f2747;
  --navy-700: #16355f;
  --navy-50: #eef2f8;
  --gold: #b08d4f;
  --gold-600: #97763c;
  --ink: #1c2330;
  --muted: #5a6473;
  --line: #e2e6ec;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 39, 71, 0.08);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, .brand {
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.15rem; }

a { color: var(--navy-700); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold-600); }

p { color: var(--ink); }
.muted { color: var(--muted); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a { font-weight: 500; font-size: 0.97rem; color: var(--ink); }
.nav-links a.active { color: var(--gold-600); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.97rem; transition: all 0.3s ease; cursor: pointer;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--gold-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 600; color: var(--gold-600); margin-bottom: 10px;
}

/* ---------- Home two-column layout (per Mark) ---------- */
.home-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start;
  padding-top: 56px;
}
.home-aside { position: sticky; top: 96px; }
.photo {
  width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--navy-50);
  display: block; margin-left: auto;
}
.photo-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: 0.9rem; padding: 16px; border: 1px dashed #c8d0dd;
}
.about-card {
  margin-top: 24px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}

/* ---------- Cards / grids ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: all 0.3s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* skills list (home left column) */
.skill-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.skill-list li { padding-left: 22px; position: relative; }
.skill-list li::before {
  content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px;
  background: var(--gold); border-radius: 2px;
}
.skill-list strong { color: var(--navy); }

/* experience timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  border-left: 2px solid var(--line); padding: 0 0 28px 24px; position: relative;
}
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  background: var(--gold); border-radius: 50%; border: 2px solid #fff;
}
.timeline .role { font-weight: 600; color: var(--navy); }
.timeline .org { font-weight: 600; }
.timeline .dates { color: var(--muted); font-size: 0.9rem; }
.timeline p { margin: 6px 0 0; font-size: 0.96rem; color: var(--muted); }

/* ---------- Practice-area layout: left menu + content ---------- */
.pa-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start;
  padding: 40px 0 64px;
}
.pa-nav {
  position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; background: #fff;
}
.pa-nav h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold-600); margin: 4px 8px 12px; }
.pa-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pa-nav a {
  display: block; padding: 9px 10px; border-radius: 8px; font-size: 0.95rem;
  color: var(--ink); font-weight: 500; transition: all 0.2s ease;
}
.pa-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.pa-nav a.active { background: var(--navy); color: #fff; }
.pa-content > h1 { margin-top: 0; }
.pa-content .lead { margin-bottom: 28px; }
.pa-content h2 { margin-top: 36px; }
.pa-content ul:not(.skill-list):not(.nav-links) { padding-left: 20px; }
.pa-content li { margin-bottom: 8px; }
.pa-cta { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .pa-layout { grid-template-columns: 1fr; gap: 24px; }
  .pa-nav { position: static; }
  .pa-nav ul { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* license groups */
.license-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.license-grid ul { padding-left: 18px; margin: 8px 0 0; }
.license-grid li { margin-bottom: 6px; }

/* contact */
.contact-list { list-style: none; padding: 0; display: grid; gap: 14px; font-size: 1.05rem; }
.contact-list .label { color: var(--muted); font-size: 0.85rem; display: block; }

/* hero */
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #cfd8e6; padding: 40px 0; margin-top: 40px;
  font-size: 0.92rem;
}
.site-footer a { color: #fff; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .home-grid { grid-template-columns: 1fr; }
  /* mobile: About + photo first, then skills/experience */
  .home-aside { position: static; order: -1; }
  .photo { margin: 0 auto; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 8px 0; }
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid var(--line);
    border-radius: 10px; padding: 8px 12px; font-size: 1rem; cursor: pointer; color: var(--navy);
  }
  section { padding: 48px 0; }
}
