* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --page-bg: #f7f8fb;
  --text: #1f2933;
  --muted: #5f6b7a;
  --heading: #111827;
  --line: #d9dee7;
  --brand: #1f5f8b;
  --brand-strong: #163f5f;
  --ink: #172331;
  --ink-soft: #223143;
  --blue: #16a8d8;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

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

a:hover,
a:focus {
  color: var(--brand-strong);
}

header,
main,
footer {
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
}

header {
  width: 100%;
  padding: 0 0 2rem;
}

.page-header {
  padding-bottom: 2.4rem;
  background: linear-gradient(180deg, #243448 0%, #2d4057 100%);
}

.page-header .topbar {
  margin-bottom: 2.2rem;
}

.page-header h1,
.page-header h2 {
  color: #ffffff;
}

.page-header p,
.page-header .page-intro,
.page-header .blog-intro,
.page-header .article-source,
.page-header .post-meta {
  color: #dbe7f1;
}

.page-header .post-meta span + span::before {
  background: rgba(255, 255, 255, 0.36);
}

.page-header .button-muted {
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #ffffff;
}

.page-header .button-muted:hover,
.page-header .button-muted:focus {
  border-color: #82d7f1;
  background: rgba(130, 215, 241, 0.12);
  color: #82d7f1;
}

.about-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 2.4rem;
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
  padding: 1.2rem 0 0.2rem;
}

.about-hero img {
  display: block;
  width: min(260px, 100%);
  margin: 0;
  border-radius: 50%;
}

.about-hero-copy h1 {
  margin: 0 0 0.7rem;
}

.about-hero-copy h2 {
  margin-bottom: 0.7rem;
  color: #82d7f1;
  font-size: 1.2rem;
}

.about-hero-copy p {
  max-width: 660px;
  margin: 0 0 0.75rem;
  color: #dbe7f1;
}

.about-hero-copy p:last-child {
  margin-bottom: 0;
}

.hero {
  width: 100%;
  margin: 0;
  padding: 3rem max(1rem, calc((100% - 980px) / 2)) 3.5rem;
  border-top: 0;
  background: linear-gradient(180deg, #243448 0%, #2d4057 100%);
  text-align: center;
}

.hero-copy {
  max-width: 900px;
  margin: 0 auto;
}

.logo-marquee {
  width: min(100%, 900px);
  margin: 0 auto 1.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 34s linear infinite;
}

.logo-group {
  display: flex;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.logo-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: max-content;
  min-height: 3rem;
  padding: 0.58rem 0.9rem;
  border: 1px solid rgba(125, 211, 252, 0.5);
  background: #102a44;
  box-shadow: 0 0.45rem 1.1rem rgba(0, 0, 0, 0.22);
}

.logo-label {
  position: relative;
  z-index: 1;
  color: #ffffff !important;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mark-microsoft::before {
  content: "";
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  background:
    linear-gradient(#f25022 0 0) 0 0 / 46% 46%,
    linear-gradient(#7fba00 0 0) 100% 0 / 46% 46%,
    linear-gradient(#00a4ef 0 0) 0 100% / 46% 46%,
    linear-gradient(#ffb900 0 0) 100% 100% / 46% 46%;
  background-repeat: no-repeat;
}

.mark-azure::before {
  content: "";
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.4rem;
  background: linear-gradient(135deg, #38bdf8, #0078d4);
  clip-path: polygon(50% 0, 100% 100%, 62% 100%, 49% 66%, 34% 100%, 0 100%);
}

.mark-identity::before {
  content: "";
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.5rem;
  background: linear-gradient(135deg, #7dd3fc, #6366f1);
  clip-path: polygon(50% 0, 90% 18%, 82% 76%, 50% 100%, 18% 76%, 10% 18%);
}

.mark-identity::after {
  content: "";
  position: absolute;
  left: 1.28rem;
  width: 0.42rem;
  height: 0.42rem;
  border: 0.14rem solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
}

.mark-security::before {
  content: "";
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.52rem;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  clip-path: polygon(50% 0, 88% 17%, 82% 73%, 50% 100%, 18% 73%, 12% 17%);
}

.mark-security::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  width: 0.52rem;
  height: 0.4rem;
  border: 0.12rem solid #ffffff;
  border-top-left-radius: 0.2rem;
  border-top-right-radius: 0.2rem;
  border-bottom-width: 0.28rem;
}

.mark-automation::before {
  content: "";
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  border: 0.25rem solid #d6a900;
  border-radius: 50%;
  box-shadow:
    0 -0.78rem 0 -0.54rem #d6a900,
    0 0.78rem 0 -0.54rem #d6a900,
    0.78rem 0 0 -0.54rem #d6a900,
    -0.78rem 0 0 -0.54rem #d6a900,
    0.55rem 0.55rem 0 -0.54rem #d6a900,
    -0.55rem -0.55rem 0 -0.54rem #d6a900,
    0.55rem -0.55rem 0 -0.54rem #d6a900,
    -0.55rem 0.55rem 0 -0.54rem #d6a900;
}

.mark-ai::before {
  content: "";
  flex: 0 0 auto;
  width: 1.42rem;
  height: 1.42rem;
  border: 0.18rem solid #0891b2;
  border-radius: 50%;
  box-shadow:
    0.62rem 0.2rem 0 -0.3rem #0891b2,
    -0.56rem 0.3rem 0 -0.3rem #0891b2,
    0 -0.62rem 0 -0.3rem #0891b2;
}

.mark-copilot::before {
  content: "";
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.25rem;
  border: 0.2rem solid #7c3aed;
  border-left-color: #0284c7;
  border-right-color: #16a34a;
  border-radius: 50%;
  transform: rotate(-12deg);
}

.mark-copilot::after {
  content: "";
  position: absolute;
  left: 1.45rem;
  width: 0.5rem;
  height: 0.5rem;
  background: #0284c7;
  border-radius: 50%;
}

.mark-devops::before {
  content: "";
  flex: 0 0 auto;
  width: 1.65rem;
  height: 0.95rem;
  border: 0.2rem solid #2563eb;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.mark-workplace::before {
  content: "";
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.08rem;
  border: 0.16rem solid #16a34a;
  border-radius: 0.18rem;
  box-shadow: 0.28rem 0.28rem 0 -0.12rem #16a34a;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 850px;
  color: #ffffff;
}

.hero p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  color: #dbe7f1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus {
  border-color: #55c9ea;
  background: #55c9ea;
  color: #ffffff;
}

.button-secondary {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: #82d7f1;
  color: #82d7f1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 4rem;
  padding: 0.45rem 1rem;
  background: var(--ink);
}

.site-brand {
  display: block;
  flex: 0 0 auto;
  width: min(205px, 28vw);
  margin: 0;
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  opacity: 0.92;
}

.brand-logo {
  display: block;
  width: 100%;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 2rem;
  padding: 0;
  border-bottom: 0;
  font-size: 0.96rem;
}

nav a {
  color: #ffffff;
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  color: #82d7f1;
  text-decoration: underline;
}

.nav-profile {
  margin-left: 0.35rem;
  padding: 0.68rem 1.15rem;
  border: 1px solid #f39a25;
  background: #f39a25;
  color: #ffffff;
}

.nav-profile:hover,
.nav-profile:focus {
  border-color: #ffb24f;
  background: #ffb24f;
  color: #ffffff;
  text-decoration: none;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  max-width: 820px;
  margin: 2.4rem auto 1rem;
  font-size: 2.2rem;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: 1.55rem;
}

h3 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1.1rem;
}

p,
ul {
  max-width: 760px;
}

header p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1.08rem;
}

header > h1,
header > p {
  width: min(100% - 2rem, 980px);
}

.page-intro {
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: center;
}

.services-page {
  padding-top: 0.8rem;
}

.service-section {
  border-top: 0;
}

.service-section > h2 {
  margin-bottom: 1.1rem;
  text-align: center;
}

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

.audience-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 0.45rem 1.2rem rgba(23, 35, 49, 0.05);
}

.audience-card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.availability-panel {
  max-width: 760px;
  margin: 0 auto 1.6rem;
  padding: 1.4rem;
  border: 1px solid rgba(22, 168, 216, 0.35);
  background: #ffffff;
  text-align: center;
}

.availability-panel p {
  margin-left: auto;
  margin-right: auto;
}

.availability-panel .button {
  margin-top: 0.5rem;
}

.learning-philosophy {
  padding: 2.2rem 1.4rem;
  border: 1px solid rgba(22, 168, 216, 0.2);
  background:
    linear-gradient(135deg, rgba(22, 168, 216, 0.1), rgba(255, 255, 255, 0.78)),
    #eef7fb;
  box-shadow: inset 0 0.2rem 0 rgba(22, 168, 216, 0.18);
}

.learning-philosophy h2,
.learning-philosophy > p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.learning-flow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 980px;
  margin: 1.6rem auto 0;
}

.learning-step {
  position: relative;
  flex: 1 1 0;
  min-height: 12rem;
  padding: 1.15rem;
  border: 1px solid rgba(22, 168, 216, 0.35);
  background: #ffffff;
  box-shadow: 0 0.6rem 1.4rem rgba(23, 35, 49, 0.06);
}

.learning-step::before {
  content: "";
  position: absolute;
  inset: 0.35rem auto auto 0.35rem;
  width: 2.6rem;
  height: 0.22rem;
  background: var(--blue);
}

.step-number {
  display: inline-block;
  margin-bottom: 1.6rem;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.learning-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.learning-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.flow-arrow {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.focus-direction > p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.focus-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  max-width: 840px;
  margin: 1.3rem auto 1.6rem;
}

.focus-grid span {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(22, 168, 216, 0.35);
  background: #ffffff;
  color: var(--heading);
  font-weight: 700;
  box-shadow: 0 0.35rem 0.9rem rgba(23, 35, 49, 0.05);
}

.direction-path {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 880px;
  margin: 0 auto 1.4rem;
  color: var(--muted);
  font-weight: 700;
}

.direction-path span,
.direction-path strong {
  display: inline-flex;
  align-items: center;
}

.direction-path span::after {
  content: "\2192";
  margin-left: 0.55rem;
  color: var(--blue);
}

.direction-path strong {
  color: var(--brand);
}

.professional-journey {
  border-top: 0;
}

.story-panel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.6rem 1.8rem 1.6rem 2rem;
  border: 1px solid rgba(22, 168, 216, 0.25);
  border-left: 0.32rem solid var(--blue);
  background: #ffffff;
  box-shadow: 0 0.7rem 1.6rem rgba(23, 35, 49, 0.06);
}

.story-panel p {
  margin: 0 0 1rem;
}

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

.story-lead {
  max-width: 760px;
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.55;
}

.about-closing {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(22, 168, 216, 0.28);
  background:
    linear-gradient(135deg, rgba(22, 168, 216, 0.08), rgba(255, 255, 255, 0.88)),
    #ffffff;
  box-shadow: 0 0.7rem 1.6rem rgba(23, 35, 49, 0.06);
}

.about-closing h2 {
  margin-bottom: 0.8rem;
}

.about-closing p {
  margin-left: 0;
}

.about-closing p:last-child {
  margin-bottom: 0;
  font-weight: 700;
}

.cv-page {
  width: min(100% - 2rem, 1080px);
  padding-top: 1.2rem;
}

.cv-document {
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 0.8rem 1.8rem rgba(23, 35, 49, 0.08);
}

.cv-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 1.4rem;
  margin: 0;
  padding: 1.8rem;
  border-top: 0;
  border-bottom: 4px solid var(--blue);
  background: linear-gradient(135deg, #ffffff 0%, #eef7fb 100%);
}

.cv-label {
  margin: 0 0 0.35rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cv-profile h2 {
  margin: 0 0 0.35rem;
  font-size: 2.4rem;
}

.cv-role {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.cv-contact-list {
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.cv-contact-list li + li {
  margin-top: 0.35rem;
}

.cv-contact-list strong {
  display: inline-block;
  min-width: 4.6rem;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  grid-column: 1 / -1;
}

.button-disabled {
  cursor: default;
  opacity: 0.82;
}

.cv-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
}

.cv-sidebar {
  display: grid;
  gap: 1.4rem;
  padding: 1.6rem 1.35rem;
  border-right: 1px solid var(--line);
  background: #f7fbfd;
}

.cv-sidebar section {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.cv-sidebar h2 {
  margin-bottom: 0.9rem;
  color: var(--brand-strong);
  font-size: 1.15rem;
}

.cv-sidebar h3 {
  margin: 1rem 0 0.3rem;
  color: var(--heading);
  font-size: 0.98rem;
}

.cv-sidebar h3:first-of-type {
  margin-top: 0;
}

.cv-sidebar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cv-main {
  min-width: 0;
}

.cv-section {
  margin: 0;
  padding: 1.65rem 1.8rem;
  border-top: 1px solid var(--line);
}

.cv-section h2 {
  margin-bottom: 0.75rem;
  color: var(--brand-strong);
  font-size: 1.35rem;
}

.cv-section p {
  max-width: 860px;
}

.cover-letter {
  background: #fbfdff;
}

.letter-signoff {
  margin-top: 1.2rem;
}

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

.cv-skill-grid div {
  padding: 1rem;
  border: 1px solid rgba(22, 168, 216, 0.28);
  background: #ffffff;
}

.cv-skill-grid h3 {
  margin-top: 0;
  color: var(--heading);
}

.cv-skill-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.cv-list {
  max-width: none;
  margin-bottom: 0;
}

.cv-columns {
  columns: 2;
  column-gap: 2rem;
}

.experience-item {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.experience-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.experience-item h3 {
  margin: 0 0 0.2rem;
}

.experience-org {
  margin: 0 0 0.45rem;
  color: var(--brand);
  font-weight: 700;
}

.contact-page {
  padding-top: 0.8rem;
}

.contact-pitch {
  margin-bottom: 0;
}

.contact-panel {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 0;
  border-top: 0;
}

.forms-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 0.6rem 1.4rem rgba(23, 35, 49, 0.06);
}

.forms-embed iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
}

main {
  padding-bottom: 2.5rem;
}

.browse-section {
  padding: 3rem 0 2.6rem;
  border-top: 0;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.section-intro h2 {
  margin-bottom: 0.65rem;
  font-size: 2rem;
}

.section-intro p {
  margin: 0 auto;
  color: var(--muted);
}

.page-header .section-intro p {
  color: #dbe7f1;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

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

.browse-card {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 0.6rem 1.4rem rgba(23, 35, 49, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.browse-card:hover,
.browse-card:focus-within {
  border-color: rgba(22, 168, 216, 0.6);
  box-shadow: 0 0.85rem 1.8rem rgba(23, 35, 49, 0.1);
  transform: translateY(-2px);
}

.browse-card[open] {
  border-color: rgba(22, 168, 216, 0.75);
}

.browse-card summary {
  position: relative;
  display: grid;
  gap: 0.45rem;
  min-height: 8.25rem;
  padding: 1.25rem 3rem 1.25rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.browse-card summary::-webkit-details-marker {
  display: none;
}

.browse-card summary::after {
  content: "+";
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(22, 168, 216, 0.45);
  color: var(--brand);
  font-weight: 800;
  line-height: 1;
}

.browse-card[open] summary {
  border-bottom: 1px solid var(--line);
}

.browse-card[open] summary::after {
  content: "-";
}

.card-title {
  color: var(--heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.card-summary {
  color: var(--muted);
  font-size: 0.98rem;
}

.card-content {
  padding: 1.15rem 1.25rem 1.25rem;
}

.card-content p,
.card-content ul {
  margin-top: 0;
}

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

.blog-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
  padding-top: 0.8rem;
}

.blog-intro {
  margin-top: 2.2rem;
  margin-bottom: 0;
  max-width: 860px;
  text-align: center;
}

.blog-feed,
.blog-sidebar,
.sidebar-panel {
  border-top: 0;
}

.blog-feed h2 {
  margin-bottom: 1.2rem;
}

.post-preview {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.4rem;
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.post-preview:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.post-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  overflow: hidden;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.post-thumb::before,
.post-thumb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.post-thumb::before {
  width: 6.4rem;
  height: 6.4rem;
  background: linear-gradient(135deg, #0078d4, #38bdf8);
  transform: translate(-1.6rem, -0.3rem);
}

.post-thumb::after {
  width: 3.5rem;
  height: 3.5rem;
  border: 0.6rem solid rgba(255, 255, 255, 0.9);
  border-left-color: transparent;
  transform: translate(2.3rem, 1.25rem) rotate(-18deg);
}

.post-thumb span {
  position: relative;
  z-index: 1;
  max-width: 11rem;
  padding: 0.4rem 0.6rem;
  background: rgba(23, 35, 49, 0.82);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.thumb-journey::before {
  background: linear-gradient(135deg, #16a8d8, #2563eb);
}

.thumb-cloud::before {
  clip-path: polygon(50% 0, 100% 100%, 62% 100%, 49% 66%, 34% 100%, 0 100%);
  border-radius: 0;
}

.post-summary h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.post-summary h3 a {
  color: var(--heading);
  text-decoration: none;
}

.post-summary h3 a:hover,
.post-summary h3 a:focus {
  color: var(--brand);
  text-decoration: underline;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
}

.post-meta span + span::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--line);
}

.post-summary p:not(.post-meta) {
  margin-top: 0;
}

.button-muted {
  min-height: 2.6rem;
  border-color: #6b7280;
  background: #6b7280;
  color: #ffffff;
}

.button-muted:hover,
.button-muted:focus {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.blog-sidebar {
  display: grid;
  gap: 1.2rem;
  padding-top: 0.2rem;
}

.sidebar-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: #ffffff;
}

.sidebar-panel h2 {
  margin-bottom: 0.9rem;
  font-size: 1.15rem;
}

.sidebar-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.sidebar-list,
.tag-list {
  max-width: none;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.sidebar-list li,
.tag-list li {
  margin: 0;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.sidebar-list li:first-child,
.tag-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.sidebar-list a {
  color: var(--text);
  text-decoration: none;
}

.sidebar-list a:hover,
.sidebar-list a:focus {
  color: var(--brand);
  text-decoration: underline;
}

.tag-list li {
  color: var(--muted);
  font-size: 0.95rem;
}

.article-hero {
  width: min(100% - 2rem, 980px);
  margin: 2.4rem auto 1.5rem;
}

.article-hero h1 {
  max-width: 960px;
  margin: 0 0 0.85rem;
  font-size: 2.35rem;
  line-height: 1.15;
}

.article-meta {
  max-width: none;
  margin: 0 0 1rem;
}

.article-source {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

section,
article {
  margin: 0 0 1.1rem;
}

section {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

article section:first-child {
  border-top: 0;
}

ul {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.25rem;
}

strong {
  color: var(--heading);
}

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

.site-brand .brand-logo {
  margin: 0;
  border-radius: 0;
}

header img:not(.brand-logo) {
  display: block;
  width: min(260px, 70vw);
  margin-top: 1.25rem;
  margin-left: max(1rem, calc((100% - 980px) / 2));
  border-radius: 50%;
}

footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

footer p {
  margin: 0;
}

@media (min-width: 760px) {
  h1 {
    font-size: 3rem;
  }

  .article-hero h1 {
    font-size: 2.55rem;
  }

  section {
    padding: 1.7rem 0;
  }
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .about-hero img {
    width: min(220px, 100%);
  }

  nav {
    gap: 0.5rem 1.15rem;
  }

  .nav-profile {
    margin-left: 0.1rem;
  }

  .blog-page {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-arrow {
    display: none;
  }

  .blog-sidebar .sidebar-panel:last-child {
    grid-column: 1 / -1;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-profile,
  .cv-skill-grid,
  .cv-grid-two,
  .cv-layout {
    grid-template-columns: 1fr;
  }

  .cv-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  main,
  footer {
    width: min(100% - 1.25rem, 980px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-brand {
    width: min(200px, 100%);
  }

  .hero {
    padding: 2.2rem 0.75rem 2.6rem;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding-top: 0.6rem;
    text-align: center;
  }

  .about-hero img {
    width: min(220px, 70vw);
    margin: 0 auto;
  }

  .about-hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  nav {
    justify-content: flex-start;
    gap: 0.45rem 0.8rem;
    font-size: 0.92rem;
  }

  h1 {
    margin-top: 1.7rem;
  }

  .article-hero {
    width: min(100% - 1.25rem, 980px);
    margin-top: 1.7rem;
  }

  .article-hero h1 {
    font-size: 2rem;
  }

  .browse-grid {
    grid-template-columns: 1fr;
  }

  .learning-flow {
    grid-template-columns: 1fr;
  }

  .learning-step {
    min-height: auto;
  }

  .section-intro h2 {
    font-size: 1.65rem;
  }

  .browse-card summary {
    min-height: auto;
  }

  .post-preview {
    grid-template-columns: 1fr;
  }

  .post-thumb {
    min-height: 170px;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .cv-page {
    width: min(100% - 1.25rem, 1080px);
  }

  .cv-profile,
  .cv-section {
    padding: 1.25rem;
  }

  .cv-profile h2 {
    font-size: 2rem;
  }

  .cv-columns {
    columns: 1;
  }
}
