:root {
    --ivory: #F5F1E8;
    --gold: #D4B46A;
    --gold-deep: #9c7d2e;
    --ink: #111111;
    --muted: #2b2820;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--ivory);
    color: var(--ink);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 19px;
    line-height: 1.6;
    font-weight: 400;
}

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 18vh 32px 16vh;
    animation: fade 1.8s ease forwards;
    opacity: 0;
}

@keyframes fade {
    to {
        opacity: 1;
    }
}

/* Hero */
.hero {
    margin-bottom: 8vh;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    margin-bottom: 1.4rem;
}

.hero .title {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 4.5rem;
}

.hero .lede {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 1.1;
    letter-spacing: -0.005em;
    color: var(--ink);
    max-width: 16ch;
}

/* Divider */
.divider {
    width: 64px;
    height: 1px;
    background-color: var(--gold);
    margin: 0 0 9vh;
}

/* Entries */
.entry {
    margin-bottom: 8vh;
}

.label {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--gold-deep);
    margin-bottom: 1.8rem;
}

.name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.detail {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 38ch;
}

.list {
    list-style: none;
}

.list li {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.9;
    color: var(--ink);
}

.list.books li {
    font-style: italic;
}

/* Contact */
.contact a {
    color: var(--ink);
    text-decoration: none;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    transition: color 0.6s ease, border-color 0.6s ease;
}

.contact a:hover {
    color: var(--gold-deep);
    border-color: var(--gold-deep);
}

.contact a:focus-visible {
    outline: 2px solid var(--gold-deep);
    outline-offset: 4px;
    border-radius: 1px;
}

@media (max-width: 540px) {
    body {
        font-size: 18px;
    }

    main {
        padding: 12vh 26px 12vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    main {
        animation: none;
        opacity: 1;
    }
}
