:root {
    --navy: #14233c;
    --navy-soft: #24395c;
    --gold: #b08d57;
    --text: #2b2f36;
    --muted: #6b7280;
    --line: #e5e1d8;
    --bg: #f4f1ea;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 16px 32px;
}

.card {
    background: var(--card);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20, 35, 60, 0.06), 0 12px 40px rgba(20, 35, 60, 0.08);
}

/* Hero */
.hero {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 48px 24px 40px;
    border-bottom: 3px solid var(--gold);
}

.profile-image {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: var(--navy-soft);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.profile-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.initials {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 44px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gold);
}

.name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.title {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.tagline {
    margin-top: 12px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 20px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.82);
}

/* Content */
.content {
    padding: 8px 40px 40px;
}

.content section {
    padding-top: 32px;
}

.content section + section {
    margin-top: 32px;
    border-top: 1px solid var(--line);
}

h2 {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy);
}

.about p {
    color: var(--text);
}

.company-history {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted) !important;
}

.skills-grid {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    background: #f7f5f0;
    border: 1px solid var(--line);
    border-radius: 999px;
}

/* Contact */
.contact-grid {
    display: grid;
    gap: 2px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 8px;
    margin: 0 -8px;
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.contact-item svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.contact-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-item:hover,
.contact-item:focus-visible {
    background: #f7f5f0;
    color: var(--navy);
}

.save-contact {
    display: inline-block;
    margin-top: 20px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--navy);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.save-contact:hover,
.save-contact:focus-visible {
    background: var(--navy-soft);
}

a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 520px) {
    .container {
        padding-top: 16px;
    }

    .hero {
        padding: 40px 16px 32px;
    }

    .name {
        font-size: 34px;
    }

    .content {
        padding: 0 20px 32px;
    }

    .save-contact {
        display: block;
        text-align: center;
    }
}
