
:root {
    --ink: #17121a;
    --cream: #f5f0e8;
    --sand: #e8c8e6;
    --rust: rgba(202, 11, 186, 0.55);
    --muted: #a12bcd;
    --card:  #fff9f0;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
}

header {
    position: relative;
    background: var(--ink);
    color: var(--cream);
    padding: 0;
    overflow: hidden;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    min-height: 520px;
}

.header-text {
    padding: 56px 64px 56px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.header-text .label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 20px;
    font-weight: 500;
}

header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 16px;
}

header h1 em {
    font-style: italic;
    color: var(--rust);
}

.header-tagline {
    font-size: 1.05rem;
    color: #b8b0a4;
    max-width: 420px;
    margin-bottom: 40px;
}

.header-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: var(--cream);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    transition: background 0.2s, border-color 0.2s;
}

.header-contacts a:hover {
    background: var(--rust);
    border-color: var(--rust);
}

.header-photo {
    background: #2c2620;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.header-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.85;
    filter: sepia(20%) contrast(1.05);
}


nav {
    background: var(--sand);
    border-bottom: 2px solid var(--ink);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 80px;
}

nav ul li a {
    display: block;
    padding: 16px 22px;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

nav ul li a:hover {
    border-bottom-color: var(--rust);
    color: var(--rust);
}


main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
}

section { margin-bottom: 96px; }

.section-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink);
}

.section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
}

.section-header .section-num {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rust);
    font-weight: 500;
}


.about-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
}

.about-photo-wrap {
    position: relative;
}

.about-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 2px solid var(--rust);
    border-radius: 2px;
    z-index: -1;
}

.about-photo-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.about-content h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.about-content p {
    color: #3d3530;
    margin-bottom: 16px;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

.info-item { display: flex; flex-direction: column; gap: 2px; }

.info-item .key {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.info-item .val {
    font-size: 0.95rem;
    font-weight: 500;
}


.skills-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.skill-group h3 {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 16px;
    font-weight: 500;
}

.skill-group ul { list-style: none; }

.skill-group ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--sand);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.skill-group ul li:last-child { border-bottom: none; }

.skill-dots { display: flex; gap: 4px; }

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sand);
    border: 1.5px solid var(--muted);
}

.dot.filled {
    background: var(--rust);
    border-color: var(--rust);
}

.ordered-skills { list-style: none; }

.ordered-skills li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--sand);
    font-size: 0.9rem;
}

.ordered-skills li span.rank {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--rust);
    min-width: 24px;
}


.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

thead {
    background: var(--ink);
    color: var(--cream);
}

thead th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.06em;
    font-size: 0.76rem;
    text-transform: uppercase;
}

tbody tr { border-bottom: 1px solid var(--sand); }
tbody tr:hover { background: var(--card); }

tbody td {
    padding: 16px 20px;
    vertical-align: top;
}

tbody td:first-child {
    font-weight: 500;
    white-space: nowrap;
    color: var(--rust);
    font-size: 0.82rem;
}

tbody td strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--ink);
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 4px;
}

.badge-edu  { background: #e8f0e8; color: #3a6b3a; }
.badge-work { background: #f0e8e0; color: #8a4020; }


.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--card);
    border: 1.5px solid var(--sand);
    border-radius: 4px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.social-card:hover {
    border-color: var(--rust);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.social-info .name {
    font-weight: 500;
    font-size: 0.95rem;
}

.social-info .handle {
    font-size: 0.78rem;
    color: var(--muted);
    word-break: break-word;
}


footer {
    background: var(--ink);
    color: #b8b0a4;
    text-align: center;
    padding: 40px 24px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

footer strong { color: var(--cream); }

footer a {
    color: var(--rust);
    text-decoration: none;
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


@media (max-width: 768px) {
    .header-inner { grid-template-columns: 1fr; }
    .header-photo { height: 280px; }
    .header-text  { padding: 48px 32px; }

    nav ul {
        padding: 0 16px;
        overflow-x: auto;
    }

    main { padding: 56px 24px; }

    .about-grid { grid-template-columns: 1fr; }
    .about-photo-wrap { max-width: 200px; }
    .skills-columns { grid-template-columns: 1fr; }
}