:root {
  --bg: #10110f;
  --panel: #171916;
  --text: #f4f4ef;
  --body: #c9cec4;
  --muted: #899183;
  --line: rgba(190, 201, 178, 0.18);
  --line-strong: rgba(190, 201, 178, 0.34);
  --accent: #a9c99c;
  --accent-2: #d0b56f;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f2;
    --panel: #ffffff;
    --text: #171915;
    --body: #3e443a;
    --muted: #697062;
    --line: rgba(50, 62, 45, 0.15);
    --line-strong: rgba(50, 62, 45, 0.28);
    --accent: #477b5e;
    --accent-2: #8a6f25;
  }
}

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

html {
  min-width: 320px;
  color-scheme: dark light;
  font-family: var(--font-sans);
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, border-color 160ms ease;
}

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

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0 42px;
}

.page-header,
.intro,
.project-section,
.strengths-column {
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(20px, 3vw, 30px);
}

.page-header {
  max-width: 820px;
  margin-bottom: clamp(36px, 6vw, 66px);
}

.doc-label,
.contact-links,
.page-footer,
.project-section h2,
.strengths-column h2 {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.page-header h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 10vw, 6.8rem);
  font-weight: 500;
  line-height: 0.9;
}

.tagline {
  max-width: 680px;
  margin: 0 0 20px;
  color: var(--body);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-links a {
  text-decoration: none;
}

.contact-links span {
  color: var(--line-strong);
}

.intro {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 0.65fr);
  gap: 22px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.intro h2 {
  margin: 0;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.intro p {
  max-width: 58ch;
  margin: 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.75;
}

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: start;
}

.project-column {
  display: grid;
  gap: clamp(30px, 5vw, 54px);
}

.project-section h2 {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.5;
}

.project-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-item {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.project-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.project-name {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration-color: transparent;
}

.project-name:hover {
  text-decoration-color: currentColor;
}

.project-item p {
  margin: 0;
  color: var(--body);
  font-size: 0.94rem;
  line-height: 1.65;
}

.strengths-column {
  position: sticky;
  top: 36px;
}

.strengths-column h2 {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.5;
}

.skill-group {
  margin-bottom: 20px;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-name {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.4;
}

.skill-list {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: clamp(44px, 8vw, 84px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.page-footer a {
  text-decoration: none;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 1120px);
    padding-top: 32px;
  }

  .page-header,
  .intro,
  .project-section,
  .strengths-column {
    padding-left: 18px;
  }

  .intro,
  .content-columns {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 10px;
  }

  .strengths-column {
    position: static;
  }
}
