/* colleenciszek.com
   Set like a firm biography: one serif, a text column, a credentials rail.
   Three colors: paper, ink, oxblood (links only). Everything else is mixed from them. */

:root {
    --paper: #FBF9F5;
    --ink: #1F2430;
    --accent: #7A2E2E;

    --muted: color-mix(in srgb, var(--ink) 72%, var(--paper));
    --rule: color-mix(in srgb, var(--ink) 16%, var(--paper));

    --display: "Libre Caslon Display", "Big Caslon", "Libre Caslon Text", Georgia, serif;
    --serif: "Libre Caslon Text", "Big Caslon", Georgia, "Times New Roman", serif;

    --wrap: 1040px;
    --gutter: clamp(20px, 5vw, 48px);

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #15181E;
        --ink: #E8E4DC;
        --accent: #D99A90;
    }
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.7;
    font-variant-numeric: oldstyle-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
cite { font-style: italic; }

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 55%, var(--paper));
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 20%, var(--paper)); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; padding: 6px 10px; background: var(--paper); z-index: 10; }

/* Small caps for every label on the page. */
.wordmark, .masthead nav a, h2, .title {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.08em;
}

/* Masthead */
.masthead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 28px;
    padding-bottom: 28px;
}
.wordmark { text-decoration: none; font-size: 1.125rem; }
.masthead nav { display: flex; gap: 28px; }
.masthead nav a { text-decoration: none; font-size: 1.0625rem; color: var(--muted); padding: 6px 0; }
.masthead nav a:hover { color: var(--accent); }

/* Name block */
.intro {
    padding: clamp(40px, 9vw, 104px) 0 clamp(32px, 5vw, 56px);
    border-bottom: 1px solid var(--rule);
}
.intro h1 {
    font-family: var(--display);
    font-size: clamp(3rem, 8vw, 5.25rem);
    line-height: 1;
    letter-spacing: -0.01em;
}
.title { margin-top: 18px; font-size: 1.375rem; }
.admitted { margin-top: 2px; font-style: italic; color: var(--muted); }
.intro h1 + .admitted { margin-top: 20px; }

/* Body: text column on the left, credentials rail on the right. */
.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    grid-template-areas:
        "bio rail"
        "experience rail"
        "community rail"
        "contact rail";
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(48px, 7vw, 88px);
    padding-top: clamp(36px, 5vw, 56px);
}
.bio { grid-area: bio; max-width: 38em; }
.rail { grid-area: rail; align-self: start; }
#experience { grid-area: experience; }
#community { grid-area: community; }
#contact { grid-area: contact; }

.bio p + p { margin-top: 1.1em; }
.bio p:first-child { font-size: 1.1875rem; line-height: 1.6; }

h2 {
    font-size: 1.0625rem;
    color: var(--muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 18px;
}

.rail section + section { margin-top: 40px; }
.rail li { line-height: 1.5; }
.rail li + li { margin-top: 12px; }
.sub { display: block; font-style: italic; color: var(--muted); font-size: 0.9375rem; }

.record { margin-top: clamp(48px, 6vw, 72px); max-width: 38em; }

.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
.item + .item { margin-top: 30px; }
.item > * { grid-column: 1 / -1; }
.item h3 { grid-column: 1; font-size: 1.0625rem; font-weight: 700; line-height: 1.45; }
.item .years { grid-column: 2; grid-row: 1; align-self: baseline; }
.item .role { font-style: italic; margin-bottom: 4px; }
.years { color: var(--muted); white-space: nowrap; font-size: 0.9375rem; }

.plain li { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.plain li + li { margin-top: 10px; }
.note { margin-top: 22px; color: var(--muted); font-style: italic; }

.footer {
    margin-top: clamp(64px, 9vw, 112px);
    padding-bottom: 40px;
    color: var(--muted);
    font-size: 0.9375rem;
}
.footer p { border-top: 1px solid var(--rule); padding-top: 20px; }

@media (max-width: 760px) {
    .page { display: block; }
    .rail { margin-top: 48px; }
    .item { display: block; }
    .item .years { margin-top: 1px; }
    .plain li { display: block; }
    .plain .years { display: block; }
    .plain li + li { margin-top: 14px; }
}

@media print {
    :root { --paper: #fff; --ink: #000; --accent: #000; }
    body { font-size: 10.5pt; line-height: 1.45; }
    .masthead, .skip, .footer { display: none; }
    .intro { padding: 0 0 12pt; }
    .intro h1 { font-size: 30pt; }
    .page { grid-template-columns: minmax(0, 1fr) 2in; column-gap: 0.4in; padding-top: 14pt; }
    .record { margin-top: 18pt; }
    .item, .rail section { break-inside: avoid; }
    a { text-decoration: none; }
}
