/* Shared layout and typography for the journal landing page and articles. */
.journal-page {
    --ink: #351c13;
    --accent: #754728;
    --paper: #faf6ee;
    background: var(--paper);
    color: var(--ink);
}

.journal-page * { box-sizing: border-box; }
.journal-header { background: #34190e; color: #fff6e9; }
.journal-header .inner {
    max-width: 1180px;
    margin: auto;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}
.journal-brand {
    font-family: Georgia, serif;
    font-size: 1.55rem;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
}
.journal-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.journal-header nav a { color: inherit; text-decoration: none; }
.journal-header nav .quote {
    background: #e7c8a2;
    color: #351c13;
    border-radius: 4px;
    padding: 10px 14px;
    font-weight: bold;
}
.journal-content { max-width: 1180px; margin: auto; padding: 22px 25px 75px; }
.breadcrumbs { font-size: .88rem; margin-bottom: 26px; }
.breadcrumbs a { color: var(--accent); }
.journal-page h1, .journal-page h2 { font-family: Georgia, serif; color: var(--ink); }
.journal-page h1 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); line-height: 1.08; }
.journal-page .eyebrow {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: bold;
    color: var(--accent);
    font-size: .8rem;
}
.journal-footer { padding: 30px 25px; text-align: center; background: #34190e; color: #fff6e9; }
.journal-footer a { color: #fff6e9; }

/* Journal articles: text beside the images, then full width below them. */
.journal-article h1 { margin: 18px 0; }
.journal-article h2 { font-size: 1.6rem; line-height: 1.2; margin: 30px 0 10px; }
.dek { font-size: 1.18rem; font-style: italic; line-height: 1.5; }

.journal-flow {
    display: flow-root;
}
.journal-flow > .journal-media {
    float: right;
    width: calc((100% - clamp(24px, 3vw, 44px)) / 2.9);
    margin: 0 0 24px clamp(24px, 3vw, 44px);
    overflow-wrap: anywhere;
}
.journal-copy,
.journal-media {
    min-width: 0;
}
.journal-copy {
    font-size: 1rem;
    line-height: 1.65;
}
.journal-copy p {
    margin: 0;
}
.journal-copy p + p {
    margin-top: 13px;
}
.journal-copy .dek {
    font-size: 1.18rem;
    line-height: 1.5;
}
.journal-copy h2 {
    margin-top: 1.8em;
}
.journal-copy h3 {
    font-size: 1.4rem;
    margin: 1.3em 0 0;
}
.journal-copy ul,
.journal-copy ol {
    padding-left: 23px;
    margin: 8px 0 22px;
}
.journal-copy a,
.journal-media a {
    color: var(--accent);
}

/* Photographs, illustrations and captions. */
.journal-page figure {
    margin: 0 0 24px;
}
.journal-page figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.journal-page figcaption {
    margin-top: 9px;
    padding-top: 6px;
    font-size: .9rem;
    font-style: italic;
    line-height: 1.5;
}
.journal-media h2 {
    margin-top: 0;
}
.image-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 13px;
}

/* Reusable callouts; their backgrounds stay clear of the floated images. */
.journal-copy .tip,
.notice,
.side-note {
    display: flow-root;
}
.journal-copy .tip {
    padding: 15px 18px;
    background: #f0e0ca;
    border-left: 4px solid #9b6d45;
    margin: 20px 0;
}
.side-note {
    background: #f1e0c9;
    padding: 19px;
    border-radius: 6px;
    margin: 20px 0;
}
.side-note h3 {
    font-family: Georgia, serif;
    font-size: 1.35rem;
    margin: 0 0 8px;
}
.notice {
    border: 1px solid #cdb9a2;
    border-radius: 5px;
    padding: 14px 18px;
    margin: 35px 0 25px;
    font-style: italic;
    font-size: .9rem;
}

/* Article tables and the shared scrolling wrapper for wide references. */
.journal-copy table {
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: inherit;
}
.journal-copy th,
.journal-copy td {
    padding: 10px;
    border-bottom: 1px solid #d8cbb9;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.table-scroll {
    overflow-x: auto;
}
.fuse-reference .journal-copy > section {
    margin-top: 35px;
}
.fuse-reference .journal-copy > section h2 {
    margin-bottom: 12px;
}
.fuse-panel-note {
    margin-bottom: 12px;
    font-size: .93rem;
}
.fuse-reference .fuse-table {
    width: 100%;
    min-width: 640px;
    margin: 12px 0 24px;
}
.fuse-reference .fuse-table th,
.fuse-reference .fuse-table td {
    border: 1px solid #d9c5ae;
    padding: 9px 11px;
}
.fuse-reference .fuse-table thead th {
    background: #efe0cc;
}
.fuse-reference .fuse-table tbody tr:nth-child(even) {
    background: #fffaf2;
}
.fuse-reference .fuse-table tbody th {
    width: 70px;
    font-weight: bold;
}
.fuse-reference .fuse-table td:nth-child(2) {
    width: 80px;
}

/* Material color samples use named classes rather than inline backgrounds. */
.color-swatches {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}
.color-swatch {
    font-size: .83rem;
    text-align: center;
}
.color-swatch span {
    display: block;
    height: 40px;
    border: 1px solid #a89a88;
    border-radius: 3px;
    margin-bottom: 5px;
}
.swatch-black { background: #252323; }
.swatch-dark-brown { background: #58382b; }
.swatch-tan { background: #b58a5c; }
.swatch-burgundy { background: #69343d; }
.swatch-navy { background: #30465c; }
.swatch-ivory { background: #e6d8bb; }

/* Journal landing page. */
.journal-index .journal-content { min-height: 65vh; }
.journal-index .breadcrumbs { margin-bottom: 28px; }
.journal-index h1 { margin: 12px 0 18px; }
.journal-intro { max-width: 720px; font-size: 1.12rem; line-height: 1.6; margin: 0 0 35px; }
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.article-card {
    display: flex;
    flex-direction: column;
    background: #fffaf2;
    border: 1px solid #d7c3aa;
    border-radius: 6px;
    padding: 25px;
}
.article-card .category {
    color: var(--accent);
    font-size: .82rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.article-card h2 { font-size: 1.55rem; line-height: 1.2; margin: 12px 0; }
.article-card h2 a { color: inherit; }
.article-card p { line-height: 1.6; margin: 0 0 16px; }
.article-card .read-more { align-self: flex-start; margin-top: auto; color: #65371d; font-weight: bold; }

@media (max-width: 780px) {
    .article-list { grid-template-columns: 1fr; }
    .journal-header .inner { align-items: flex-start; }
    .journal-content { padding: 20px 17px 50px; }
}
@media (max-width: 760px) {
    .journal-flow {
        display: flex;
        flex-direction: column;
    }
    .journal-flow > .journal-copy {
        order: 0;
    }
    .journal-flow > .journal-media {
        order: 1;
        float: none;
        width: 100%;
        margin: 24px 0 0;
    }
}
