/* Impeccably Black — shared editorial system, v1.0.5.
   Keep Ghost's member forms, links, and pagination functional. */
:root {
    --ib-onyx: #171716;
    --ib-deep: #0d0d0d;
    --ib-ivory: #f2f1ef;
    --ib-paper: #faf8f4;
    --ib-bronze: #bfa06a;
    --ib-muted: #68655f;
}

/* Hidden History: a distinct archival editorial thesis, without changing
   the newsroom's broader identity. */
.ib-archive-masthead .ib-history-manifesto {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(242,241,239,.28);
    color: #f2f1ef;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(23px,2.9vw,41px);
    line-height: 1.18;
    letter-spacing: -.035em;
}
.ib-archive-masthead .ib-history-manifesto em {
    color: var(--ib-bronze);
    font-weight: 400;
}

/* A restrained, consistent masthead on all templates. */
.gh-navigation {
    border-bottom: 1px solid #d8d4cc;
}
.gh-navigation .nav a {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .055em;
}
.gh-navigation .nav a:hover,
.gh-navigation .gh-navigation-members a:hover {
    color: #8c6d42;
}

/* Global newsletter and footer — replaces the generic white signup area. */
.ib-footer {
    margin-top: 76px;
    color: var(--ib-ivory);
    background: var(--ib-onyx);
    font-family: Arial, Helvetica, sans-serif;
}
.ib-footer .gh-footer-inner {
    max-width: 1360px;
}
.ib-footer .ib-footer-signup {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    align-items: end;
    gap: clamp(48px, 7vw, 130px);
    margin: 0;
    padding: clamp(60px, 7vw, 112px) 0 76px;
    border-bottom: 1px solid #58534a;
    text-align: left;
}
.ib-footer-eyebrow,
.ib-footer-form-label {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--ib-bronze);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .23em;
    line-height: 1.6;
}
.ib-footer-rule {
    width: 34px;
    height: 1px;
    background: var(--ib-bronze);
}
.ib-footer .gh-footer-signup-header {
    max-width: 790px;
    margin: 20px 0 20px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(49px, 5.4vw, 87px);
    font-weight: 400;
    letter-spacing: -.056em;
    line-height: 1.035;
}
.ib-footer .gh-footer-signup-header em {
    color: var(--ib-bronze);
    font-weight: 400;
}
.ib-footer .gh-footer-signup-subhead {
    max-width: 580px;
    margin: 0;
    color: #c7c4be;
    font-size: clamp(15px, 1.28vw, 18px);
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.7;
    opacity: 1;
}
.ib-footer-signup-form {
    padding-bottom: 9px;
}
.ib-footer .gh-form {
    max-width: none;
    height: 61px;
    margin-top: 16px;
    border: 1px solid #77736d;
    border-radius: 0;
    background: #242321;
}
.ib-footer .gh-form:hover,
.ib-footer .gh-form:focus-within {
    border-color: var(--ib-bronze);
    background: #242321;
}
.ib-footer .gh-form-input {
    padding: 0 142px 0 19px;
    border: 0;
    border-radius: 0;
    color: #fff;
    font-size: 15px;
}
.ib-footer .gh-form-input::placeholder {
    color: #a7a49d;
    opacity: 1;
}
.ib-footer .gh-form-input:focus-visible {
    outline: 2px solid var(--ib-bronze);
    outline-offset: 2px;
}
.ib-footer .gh-form .gh-button {
    right: 5px;
    min-width: 124px;
    height: 49px;
    padding: 0 14px;
    border-radius: 0;
    color: var(--ib-deep);
    background: var(--ib-bronze);
    font-size: 13px;
    font-weight: 750;
}
.ib-footer .gh-form .gh-button:hover {
    background: #d0b98e;
}
.ib-footer-form-note {
    display: block;
    margin-top: 15px;
    color: #bcb7af;
    font-size: 12px;
    letter-spacing: .01em;
}
.ib-footer .gh-social-links {
    justify-content: flex-start;
    gap: 23px;
    margin: 27px 0 0;
}
.ib-footer .gh-social-links a {
    color: #c6bfae;
    transition: color .18s ease;
}
.ib-footer .gh-social-links a:hover {
    color: #fff;
}
.ib-footer .gh-footer-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin: 0;
    padding: 34px 0 50px;
    border: 0;
    font-weight: 400;
}
.ib-footer .gh-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #f7f5f0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .21em;
}
.ib-footer-monogram {
    display: inline-block;
    flex-shrink: 0;
    width: 27px;
    height: 30px;
    background-color: #f8f8f6;
    -webkit-mask: url('https://storage.ghost.io/c/ff/07/ff07d4fa-7445-431d-8ce7-1dec640c4f74/content/images/size/w256h256/2023/12/iblogo_nobackground-1.png') center / contain no-repeat;
    mask: url('https://storage.ghost.io/c/ff/07/ff07d4fa-7445-431d-8ce7-1dec640c4f74/content/images/size/w256h256/2023/12/iblogo_nobackground-1.png') center / contain no-repeat;
}
.ib-footer .gh-footer-menu .nav {
    gap: 7px 23px;
}
.ib-footer .gh-footer-menu .nav a {
    color: #d3cec4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
}
.ib-footer .gh-footer-copyright {
    color: #a9a49b;
    font-size: 12px;
    letter-spacing: .015em;
    white-space: normal;
}

/* Category, author, and paginated archive pages share the homepage's language. */
.ib-archive-page {
    padding-bottom: 35px;
    color: var(--ib-onyx);
    background: var(--ib-paper);
}
.ib-archive-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
    align-items: center;
    gap: 30px;
    max-width: 1390px;
    min-height: 260px;
    margin-top: 25px;
    margin-bottom: 33px;
    padding: clamp(37px, 5vw, 72px) clamp(30px, 5vw, 75px);
    color: var(--ib-ivory);
    background: var(--ib-onyx);
}
.ib-archive-masthead-copy {
    grid-column: 1 / -1;
}
.ib-archive-masthead:has(.ib-archive-masthead-image) .ib-archive-masthead-copy {
    grid-column: 1 / 2;
}
.ib-archive-eyebrow {
    color: var(--ib-bronze);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
    line-height: 1.8;
}
.ib-archive-eyebrow b {
    margin: 0 10px;
    color: #777067;
}
.ib-archive-masthead h1 {
    margin: 13px 0 16px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(54px, 7.8vw, 115px);
    font-weight: 400;
    letter-spacing: -.059em;
    line-height: .99;
}
.ib-masthead-dot {
    color: var(--ib-bronze);
}
.ib-archive-masthead p {
    max-width: 710px;
    margin: 0;
    color: #cec9c0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.65;
}
.ib-archive-masthead-image {
    align-self: stretch;
    min-height: 220px;
    overflow: hidden;
}
.ib-archive-masthead-image .gh-article-image {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}
.ib-archive-masthead-image .gh-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ib-archive-list-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1320px;
    padding-bottom: 14px;
    border-bottom: 1px solid #c7c2b9;
    color: #816b49;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
}
.ib-archive-page .gh-container {
    margin: 0 0 60px;
}
.ib-archive-page .gh-container-inner {
    display: block;
    max-width: 1320px;
}
.ib-archive-page .gh-container .gh-main {
    width: 100%;
}
.ib-archive-page .gh-container .gh-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 26px;
    overflow: visible;
    padding-top: 27px;
}
.ib-archive-page .gh-container .gh-card {
    min-width: 0;
}
.ib-archive-page .gh-container .gh-card::before,
.ib-archive-page .gh-container .gh-card::after {
    display: none;
}
.ib-archive-page .gh-container .gh-card-link {
    gap: 16px;
}
.ib-archive-page .gh-card-image {
    aspect-ratio: 1.55;
    overflow: hidden;
    background: #e6dfd5;
}
.ib-archive-page .gh-card-image img {
    transition: transform .4s ease;
}
.ib-archive-page .gh-card-link:hover .gh-card-image img {
    transform: scale(1.035);
}
.ib-archive-page .gh-card-tag {
    display: block;
    margin-bottom: 8px;
    color: #876c43;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}
.ib-archive-page .gh-card-title {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(26px, 2.3vw, 34px);
    font-weight: 400;
    letter-spacing: -.037em;
    line-height: 1.16;
}
.ib-archive-page .gh-card-excerpt {
    margin-top: 10px;
    color: var(--ib-muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
}
.ib-archive-page .gh-card-meta {
    margin-top: 13px;
    color: #8c867d;
    font-size: 11px;
    letter-spacing: .02em;
}
.ib-archive-page .gh-more {
    display: block;
    margin: 45px 0 0;
    padding-top: 23px;
    border-top: 1px solid #d7d2c9;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .11em;
}
.ib-archive-page .gh-more a {
    justify-content: center;
}
.ib-archive-page .gh-archive {
    max-width: 1320px;
    margin: 38px auto 28px;
}
.ib-author-page .gh-archive-inner {
    grid-column: 1 / -1 !important;
    gap: 30px;
    align-items: center;
    padding: 40px;
    border: 0;
    color: var(--ib-ivory);
    background: var(--ib-onyx);
}
.ib-author-page .gh-archive-wrapper {
    flex-grow: 1;
}
.ib-author-page .gh-archive .gh-article-title {
    margin-top: 13px;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: 1.04;
}
.ib-author-page .gh-archive a,
.ib-author-page .gh-author-meta {
    color: inherit;
}
.ib-author-page .gh-article-excerpt {
    color: #cfccc6;
}
.ib-author-page .gh-article-image {
    width: 145px;
    height: 145px;
    border: 2px solid var(--ib-bronze);
}

/* Standard informational pages: calmer article typography and spacing. */
.ib-editorial-page .gh-article-header {
    margin-top: 75px;
    padding-bottom: 30px;
    border-bottom: 1px solid #d3cdc1;
}
.ib-editorial-page .gh-article-title {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(46px, 5.2vw, 77px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: 1.07;
}
.ib-editorial-page .gh-article-excerpt {
    color: #706a62;
}
.ib-editorial-page .gh-content h2,
.ib-editorial-page .gh-content h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: -.028em;
}

@media (max-width: 1000px) {
    .ib-footer .ib-footer-signup {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 32px;
        padding-bottom: 55px;
    }
    .ib-footer-signup-form {max-width: 660px;}
    .ib-footer .gh-footer-bar {grid-template-columns: 1fr;justify-items:start;}
    .ib-footer .gh-footer-copyright {text-align:left;}
    .ib-archive-page .gh-container .gh-feed {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 650px) {
    .ib-footer {margin-top: 50px;}
    .ib-footer .ib-footer-signup {padding: 49px 0 43px;}
    .ib-footer-eyebrow,.ib-footer-form-label {font-size:9px;letter-spacing:.15em;}
    .ib-footer .gh-footer-signup-header {font-size:clamp(46px,11vw,64px);}
    .ib-footer .gh-footer-signup-subhead {font-size:15px;}
    .ib-footer .gh-form {height:57px;}
    .ib-footer .gh-form .gh-button {height:45px;min-width:106px;font-size:12px;}
    .ib-footer .gh-form-input {padding-right:115px;font-size:14px;}
    .ib-footer .gh-footer-logo {font-size:11px;letter-spacing:.16em;}
    .ib-footer .gh-footer-bar {gap:17px;padding:26px 0 37px;}
    .ib-archive-masthead {display:block;min-height:0;margin:12px 0 27px;padding:36px 23px;}
    .ib-archive-masthead h1 {font-size:clamp(50px,12vw,77px);}
    .ib-archive-masthead-image {height:220px;margin-top:25px;}
    .ib-archive-list-heading {font-size:9px;letter-spacing:.1em;}
    .ib-archive-page .gh-container .gh-feed {grid-template-columns:1fr;gap:31px;padding-top:20px;}
    .ib-archive-page .gh-card-image {aspect-ratio:1.65;}
    .ib-archive-page .gh-card-title {font-size:29px;}
    .ib-author-page .gh-archive-inner {padding:26px;flex-direction:column-reverse;align-items:flex-start;}
    .ib-author-page .gh-archive .gh-article-title {font-size:51px;}
    .ib-editorial-page .gh-article-header {margin-top:40px;}
}
@media (prefers-reduced-motion: reduce) {
    .ib-archive-page .gh-card-image img {transition:none;}
}
