@font-face {
  font-family: "Open Sans Local";
  src: url("fonts/opensans/OpenSans-Regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans Local";
  src: url("fonts/opensans/OpenSans-Semibold-webfont.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville Local";
  src: url("fonts/librebaskerville/librebaskerville-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville Local";
  src: url("fonts/librebaskerville/librebaskerville-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1f2a37;
  --ink-soft: #4b5563;
  --ink-light: #6b7280;
  --line: #d6dde8;
  --line-strong: #aeb8c9;
  --paper: #f3f6fb;
  --paper-strong: #e7edf6;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --navy: #0f2c5c;
  --navy-soft: #1d3f73;
  --teal: #0f6f74;
  --active: #1f7a3f;
  --maintained: #2b5ea8;
  --archive: #7b4b22;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 12px 32px rgba(15, 44, 92, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top right, #dce8f7 0%, #f3f6fb 34%, #f7f9fc 70%, #ffffff 100%);
  font-family: "Open Sans Local", "Avenir Next", "Trebuchet MS", sans-serif;
  line-height: 1.65;
}

main {
  display: block;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -6rem;
  z-index: 100;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: #0f2c5c;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

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

a {
  color: var(--navy-soft);
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65rem;
  color: #132340;
  line-height: 1.25;
  font-family: "Libre Baskerville Local", Georgia, serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

h2 {
  font-size: clamp(1.55rem, 4vw, 2.3rem);
}

h3 {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

p {
  margin: 0 0 1rem;
}

.site-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 44, 92, 0.1);
  background: rgba(247, 250, 255, 0.94);
  backdrop-filter: blur(8px);
}

.site-header .site-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 1.1rem;
  padding: 0.75rem 0;
}

.brand a {
  color: #0f2c5c;
  text-decoration: none;
  font-family: "Libre Baskerville Local", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a {
  color: #213a66;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover {
  background: rgba(15, 44, 92, 0.08);
}

.site-nav a[aria-current="page"] {
  background: rgba(15, 44, 92, 0.14);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  background: var(--panel);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 1.2rem;
  padding: 1.3rem 0 2rem;
}

.footer-content p {
  margin: 0;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  font-weight: 600;
  text-decoration: none;
}

section {
  padding: 4rem 0;
}

.hero {
  padding-top: 4.7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.2rem 2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--ink-light);
  font-weight: 700;
}

.lead {
  font-size: 1.1rem;
  max-width: 65ch;
  color: #2a3c56;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), #17437f);
  border: 1px solid rgba(15, 44, 92, 0.15);
}

.button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #0b2650, #103a6f);
}

.button-secondary {
  color: var(--navy);
  background: #edf3fb;
  border: 1px solid rgba(15, 44, 92, 0.2);
}

.button-secondary:hover {
  color: #0b2650;
  background: #e1ebf8;
}

.hero-card {
  background: linear-gradient(165deg, #f8fbff, #eef4fc);
  border: 1px solid rgba(29, 63, 115, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.featured-video {
  padding-top: 0.6rem;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.text-link {
  color: var(--navy-soft);
  text-decoration: none;
  font-weight: 700;
}

.video-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(15, 44, 92, 0.24);
  box-shadow: var(--shadow-soft);
}

.video-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.about,
.contact,
.page-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.9));
  border-top: 1px solid rgba(29, 63, 115, 0.08);
  border-bottom: 1px solid rgba(29, 63, 115, 0.08);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem 2rem;
}

.highlights {
  margin: 0;
  padding-left: 1.1rem;
}

.highlights li {
  margin-bottom: 0.7rem;
}

.project-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 63, 115, 0.14);
  background: var(--panel);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow-soft);
}

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

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.chip-active {
  color: #0f5132;
  background: #e3f4e9;
  border-color: #b8e2c5;
}

.chip-maintained {
  color: #153f77;
  background: #e8f0fd;
  border-color: #bfd4fb;
}

.chip-archive {
  color: #693b16;
  background: #fff1e4;
  border-color: #f5d0a9;
}

.updated {
  color: var(--ink-light);
  font-size: 0.82rem;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.card-footer a {
  text-decoration: none;
  font-weight: 700;
}

.category {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.post-date {
  font-size: 0.86rem;
  color: var(--ink-light);
  margin-bottom: 0.45rem;
}

.empty-state {
  border: 1px dashed rgba(29, 63, 115, 0.34);
  border-radius: var(--radius-md);
  background: #f4f8ff;
  padding: 1.05rem 1.1rem;
}

.contact-links {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.contact-links a {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
}

.page-hero {
  padding-top: 4.7rem;
  padding-bottom: 1.6rem;
}

.page-section {
  padding-top: 1.3rem;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-list-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 63, 115, 0.14);
  background: #ffffff;
  padding: 1rem 1.1rem;
}

.article-page {
  padding-top: 4.5rem;
}

.article-wrap {
  max-width: 760px;
}

.article-meta {
  color: var(--ink-light);
  font-size: 0.95rem;
}

.meta-divider {
  margin: 0 0.25rem;
}

.post-linkedin {
  border-left: 3px solid rgba(29, 63, 115, 0.35);
  padding: 0.3rem 0 0.3rem 0.8rem;
  color: #273f66;
}

.article-content {
  margin-top: 1.6rem;
}

.article-content h2,
.article-content h3 {
  margin-top: 1.5rem;
}

.article-content code,
.empty-state code {
  font-family: "Menlo", "Consolas", monospace;
  background: #e7eef9;
  border-radius: 6px;
  padding: 0.05rem 0.3rem;
}

.article-content blockquote {
  margin: 1.2rem 0;
  padding: 0.3rem 0 0.3rem 1rem;
  border-left: 4px solid rgba(15, 44, 92, 0.32);
  color: #33445e;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid #0f6f74;
  outline-offset: 2px;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .project-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3.3rem 0;
  }

  .hero {
    padding-top: 4.2rem;
  }

  .page-hero,
  .article-page {
    padding-top: 3.9rem;
  }
}

@media (max-width: 620px) {
  .site-header .site-wrap {
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.72rem;
  }

  .hero-links {
    width: 100%;
  }

  .hero-links .button {
    width: 100%;
    text-align: center;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
