:root {
    --ink: #1a2b3c;
    --muted: #5c6b78;
    --teal: #0f5c66;
    --teal-dark: #0b454d;
    --gold: #c4a35a;
    --paper: #f6f2ea;
    --white: #fffdf8;
    --line: #e4dccf;
    --shadow: 0 18px 50px rgba(26, 43, 60, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1rem; }
.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.skip {
    position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(246, 242, 234, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.logo-mark {
    width: 48px; height: 48px; border-radius: 13px;
    display: block; flex-shrink: 0; object-fit: cover;
    box-shadow: 0 6px 16px rgba(15, 92, 102, 0.18);
}
.logo strong { display: block; font-size: 0.95rem; }
.logo em { font-style: normal; color: var(--muted); font-size: 0.8rem; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a.is-active { color: var(--teal); }
.nav-cta {
    background: var(--teal); color: #fff !important;
    padding: 8px 14px; border-radius: 999px;
}
.nav-toggle { display: none; }

.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; color: var(--teal); font-weight: 600; margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-photo img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
    border-radius: 28px 8px 28px 8px; box-shadow: var(--shadow);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--teal); color: #fff; text-decoration: none;
    border: 0; border-radius: 999px; padding: 12px 20px;
    font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-ghost:hover { background: #e7f1f2; color: var(--teal-dark); }
.text-link { font-weight: 600; }

.band { margin: 24px 0 48px; }
.band img { width: 100%; height: min(52vh, 420px); object-fit: cover; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px 0 64px; align-items: start; }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.skill-list li { display: grid; grid-template-columns: 1fr 140px auto; gap: 10px; align-items: center; font-size: 0.92rem; }
.bar { height: 8px; background: #e6ddd0; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.skill-list em { font-style: normal; color: var(--muted); font-size: 0.8rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 80px; }
.cards article, .panel {
    background: var(--white); border: 1px solid var(--line); border-radius: 18px;
    padding: 24px; box-shadow: var(--shadow);
}

.page-hero { padding: 48px 0 12px; }
.page-hero.slim { padding-bottom: 32px; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; padding: 12px 0 48px; align-items: center; }
.about-image { border-radius: 20px; height: 360px; object-fit: cover; width: 100%; }
.timeline { display: grid; gap: 22px; padding: 12px 0 72px; }
.timeline article { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.experience-list { gap: 28px; }
.experience-list article {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 28px;
    align-items: center;
    padding-bottom: 28px;
}
.experience-list img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.experience-list article:first-child img { height: 240px; }
.experience-list article h2 { margin-bottom: 0.35em; }
.experience-list article .eyebrow { margin-bottom: 10px; }
.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

.contact-grid, .verify-layout { display: grid; gap: 24px; padding: 12px 0 80px; }
.contact-grid { grid-template-columns: 1fr 1fr; }

.verify-form label, .verify-form input { display: block; width: 100%; }
.verify-form input, .verify-form button { margin-top: 8px; }
input, select, textarea {
    font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
    width: 100%;
}
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-row img { border-radius: 8px; border: 1px solid var(--line); }

.letter { background: var(--white); padding: 36px; border-radius: 18px; border: 1px solid var(--line); }
.letter-meta { list-style: none; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); }
.letter-body { margin: 24px 0; }
.letter-body table { width: 100%; border-collapse: collapse; }
.letter-body td, .letter-body th { border: 1px solid var(--line); padding: 8px; }

.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.flash-error { background: #fde8e8; color: #8a1f1f; }
.flash-success { background: #e7f6ec; color: #1e5a32; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.muted { color: var(--muted); }

@media (max-width: 860px) {
    .hero-grid, .split, .cards, .about-grid, .contact-grid, .experience-list article { grid-template-columns: 1fr; }
    .experience-list img, .experience-list article:first-child img { height: 220px; }
    .nav-toggle { display: inline-flex; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
    .nav { display: none; position: absolute; right: 20px; top: 70px; background: #fff; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
    .nav.is-open { display: flex; }
    .skill-list li { grid-template-columns: 1fr; }
}
