:root {
  color-scheme: light;
  --ink: #242322;
  --soft-ink: #47413b;
  --muted: #756e66;
  --quiet: #9a9288;
  --canvas: #f1ebe2;
  --canvas-2: #f8f5ef;
  --paper: #fffdf9;
  --paper-soft: #fbf7f0;
  --paper-warm: #f5eee4;
  --line: rgba(78, 67, 55, 0.16);
  --line-strong: rgba(78, 67, 55, 0.26);
  --accent: #856b46;
  --accent-dark: #4f3f2a;
  --accent-soft: #eadfce;
  --blue: #395f7d;
  --shadow: 0 24px 70px rgba(72, 58, 42, 0.14);
  --soft-shadow: 0 10px 32px rgba(72, 58, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.88), transparent 36rem),
    radial-gradient(circle at 88% 12%, rgba(211, 195, 169, 0.52), transparent 30rem),
    linear-gradient(180deg, #f8f4ec 0%, #eee6db 48%, #f7f2ea 100%);
  font-size: 15.5px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration-color: rgba(57, 95, 125, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

.resume-shell {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0;
}

.resume-document {
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.resume-document {
  overflow: hidden;
  border-radius: 10px;
}

.hero {
  padding: 40px 42px 32px;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.92), rgba(250, 246, 238, 0.84)),
    radial-gradient(circle at 8% 8%, rgba(232, 218, 194, 0.62), transparent 22rem);
}

.identity {
  max-width: 960px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: #aaa39a;
  font-size: 4.55rem;
  line-height: 0.94;
  font-weight: 260;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  color: #2f5f88;
  font-weight: 800;
}

.role {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  color: #aaa39a;
}

.contact-links a,
.button-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-height: 20px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #aaa39a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}

.contact-links svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-links a:hover,
.contact-links a:focus-visible,
.button-link:hover,
.button-link:focus-visible {
  background: transparent;
  color: var(--accent-dark);
}

.button-link {
  background: transparent;
  color: #aaa39a;
}

.button-link:hover,
.button-link:focus-visible {
  background: transparent;
  color: var(--accent-dark);
}

.summary {
  padding: 31px 42px 34px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.72);
}

h2 {
  margin-bottom: 15px;
  color: var(--accent-dark);
  font-size: 1.26rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.summary p {
  max-width: 920px;
  color: var(--soft-ink);
  line-height: 1.7;
}

.summary p:last-child,
.panel :last-child,
.section-block :last-child {
  margin-bottom: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(242px, 300px) minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 0;
  background: rgba(247, 240, 229, 0.58);
  border-right: 1px solid var(--line);
}

.main-column {
  display: grid;
  align-content: start;
  gap: 0;
  background: rgba(255, 253, 249, 0.48);
}

.panel,
.section-block {
  padding: 29px 31px;
}

.panel + .panel,
.section-block + .section-block {
  border-top: 1px solid var(--line);
}

.panel h2 {
  margin-bottom: 13px;
  font-size: 0.98rem;
  line-height: 1.15;
}

.compact-list,
.detail-list,
.job ul {
  padding-left: 0.98rem;
}

.compact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.34;
  text-transform: uppercase;
}

.compact-list li::marker,
.detail-list li::marker,
.job li::marker {
  color: var(--accent);
}

.stack-list {
  display: grid;
  gap: 15px;
  margin: 0;
}

.stack-list div {
  padding-top: 14px;
  border-top: 1px solid rgba(78, 67, 55, 0.12);
}

.stack-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.stack-list dt,
.education-list h3 {
  margin: 0 0 5px;
  color: var(--soft-ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}

.stack-list dd,
.education-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.education-list {
  display: grid;
  gap: 16px;
}

.section-block {
  position: relative;
}

.section-block:first-child {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.86), rgba(252, 248, 241, 0.76));
}

.detail-list,
.job ul {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.58;
}

.job {
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid rgba(78, 67, 55, 0.13);
}

.job:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.job-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 9px;
}

.job h3 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.34;
  font-weight: 800;
  text-transform: uppercase;
}

.job p {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 600;
}

.job p strong {
  font-weight: 800;
}

.date-range {
  flex: 0 0 auto;
  color: var(--quiet);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.note {
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  font-style: italic;
  font-weight: 500 !important;
}

@media (max-width: 880px) {
  .resume-shell {
    width: min(100% - 24px, 720px);
    padding: 24px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 22px;
  }

  h1 {
    font-size: 3rem;
  }

  .role {
    font-size: 0.94rem;
  }

  .contact-links {
    justify-items: stretch;
  }

  .contact-links a,
  .button-link {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .summary {
    padding: 24px 22px 28px;
  }

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

  .sidebar {
    display: contents;
    border-right: 0;
  }

  .main-column {
    display: contents;
  }

  .sidebar .panel,
  .main-column .section-block {
    border-top: 1px solid var(--line);
  }

  .sidebar .panel:first-child {
    border-top: 0;
  }

  .sidebar .panel:nth-of-type(1) {
    order: 1;
  }

  .sidebar .panel:nth-of-type(2) {
    order: 2;
  }

  .main-column .section-block:nth-of-type(1) {
    order: 3;
  }

  .main-column .section-block:nth-of-type(2) {
    order: 4;
  }

  .sidebar .panel:nth-of-type(3) {
    order: 5;
  }

  .panel,
  .section-block {
    padding: 24px 22px;
  }

  h2 {
    font-size: 1.18rem;
  }

  .job-header {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .date-range {
    display: block;
    margin-bottom: 8px;
  }

}

@media print {
  body {
    background: #ffffff;
  }

  .resume-shell {
    width: 100%;
    padding: 0;
  }

  .resume-document {
    border: 0;
    box-shadow: none;
  }

  .contact-links .download-link {
    display: none;
  }
}
