/* Michael Levin, PsyD. Cardo on a charcoal ground, one column,
   hairline rules as the only ornament. Single theme by design. */

/* Cardo, served from this site (SIL Open Font License 1.1). */
@font-face {
    font-family: 'Cardo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/cardo-latin-ext-400-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: 'Cardo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/cardo-latin-400-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: 'Cardo';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/cardo-latin-ext-400-italic.woff2) format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: 'Cardo';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/cardo-latin-400-italic.woff2) format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
    color-scheme: dark;
    --color-bg: #1F2328;
    --color-text: #EDEDEC;
    --color-text-muted: #949CA3;
    --color-rule: #333A41;
    --font-serif: 'Cardo', Georgia, 'Times New Roman', serif;
    --measure: 540px;
}

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

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

body {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.75;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 4rem 1.5rem 5rem;
}

.container {
    max-width: var(--measure);
    margin: 0 auto;
}

/* ---- Masthead ---- */

header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem;
    text-wrap: balance;
}

.title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* ---- Body copy ---- */

main {
    margin-bottom: 3rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-text-muted);
    padding-bottom: 1px;
}

a:hover,
a:focus-visible {
    border-bottom-color: var(--color-text);
}

em {
    font-style: italic;
}

.small {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* ---- Page devices ---- */

.rule {
    border: 0;
    border-top: 1px solid var(--color-rule);
    margin: 2rem 0;
}

header .rule {
    margin-bottom: 0;
}

.thesis {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.terms {
    border-left: 1px solid var(--color-rule);
    padding-left: 1.25rem;
}

.record {
    list-style: none;
}

.record li {
    line-height: 1.5;
    margin-bottom: 0.7rem;
}

.record li:last-child {
    margin-bottom: 0;
}

.pending {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ---- Accessibility floor ---- */

:focus-visible {
    outline: 1px solid var(--color-text-muted);
    outline-offset: 3px;
}

@media (max-width: 560px) {
    html {
        font-size: 19px;
    }

    body {
        padding: 3rem 1.25rem 4rem;
    }

    header {
        margin-bottom: 2.5rem;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }
}

/* One layout for every page: name, the page links in a row, then the page (photo first where there is one). */
h1 a { border: 0; padding: 0; }
header { margin-bottom: 2.2rem; }
nav { margin-top: 1.8rem; }
.doors { list-style: none; display: flex; flex-wrap: wrap; column-gap: 1.5rem; row-gap: 0.2rem; font-size: 0.85rem; line-height: 1.5; }
.doors a { display: block; border: 0; padding: 0.45rem 0; color: var(--color-text-muted); }
.doors a:hover, .doors a:focus-visible, .doors a.current { color: var(--color-text); }
body[data-page="Home"] .doors a { color: var(--color-text); }
body[data-page="Home"] .doors a:hover, body[data-page="Home"] .doors a:focus-visible { color: var(--color-text-muted); }
.lead { font-size: 1.2rem; line-height: 1.5; }
.page-title { font-size: 1.6rem; line-height: 1.3; margin-bottom: 1.6rem; text-wrap: balance; }
.photo { margin: 0 0 1.8rem; }
.photo img { display: block; width: 100%; height: auto; }
/* Phones: the landing page shows its links as a list; the other pages keep the compact row. */
@media (max-width: 879px) {
    body[data-page="Home"] .doors { display: block; font-size: 1.15rem; }
    body[data-page="Home"] .doors a { padding: 0.4rem 0; }
}
/* Wide screens: a wider frame for the name, links and photos; text stays at a comfortable reading width on the same left edge. */
@media (min-width: 880px) {
    .container { max-width: 760px; }
    .doors { flex-wrap: wrap; justify-content: space-between; column-gap: 0.7rem; white-space: nowrap; }
    main > section > :not(.photo) { max-width: var(--measure); }
}
.record.terms { margin-bottom: 1rem; }
.bullets { list-style: disc; margin: 0 0 1rem; padding-left: 1.2rem; border: 0; }
.bullets li { line-height: 1.5; margin-bottom: 0.5rem; padding-left: 0.2rem; }
.bullets li::marker { color: var(--color-text-muted); }
.small { margin-top: 1.75rem; }
a[href^="tel:"] { white-space: nowrap; }
