/* White base with subtle #0C2340 navy accents — plain CSS only */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #c5d0de;
  --text: #0C2340;
  --muted: #5a6b7d;
  --accent: #0C2340;
  --accent-hover: #163a66;
  --accent-soft: rgba(12, 35, 64, 0.08);
  --pending: #8a6a12;
  --pending-bg: rgba(138, 106, 18, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(12, 35, 64, 0.04), 0 8px 24px rgba(12, 35, 64, 0.06);
  --shadow-hover: 0 2px 4px rgba(12, 35, 64, 0.06), 0 16px 40px rgba(12, 35, 64, 0.1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
  --narrow: 680px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

/* Header — navy bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0C2340;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(12, 35, 64, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
}

.logo:hover {
  color: #d6e6f7;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
}

.nav-list a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

/* Hero — compact */
.hero {
  padding: 3.25rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-weight: 500;
}

.lede {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: var(--text);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(12, 35, 64, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(12, 35, 64, 0.32);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Sections */
.section {
  padding: 3.75rem 0;
}

.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-projects {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.section-head {
  margin-bottom: 2rem;
}

.section h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.75rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.section-intro {
  color: var(--muted);
  margin: 0;
  max-width: 38rem;
  font-size: 1.02rem;
}

.section p {
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* Projects — compact linked cards */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-grid--text {
  margin-top: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .project-grid--text {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  border-radius: var(--radius);
}

.project-card-link:hover {
  color: inherit;
}

.project-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card-link:hover .project-card {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

/* Compact thumbnail (single primary image) */
.project-thumb {
  background: #e8eef5;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card-link:hover .project-thumb img {
  transform: scale(1.03);
}

/* Compact card body */
.project-card--compact .project-body {
  padding: 0.85rem 0.95rem 1rem;
  flex: 1;
}

.project-card--compact .project-body h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text);
}

.project-card--compact .project-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.project-card--text.project-card--compact .project-body {
  padding: 1.1rem 1.15rem;
}

.project-card--text.project-card--compact .project-body h3 {
  font-size: 1rem;
}

/* Legacy dual-photo (kept for detail pages) */
.project-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--border);
}

.project-photos figure {
  margin: 0;
  background: #e8eef5;
  position: relative;
  overflow: hidden;
}

.project-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-photos figcaption {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}

.project-body {
  padding: 1.35rem 1.45rem 1.55rem;
}

.project-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.project-body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

/* Experience */
.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.exp-card:last-child {
  margin-bottom: 0;
}

.exp-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.meta {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.exp-bullets {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.exp-bullets li {
  margin-bottom: 0.35rem;
}

.exp-bullets li:last-child {
  margin-bottom: 0;
}

/* Education */
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.45rem;
  box-shadow: var(--shadow);
}

.edu-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.edu-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Skills */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.skill-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(12, 35, 64, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.skill-list li:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.contact-list .label {
  display: inline-block;
  min-width: 5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pending-inline {
  color: var(--pending);
  font-size: 0.92rem;
  background: var(--pending-bg);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  background: var(--bg);
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Project detail pages */
.project-detail {
  padding: 2.5rem 0 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--accent);
}

.project-detail h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.project-detail .detail-body {
  margin-bottom: 1.5rem;
}

.project-detail .detail-body p {
  color: var(--muted);
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
}

.project-detail .detail-body p:last-child {
  margin-bottom: 0;
}

.project-detail .tags {
  margin-bottom: 2rem;
}

.detail-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .detail-photos {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-photos figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-photos figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 700px) {
  .wrap,
  .narrow {
    width: min(100% - 1.75rem, var(--max));
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-projects {
    padding-top: 2.25rem;
    padding-bottom: 3rem;
  }

  .project-photos {
    grid-template-columns: 1fr;
  }

  .nav-list {
    gap: 0.2rem 0.85rem;
  }

  .contact-list .label {
    min-width: 100%;
    margin-bottom: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .project-card,
  .project-thumb img,
  .skill-list li,
  .nav-list a {
    transition: none;
  }

  .project-card-link:hover .project-card {
    transform: none;
  }

  .project-card-link:hover .project-thumb img {
    transform: none;
  }
}


/* Extra navy accents */
.section-head h2,
.section > .wrap > h2,
.section > .narrow > h2 {
  position: relative;
  padding-bottom: 0.55rem;
}

.section-head h2::after,
.section > .wrap > h2::after,
.section > .narrow > h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.55rem;
  background: #0C2340;
  border-radius: 999px;
}

.tags li,
.skill-list li {
  border-color: rgba(12, 35, 64, 0.18) !important;
  color: #0C2340;
  background: rgba(12, 35, 64, 0.06);
}

.project-card-link:hover .project-card,
a.project-card-link:focus-visible .project-card {
  border-color: #0C2340;
}

.site-footer {
  background: #0C2340 !important;
  border-top: none !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.site-footer a,
.site-footer p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.btn-ghost {
  border-color: #0C2340 !important;
  color: #0C2340 !important;
}

.eyebrow {
  background: rgba(12, 35, 64, 0.08);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.hero {
  border-bottom: 3px solid #0C2340;
}



/* Experience + Education split */
.section-split {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.split-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.split-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  min-width: 0;
}

.split-panel h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.split-panel .exp-card,
.split-panel .edu-card {
  box-shadow: none;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.7rem;
  background: var(--bg-soft);
}

.split-panel .exp-card:last-child,
.split-panel .edu-card:last-child {
  margin-bottom: 0;
}

.split-panel .exp-head h3,
.split-panel .edu-card h3 {
  font-size: 0.98rem;
}

.split-panel .exp-bullets,
.split-panel .edu-note,
.split-panel .meta {
  font-size: 0.88rem;
}

@media (min-width: 900px) {
  .split-panels {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.35rem;
  }
}
