@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root {
  --ink: #202c35;
  --muted: #74808a;
  --paper: #fbfaf8;
  --soft: #f1efeb;
  --line: #e6e2dc;
  --accent: #a77d5b;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
.section-wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

.site-header { height: 82px; width: min(1240px, calc(100% - 64px)); margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 29px; font-weight: 700; letter-spacing: -2px; }
.brand span { color: var(--accent); }
.navigation { display: flex; gap: 32px; color: #68737c; font-size: 12px; }
.navigation a, .header-contact, .text-link, .site-footer a { transition: color .2s ease; }
.navigation a:hover, .header-contact:hover, .text-link:hover, .site-footer a:hover { color: var(--accent); }
.header-contact { font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--accent); padding: 8px 0; }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; padding-top: 68px; padding-bottom: 92px; position: relative; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 2px; margin: 0 0 24px; }
.eyebrow-line { display: inline-block; width: 28px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.hero h1 { font-family: var(--serif); font-size: clamp(58px, 7vw, 88px); line-height: .99; letter-spacing: -3px; margin: 0 0 22px; font-weight: 600; }
h1 em, h2 em { color: var(--accent); font-weight: 600; }
.hero-description { font-size: 13px; font-weight: 600; color: #64717b; letter-spacing: .3px; margin: 0 0 18px; }
.hero-intro { max-width: 440px; color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; gap: 24px; padding: 14px 19px; font-size: 11px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #344653; }
.text-link { font-size: 11px; font-weight: 700; }
.hero-visual { position: relative; width: min(100%, 390px); justify-self: end; }
.photo-frame { background: #e9e3dc; aspect-ratio: 4 / 5; padding: 13px; position: relative; }
.photo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; position: relative; z-index: 1; }
.photo-placeholder { display: none; position: absolute; inset: 13px; place-content: center; justify-items: center; background: #e4ded6; color: #9c8c7c; }
.photo-placeholder span { font-family: var(--serif); font-size: 76px; }
.photo-placeholder small { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.photo-caption { margin-top: 15px; font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.caption-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.hero-number { position: absolute; right: -36px; top: 22px; font-family: var(--serif); color: #ded8d0; font-size: 54px; z-index: -1; }
.scroll-note { position: absolute; bottom: 28px; left: 0; font-size: 8px; letter-spacing: 1.8px; color: #9a9b98; display: flex; align-items: center; gap: 12px; }
.scroll-note span { height: 1px; width: 32px; background: var(--accent); }

.section-block { padding-top: 105px; padding-bottom: 105px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; margin-bottom: 52px; }
.section-heading .eyebrow { margin-top: 12px; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(37px, 4.4vw, 54px); letter-spacing: -1.5px; line-height: 1.12; font-weight: 600; margin: 0; }
.about-content { grid-column: 2; max-width: 610px; margin-left: auto; }
.about-lead { font-family: var(--serif); font-size: 25px; line-height: 1.45; margin: 0 0 16px; }
.body-copy { color: var(--muted); font-size: 13px; line-height: 1.95; max-width: 560px; }

.timeline { max-width: 800px; margin-left: auto; }
.timeline-item { display: grid; grid-template-columns: 125px 20px 1fr; gap: 22px; min-height: 132px; position: relative; }
.timeline-date { color: var(--accent); font-size: 11px; font-weight: 700; padding-top: 2px; }
.timeline-marker { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; margin-top: 7px; position: relative; }
.timeline-item:not(:last-child) .timeline-marker::after { content: ''; position: absolute; width: 1px; height: 125px; background: var(--line); top: 10px; left: 4px; }
.item-type { font-size: 9px; color: #9b8a79; letter-spacing: 1.6px; font-weight: 700; margin: 0 0 7px; }
.timeline-content h3, .education-card h3, .course-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.3px; }
.company { font-size: 12px; color: var(--muted); margin: 0; }
.item-detail { color: #8a9298; font-size: 11px; margin: 8px 0 0; }

.education-card { max-width: 800px; margin-left: auto; background: var(--soft); padding: 30px 34px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 22px; }
.education-icon { width: 46px; height: 46px; display: grid; place-items: center; background: #e5ddd3; color: var(--accent); font-size: 23px; border-radius: 50%; }
.education-status { align-self: start; color: #72816f; background: #e4e9df; padding: 6px 10px; font-size: 9px; font-weight: 700; letter-spacing: .5px; }

.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; max-width: 800px; margin-left: auto; }
.course-card { display: flex; gap: 19px; padding: 23px 0; border-top: 1px solid var(--line); }
.course-index { color: #b8a28e; font-family: var(--serif); font-size: 16px; }
.course-card h3 { font-size: 13px; line-height: 1.5; }
.course-card p { color: var(--muted); font-size: 11px; margin: 4px 0; }
.course-card div > span { color: #a18e7b; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }

.skill-list { display: flex; flex-wrap: wrap; gap: 10px; max-width: 800px; margin-left: auto; }
.skill-list span { border: 1px solid #ded9d1; padding: 12px 17px; font-size: 11px; color: #59646c; background: #fff; }

.contact { background: var(--ink); color: white; width: 100%; padding: 78px max(32px, calc((100% - 1120px) / 2)) 70px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; }
.contact .eyebrow { color: #c6a98c; }
.contact h2 { font-family: var(--serif); font-size: clamp(48px, 6vw, 68px); line-height: 1; margin: 0 0 18px; font-weight: 600; }
.contact-top > p:not(.eyebrow) { color: #b8c0c5; font-size: 13px; max-width: 380px; margin: 0; }
.button-light { background: #f4f0ea; color: var(--ink); margin-top: 27px; }
.button-light:hover { background: white; }
.contact-details { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.contact-details a, .contact-details div { font-size: 13px; color: #f1f1ef; }
.contact-details span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; color: #c6a98c; margin-bottom: 5px; }
.site-footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; }
.site-footer p, .site-footer > a:last-child { font-size: 10px; color: var(--muted); }
.site-footer .brand { color: var(--ink); }

@media (max-width: 760px) {
  .section-wrap { width: min(100% - 40px, 560px); }
  .site-header { width: calc(100% - 40px); height: 70px; }
  .navigation { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding-top: 60px; padding-bottom: 95px; }
  .hero h1 { font-size: clamp(58px, 15vw, 78px); }
  .hero-visual { width: min(82%, 350px); justify-self: center; }
  .hero-number { right: -22px; }
  .scroll-note { bottom: 32px; }
  .section-block { padding-top: 72px; padding-bottom: 72px; }
  .section-heading { grid-template-columns: 1fr; gap: 10px; margin-bottom: 34px; }
  .section-heading .eyebrow { margin: 0; }
  .section-heading h2 { font-size: 42px; }
  .about-content, .timeline, .education-card, .course-grid, .skill-list { margin-left: 0; }
  .about-lead { font-size: 22px; }
  .timeline-item { grid-template-columns: 90px 12px 1fr; gap: 12px; min-height: 145px; }
  .timeline-date { font-size: 10px; }
  .timeline-content h3 { font-size: 15px; }
  .timeline-item:not(:last-child) .timeline-marker::after { height: 138px; }
  .education-card { padding: 22px 18px; grid-template-columns: 42px 1fr; gap: 14px; }
  .education-icon { width: 40px; height: 40px; }
  .education-status { grid-column: 2; justify-self: start; }
  .course-grid { grid-template-columns: 1fr; }
  .contact { padding: 65px 20px; grid-template-columns: 1fr; gap: 48px; }
  .site-footer { width: calc(100% - 40px); flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 18px; }
  .site-footer p { order: 3; width: 100%; }
}

@media (max-width: 380px) {
  .hero-actions { gap: 16px; flex-wrap: wrap; }
  .button { gap: 12px; }
  .timeline-item { grid-template-columns: 76px 10px 1fr; gap: 9px; }
}
