:root {
    color-scheme: light;
    --ink: #1a3324;
    --paper: #f2efe9;
    --mist: #e1eadf;
    --copper: #9c5f32;
    --line: #b7c1b4;
    --muted: #475b4c;
    --canopy: linear-gradient(135deg, #1a3324, #2c5530);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--paper), var(--paper) 35%, var(--mist));
    color: var(--ink);
    font: 1.125rem/1.65 var(--serif);
}
h1, h2, h3, p, blockquote, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.1; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--copper); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip { position: absolute; z-index: 1; padding: .5rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.journal > header, .journal > main, .journal > footer {
    width: min(92%, 78rem);
    margin-inline: auto;
}
.page { width: min(calc(100% - 3rem), 59rem); margin-inline: auto; }
.letterhead, .section-heading, .colophon, .article-nav {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.letterhead {
    align-items: center;
    padding: 1.25rem 0;
}
.notebook-name { display: flex; align-items: center; gap: .65rem; font-size: clamp(1.35rem, 2vw, 1.85rem); letter-spacing: -.05em; text-decoration: none; font-style: italic; }
.notebook-name img { border-radius: 50%; object-fit: cover; object-position: center 75%; }
.notebook-name > span { line-height: 1.1; }
.masthead-role {
    display: inline-block;
    margin-top: .2rem;
    color: var(--muted);
    font: 400 .875rem/1.25 var(--sans);
    letter-spacing: normal;
}
nav, .section-heading, .reading-links, .format-label { font: 500 .96rem/1.5 var(--sans); }
nav a + a { margin-left: 1.1rem; }
.letterhead nav a, .colophon nav a { text-decoration: none; }
.letterhead nav a:hover, .colophon nav a:hover { text-decoration: underline; }
.letter {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    align-items: center;
    min-height: clamp(20rem, 31vw, 27rem);
    background: var(--paper);
    border-block: 1px solid var(--line);
}
.landscape {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: 76%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(to right, transparent, black 22%);
    mix-blend-mode: multiply;
}
.letter-copy { width: 38%; padding: 1.8rem 0; }
.letter-copy h1 { font-size: clamp(3.1rem, 5.4vw, 5.2rem); line-height: .95; letter-spacing: -.065em; margin-bottom: .25em; }
.letter-copy p { font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.5; max-width: 33ch; }
.journal-section { scroll-margin-top: 1rem; }
.section-heading { border-bottom: 1px solid var(--line); padding: 1.7rem 0 .6rem; }
.section-heading h2 { font: 500 clamp(1.8rem, 3vw, 2.55rem)/1.15 var(--serif); letter-spacing: -.04em; }
.section-heading a { font-size: .9rem; }
.entry { max-width: 42rem; margin: clamp(2rem, 4.5vw, 4rem) auto; }
.entry h3, .topic-title { font-size: clamp(2.65rem, 5vw, 4.4rem); letter-spacing: -.055em; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; }
.entry blockquote { margin: 1.2rem 0; font-size: clamp(1.15rem, 1.6vw, 1.4rem); max-width: 54ch; }
.reading-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.project-stories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: 1.25rem 0 2rem;
    border-bottom: 1px solid var(--line);
}
.project-stories h3 { font-size: 2rem; letter-spacing: -.045em; }
.project-stories p { margin-top: .65rem; max-width: 52ch; }
.project-plate { position: relative; margin-bottom: 1rem; }
.project-plate > a { display: block; }
.print { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.screen-detail {
    position: absolute;
    right: 3%;
    bottom: 4%;
    width: fit-content;
    max-width: 25%;
    height: 27%;
    border: 3px solid var(--paper);
    background: var(--paper);
    box-shadow: 0 1px 7px #12271960;
    cursor: zoom-in;
}
.screen-detail img { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.screen-detail:hover, .screen-detail:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.project-stories h3 a { text-decoration: none; }
.project-stories h3 a:hover { text-decoration: underline; }
.colophon { border-top: 4px double var(--ink); padding: 1rem 0 3rem; flex-wrap: wrap; }
.colophon span { font-style: italic; }
.page { padding-block: clamp(2rem, 5vw, 4rem); }
.knowledge-header nav, .article-nav { padding-bottom: .85rem; border-bottom: 4px double var(--ink); }
.knowledge-header h1, .reading-article h1 { font-size: clamp(2.7rem, 6vw, 5rem); letter-spacing: -.06em; margin: .65em 0 .25em; }
.lede, .topic-description { max-width: 50ch; }
.topics, .formats { list-style: none; padding: 0; }
.topics { margin-top: 2.5rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.topic-title { max-width: 23ch; font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: .25em; }
.formats { margin-top: 1.5rem; }
.formats li { border-top: 1px solid var(--line); }
.format-link { display: block; padding: 1rem 0; text-decoration: none; }
.format-label { text-decoration: underline; }
.format-description { display: block; color: var(--muted); }
.article-page { max-width: 48rem; }
.article-body { font-size: 1.2rem; }
.article-body > * { margin: 1.4rem 0; }
.article-body table { width: 100%; border-collapse: collapse; font: .98rem/1.55 var(--sans); overflow-wrap: anywhere; }
.article-body td, .article-body th { border-bottom: 1px solid var(--line); text-align: left; padding: .75rem; vertical-align: top; }
.article-body thead { background: var(--canopy); color: #efefef; }
.article-body tbody th { width: 35%; }
.article-body code { font-size: .86em; background: var(--mist); }
.article-footer { padding-block: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 42rem) {
    .journal > header, .journal > main, .journal > footer, .page { width: calc(100% - 2.5rem); }
    .letterhead { align-items: center; flex-wrap: wrap; gap: .5rem; }
    nav a + a { margin-left: .65rem; }
    .notebook-name img { width: 30px; height: 30px; }
    .letter { min-height: 0; }
    .landscape { position: static; z-index: auto; width: 100%; height: auto; aspect-ratio: 2.5; mask-image: none; order: 1; }
    .letter-copy { width: 100%; padding: 1.4rem 0 1rem; }
    .letter-copy h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); }
    .letter-copy h1 br { display: none; }
    .letter-copy h1 span { margin-right: .15em; }
    .letter-copy p { max-width: 45ch; }
    .desktop-break { display: none; }
    .project-stories { grid-template-columns: 1fr; }
    .article-nav { flex-wrap: wrap; }
    .article-body th, .article-body td { padding: .45rem; }
}
