:root {
  --bg: #f7f2eb;
  --paper: #fffaf3;
  --ink: #1f2130;
  --muted: #646777;
  --line: #ded4c7;
  --line-strong: #c9b9a6;
  --navy: #263a5f;
  --coral: #f0795e;
  --green: #5f9a7f;
  --blue: #637fbd;
  --shadow: 0 18px 50px rgba(38, 58, 95, 0.14);
  --radius: 8px;
  --max: 1180px;
  --space: clamp(24px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(95, 154, 127, 0.12), transparent 34rem),
    linear-gradient(315deg, rgba(99, 127, 189, 0.14), transparent 42rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 242, 235, 0.86);
  border-bottom: 1px solid rgba(201, 185, 166, 0.56);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav-links,
.contact-row,
.section-actions,
.tag-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fffaf3;
  font-size: 0.78rem;
}

.nav-links {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: var(--space) 0;
}

.section-shell.narrow {
  max-width: 820px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding-top: 44px;
}

.hero-copy h1,
.page-hero h1,
.article-header h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 8.4rem);
  line-height: 0.92;
  font-weight: 700;
}

.hero-title {
  margin: 24px 0 0;
  color: var(--navy);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero-summary,
.page-hero p {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
}

.contact-row,
.section-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(38, 58, 95, 0.12);
}

.button-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.button-secondary {
  background: rgba(255, 250, 243, 0.78);
  color: var(--ink);
}

.profile-panel {
  display: grid;
  gap: 16px;
}

.profile-image {
  width: 100%;
  aspect-ratio: 4 / 4.75;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(38, 58, 95, 0.12);
}

.status-card,
.meta-list,
.stack-card,
.timeline-item,
.project-card,
.metric-card,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 10px 26px rgba(38, 58, 95, 0.08);
}

.status-card {
  padding: 18px;
}

.status-card strong,
.status-card span {
  display: block;
}

.status-card span {
  margin-top: 4px;
  color: var(--muted);
}

.meta-list {
  margin: 0;
  padding: 2px 18px;
}

.meta-list div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list div:last-child {
  border-bottom: 0;
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 0;
  font-weight: 700;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 26px;
}

.section-heading h2,
.dashboard-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
}

.dashboard-panel h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stack-card {
  padding: 22px;
}

.stack-card h3,
.timeline-item h3,
.project-card h3,
.post-row h2,
.post-row h3 {
  margin: 0;
  line-height: 1.15;
}

.stack-card h3 {
  color: var(--navy);
}

.stack-card ul,
.timeline-item ul,
.tag-list {
  list-style: none;
  padding: 0;
}

.stack-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.stack-card li,
.tag-list li {
  border-radius: var(--radius);
  background: #eef2ec;
  color: #334336;
  padding: 6px 9px;
  font-size: 0.88rem;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 104px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line-strong);
}

.timeline-item {
  position: relative;
  padding: 24px 24px 24px 54px;
}

.timeline-dot {
  position: absolute;
  left: 7px;
  top: 28px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.period,
.company,
.project-card-topline,
.article-header time,
.post-row time,
.metric-card span {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.company {
  margin-top: 4px;
  color: var(--navy);
}

.timeline-item p:not(.period, .company) {
  margin: 14px 0 0;
}

.timeline-item ul {
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.timeline-item li {
  position: relative;
  padding-left: 18px;
}

.timeline-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-card-body {
  padding: 22px;
}

.project-card-topline {
  color: var(--green);
}

.project-card h3 {
  margin-top: 8px;
  font-size: 1.35rem;
}

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

.tag-list {
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}

.project-coral .tag-list li {
  background: #ffe0d6;
  color: #733322;
}

.project-green .tag-list li {
  background: #deede5;
  color: #284b3d;
}

.project-blue .tag-list li {
  background: #e3e9fb;
  color: #2d3d68;
}

.latest-section {
  padding-bottom: calc(var(--space) * 1.35);
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.post-row:last-child {
  border-bottom: 1px solid var(--line);
}

.post-row a {
  text-decoration: none;
}

.post-row a:hover,
.text-link:hover {
  color: var(--coral);
}

.post-row p {
  margin: 10px 0 0;
  color: var(--muted);
}

.page-hero {
  padding-top: clamp(44px, 8vw, 92px);
  padding-bottom: 28px;
}

.page-hero h1,
.article-header h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.article-shell {
  padding-top: 42px;
}

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

.article-header {
  margin-top: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-header time {
  display: block;
  margin-bottom: 12px;
}

.article-content {
  color: #2c2d3a;
  font-size: 1.1rem;
}

.article-content h2,
.article-content h3 {
  margin-top: 32px;
  line-height: 1.15;
}

.article-content p {
  margin: 18px 0;
}

.article-content a {
  color: var(--navy);
  font-weight: 800;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
}

.metric-card {
  padding: 24px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  padding-top: 0;
}

.dashboard-panel {
  padding: 24px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.bar-list,
.method-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.bar-row,
.method-list div {
  position: relative;
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--paper);
}

.bar-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-size);
  background: rgba(240, 121, 94, 0.2);
}

.bar-row span,
.bar-row strong,
.method-list span,
.method-list strong {
  position: relative;
  z-index: 1;
}

.request-table {
  margin-top: 18px;
  overflow-x: auto;
}

.request-row {
  min-width: 820px;
  display: grid;
  grid-template-columns: 176px 86px 150px minmax(280px, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.request-row span {
  overflow-wrap: anywhere;
}

.request-head {
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 920px) {
  .hero,
  .split-section,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .profile-panel {
    max-width: 560px;
  }

  .sticky-heading {
    position: static;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-nav {
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .section-shell {
    width: min(100% - 24px, var(--max));
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 17vw, 5.6rem);
  }

  .contact-row .button,
  .section-actions .button {
    width: 100%;
  }

  .meta-list div,
  .post-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stack-grid,
  .project-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 42px;
  }

  .timeline-dot {
    left: 3px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
