:root {
  color-scheme: light;
  --page: #f3f5f4;
  --surface: #fff;
  --surface-soft: #f3f6f7;
  --ink: #172936;
  --muted: #64737d;
  --line: #e2e8eb;
  --teal: #126a70;
  --teal-dark: #105861;
  --teal-pale: #e9f2f3;
  --shadow: 0 14px 38px #2036420b;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #e39b4e;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: 1rem;
  left: 1rem;
  padding: 0.6rem 0.9rem;
  transform: translateY(-180%);
  border-radius: 0.5rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1320px, calc(100% - 64px));
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid #e8ebea;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem clamp(1.5rem, 5vw, 4rem);
  background: #fff;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-icon {
  color: var(--teal);
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 2.2rem);
}

.site-header nav a {
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav a:hover,
.site-header nav a:first-child {
  border-bottom-color: var(--teal);
  color: var(--teal-dark);
}

.hero {
  display: grid;
  min-height: 525px;
  grid-template-columns: 0.93fr 1.07fr;
  overflow: hidden;
  background: #f8f6f1;
}

.hero-photo {
  position: relative;
  min-height: 525px;
  overflow: hidden;
  background: #d7dad4;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 525px;
  object-fit: cover;
  object-position: center 36%;
}

.photo-caption {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid #ffffff99;
  border-radius: 2rem;
  background: #172936aa;
  color: white;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.hero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(2.5rem, 6vw, 5.5rem);
  background:
    radial-gradient(ellipse at 98% 2%, #f7e5d2 0, transparent 38%),
    #f8f6f1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.3rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 2rem;
  height: 2px;
  background: var(--teal);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.99;
}

.hero h1 span {
  color: var(--teal);
}

.hero-role {
  margin: 0.9rem 0 0;
  color: var(--teal-dark);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

.hero-summary {
  max-width: 430px;
  margin: 1.5rem 0 0;
  color: #43535d;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--teal);
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  background: var(--teal);
  color: white;
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-outline {
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  background: var(--teal-pale);
}

.strengths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -1px 3.2% 2.5rem;
  padding: 1.25rem 1rem;
  border: 1px solid #e5e9e9;
  border-radius: 1rem;
  background: #ffffffed;
  box-shadow: 0 9px 28px #20364212;
}

.strength {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.4rem 1rem;
}

.strength + .strength {
  border-left: 1px solid var(--line);
}

.strength-icon {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
}

.strength h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.strength p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 0 3.2% 3rem;
}

.content-card {
  min-width: 0;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, #fff, #fbfcfc);
  box-shadow: 0 5px 16px #20364208;
  scroll-margin-top: 1rem;
}

.card-heading {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.section-number {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.card-heading h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.card-intro {
  margin: 0 0 1.5rem;
  color: #455660;
}

.fact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  align-items: center;
  gap: 0.65rem;
  color: #52616a;
  font-size: 0.87rem;
}

.fact-list li > span:first-child {
  color: var(--teal);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.fact-list strong {
  margin-right: 0.25rem;
  color: var(--ink);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.3rem;
  padding-left: 1.25rem;
}

.timeline::before {
  position: absolute;
  top: 0.45rem;
  bottom: 0.5rem;
  left: 0.28rem;
  width: 2px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 0.4rem;
  left: -1.25rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.timeline-date {
  margin: 0;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
}

.timeline-item h3,
.project h3,
.education-note h3 {
  margin: 0.15rem 0 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.timeline-description {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.project-list {
  display: grid;
  gap: 0.75rem;
}

.project {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid #e9edef;
  border-radius: 0.75rem;
  background: var(--surface-soft);
}

.project-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 700;
}

.project-icon.layers {
  background: #edf2eb;
  color: #557a5f;
}

.project h3 {
  margin-top: 0;
}

.project p {
  margin: 0.25rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.18rem 0.55rem;
  border: 1px solid #dfe7e9;
  border-radius: 2rem;
  background: white;
  color: #52616a;
  font-size: 0.7rem;
}

.resume-card {
  background:
    radial-gradient(ellipse at 100% 100%, #f5e8d8 0, transparent 35%),
    linear-gradient(145deg, #fff, #fbfcfc);
}

.education-note {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid #dfe7e9;
  border-radius: 0.7rem;
  background: var(--surface-soft);
}

.education-note h3 {
  margin-top: 0;
}

.education-note p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.file-icon {
  color: var(--teal);
  font-size: 1.45rem;
  text-align: center;
}

.resume-detail {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.skills-heading {
  margin: 1.25rem 0 0.55rem;
  font-size: 0.94rem;
}

.additional-qualifications {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 3.2%;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

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

.site-footer a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 32px, 760px);
    margin: 16px auto;
    border-radius: 22px;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 0.55rem 1.5rem;
    padding: 1rem 1.5rem 0.8rem;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
  }

  .site-header nav a {
    font-size: 0.8rem;
  }

  .hero {
    min-height: 430px;
    grid-template-columns: 0.82fr 1.18fr;
  }

  .hero-photo,
  .hero-photo img {
    min-height: 430px;
  }

  .hero-copy {
    padding: 2rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 8vw, 4.7rem);
  }

  .strengths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0;
    margin: 1rem 1rem 1.5rem;
    padding: 0.8rem 0.6rem;
  }

  .strength:nth-child(3) {
    border-left: 0;
  }

  .strength:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
  }

  .content-grid {
    gap: 0.8rem;
    padding: 0 1rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: calc(100% - 20px);
    margin: 10px auto;
    border-radius: 18px;
  }

  .site-header {
    padding: 0.85rem 1rem 0.6rem;
  }

  .brand {
    font-size: 1.3rem;
  }

  .site-header nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.1rem 0 0.35rem;
    scrollbar-width: thin;
  }

  .site-header nav a {
    font-size: 0.76rem;
  }

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

  .hero-photo {
    height: min(105vw, 390px);
    min-height: 0;
  }

  .hero-photo img {
    min-height: 0;
    object-position: center 35%;
  }

  .hero-copy {
    padding: 2rem 1.4rem 2.25rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 15vw, 5rem);
  }

  .hero-summary {
    margin-top: 1rem;
    font-size: 0.96rem;
  }

  .hero-actions {
    gap: 0.6rem;
    margin-top: 1.3rem;
  }

  .button {
    min-height: 42px;
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
  }

  .strengths {
    gap: 0;
    margin: 0.9rem 0.75rem 1rem;
    padding: 0.65rem 0.35rem;
  }

  .strength {
    gap: 0.55rem;
    padding: 0.65rem 0.5rem;
  }

  .strength-icon {
    font-size: 1.15rem;
  }

  .strength h2 {
    font-size: 0.83rem;
  }

  .strength p {
    font-size: 0.72rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 0.75rem 1rem;
  }

  .content-card {
    padding: 1.25rem;
  }

  .card-heading h2 {
    font-size: 1.25rem;
  }

  .site-footer {
    padding: 1rem;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
