/* julia.pelanne.com */

:root {
    --paper: #f8f6f1;
    --ink: #22201c;
    --moss: #5b6b3a;
    --quiet: #7a756b;
    --line: #e4e0d6;
    --card: #f1ede4;

    --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
    --sans: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

    --measure: 900px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.5;
}

a {
    color: var(--moss);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:focus-visible {
    outline: 2px solid var(--moss);
    outline-offset: 3px;
    border-radius: 2px;
}

img,
video {
    max-width: 100%;
}

/* Shell */

.wrap {
    width: 100%;
    max-width: calc(var(--measure) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0 1.25rem;
    border-bottom: 1px solid var(--line);
}

.wordmark {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
    text-decoration: none;
}

.top nav {
    display: flex;
    gap: 1.5rem;
}

.top nav a {
    color: var(--quiet);
    text-decoration: none;
    font-size: 0.95rem;
}

.top nav a:hover {
    color: var(--ink);
}

.top nav a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--moss);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
}

main.wrap {
    flex: 1;
    padding: 2.5rem var(--gutter) 3.5rem;
}

/* Media */

.frame {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--line);
}

.frame img,
.frame video {
    display: block;
    width: 100%;
    height: auto;
}

.frame figcaption {
    padding: 0.6rem 0.9rem 0.7rem;
    background: var(--card);
    color: var(--quiet);
    font-size: 0.85rem;
}

/* Page intro (video page) */

.intro {
    margin: 0 0 1.75rem;
}

.intro .age {
    margin: 0;
}

.lede {
    margin: 0.75rem 0 0;
    max-width: 48ch;
    color: var(--quiet);
    font-size: 1.05rem;
}

/* The one big statement */

.age-block {
    margin-top: 2.5rem;
}

.age {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.7rem, 3.8vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 22ch;
    text-wrap: balance;
    color: var(--ink);
}

.exact {
    margin: 1.25rem 0 0;
    max-width: 44ch;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--quiet);
}

.exact .n {
    font-family: var(--serif);
    font-size: 1.25em;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* Then / now cross-link */

.then {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.then-link {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 1.5rem;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
}

.then-link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    background: var(--line);
}

.then-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.then-text strong {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.25;
    text-wrap: balance;
}

.then-text span {
    color: var(--moss);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.then-link:hover .then-text span {
    color: var(--ink);
    text-decoration-color: var(--moss);
}

/* Footer */

.foot {
    padding: 1.25rem 0 2rem;
    border-top: 1px solid var(--line);
    color: var(--quiet);
    font-size: 0.85rem;
}

.foot p {
    margin: 0;
}

@media (max-width: 560px) {
    .top {
        padding-top: 1.25rem;
    }

    .top nav {
        gap: 1rem;
    }

    main.wrap {
        padding-top: 1.5rem;
    }

    .age-block {
        margin-top: 1.75rem;
    }

    .exact {
        font-size: 1rem;
    }

    .then {
        margin-top: 2.25rem;
        padding-top: 1.5rem;
    }

    .then-link {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .then-link img {
        max-width: 320px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .top nav a,
    .then-text span {
        transition: color 120ms ease;
    }
}
