/* ============================================
   RESET & BASE
   ============================================ */

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

/* Prevent widows throughout — balance for short text, pretty for paragraphs */
h1, h2, h3, h4, h5, h6,
.cs-meta, .cs-role, .cs-section-num,
.nav-panel-label, .archetype-name,
.work-name, .work-year, .role,
label, figcaption, blockquote {
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: #FFFFFF;
    color: #1A1A1A;
    font-family: 'Open Runde', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ============================================
   LAYOUT
   ============================================ */

main {
    max-width: 628px;
    margin: 0 auto;
    padding: 100px 40px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ============================================
   HEADER
   ============================================ */

header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.01em;
    color: #1A1A1A;
}

.role {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #7C8794;
}

/* ============================================
   BIO
   ============================================ */

.bio {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.para {
    display: flex;
    padding-top: 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.para p {
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    color: #1A1A1A;
}

.subtle-link {
    color: #232429;
    font-family: 'Open Runde', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-skip-ink: auto;
    text-decoration-color: #7C8794;
    text-decoration-thickness: 9%;
    text-underline-offset: 14.5%;
    text-underline-position: from-font;
    transition: text-decoration-color 0.15s ease;
}

.subtle-link:hover {
    text-decoration-color: #232429;
}

/* ============================================
   LONDON TOOLTIP
   ============================================ */

.london-wrap {
    position: relative;
    display: inline-block;
}

.london-tooltip {
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border-radius: 14px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.30) 49.11%, rgba(102, 102, 102, 0.24) 100%), #232323;
    box-shadow: 0 0 0 0.5px #232323 inset;
    display: flex;
    padding: 6px 8px;
    align-items: center;
    gap: 4px;
    font-family: 'Open Runde', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    color: #FFFFFF;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#london-icon {
    display: flex;
    align-items: center;
}

#london-icon svg {
    display: block;
}

.london-sep {
    opacity: 0.5;
}

.london-wrap:hover .london-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   WORK
   ============================================ */

.work {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.work-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #7C8794;
    margin-bottom: 12px;
}

.folder-icon {
    color: #7C8794;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

.work-list {
    display: flex;
    flex-direction: column;
}

.work-list li {
    border-top: 1px solid #EBEBEB;
}

.work-list li:last-child {
    border-bottom: none;
}

.work-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    width: 100%;
    transition: opacity 0.15s ease;
}

.work-row:hover {
    opacity: 0.6;
}

.work-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #1A1A1A;
}

.work-year {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #7C8794;
    flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    max-width: 628px;
    margin: 64px auto 0;
    padding: 0 40px 80px;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 400;
    color: #7C8794;
}

/* Border sits inside the padding so it aligns with the content width */
footer::before {
    content: '';
    display: block;
    border-top: 1px solid #EBEBEB;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

footer a {
    color: #7C8794;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-skip-ink: auto;
    text-decoration-color: #7C8794;
    text-decoration-thickness: 9%;
    text-underline-offset: 14.5%;
    text-underline-position: from-font;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

footer a:hover {
    color: #232429;
    text-decoration-color: #232429;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    main {
        padding-top: 60px;
    }
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
    background: rgba(26, 26, 26, 0.1);
}
