@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --red: #C8102E;
    --red-dark: #9C0C24;
    --black: #111111;
    --white: #FFFFFF;
    --grey-1: #F4F4F4;
    --grey-2: #DADADA;
    --grey-3: #8A8A8A;
    --grey-4: #4A4A4A;
    --grey-dark: #2B2B2B;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --serif: var(--font-heading, var(--sans));
    --serif-body: var(--font-body, var(--sans));
    --condensed: var(--sans);
    --content-width: 1180px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--black);
    font-family: var(--gh-font-body, var(--serif-body));
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .masthead__logo, .site-footer__logo {
    font-family: var(--gh-font-heading, var(--serif));
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Utility rules ---------- */
.rule { border: none; border-top: 1px solid var(--black); margin: 0; }
.rule--thin { border-top: 1px solid var(--grey-2); }
.rule--red { border-top: 3px solid var(--red); }

.kicker {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
}

/* ---------- Masthead (single row, Atlantic-style) ---------- */
.masthead {
    border-bottom: 1px solid var(--grey-2);
    background: var(--white);
}
.masthead .wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 128px;
    gap: 16px;
}
.masthead__left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}
.masthead__site-logo-link {
    display: inline-flex;
    flex-shrink: 0;
}
.masthead__site-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.masthead__logo {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.01em;
    color: var(--black);
    text-align: center;
    white-space: nowrap;
}
.masthead__logo img { max-height: 30px; margin: 0 auto; }

.masthead__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}
.masthead__signin {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    color: var(--black);
    white-space: nowrap;
}
.masthead__signin:hover { color: var(--red); }
.masthead__subscribe {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 13px;
    background: var(--red);
    color: var(--white);
    padding: 9px 18px;
    border-radius: 3px;
    white-space: nowrap;
}
.masthead__subscribe:hover { background: var(--red-dark); }

/* ---------- Primary nav (inline in masthead) ---------- */
.site-nav-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    min-width: 0;
    overflow: hidden;
}
.site-nav-inline a {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    color: var(--black);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}
.site-nav-inline a:hover { color: var(--red); }
.site-nav-inline a.nav-current {
    color: var(--red);
    border-bottom: 2px solid var(--red);
}

/* ---------- Section hero ---------- */
.section-hero {
    padding: 40px 0 8px;
}
.section-hero__kicker {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}
.section-hero h1 {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 8px;
}
.section-hero p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--grey-4);
    max-width: 640px;
    margin: 0;
}

/* ---------- Section label row (e.g. "On the Moment") ---------- */
.section-label {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 44px 0 14px;
    border-bottom: 1px solid var(--black);
    margin-bottom: 26px;
}
.section-label h2 {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 24px;
    margin: 0 0 6px;
}
.section-label p {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--grey-4);
    margin: 0;
}
.section-label__cta {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--black);
    white-space: nowrap;
}
.section-label__cta:hover { color: var(--red); }

/* ---------- Newsletter grid ---------- */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 28px 0 8px;
}
.newsletter-card {
    border: 1px solid transparent;
    background: var(--grey-1);
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    min-height: 310px;
    transition: border-color 0.15s ease;
}
.newsletter-card:hover { border-color: var(--red); }

.newsletter-card__cadence {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--black);
}
.newsletter-card__title {
    font-family: var(--condensed);
    font-weight: 700;
    font-size: 25px;
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    margin: 0 0 12px;
}
.newsletter-card__title a:hover { color: var(--red); }
.newsletter-card__excerpt {
    font-family: var(--serif-body);
    font-size: 15.5px;
    color: var(--black);
    flex-grow: 1;
    margin-bottom: 18px;
}
.newsletter-card__excerpt a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.newsletter-card__excerpt a:hover { color: var(--red); }
.newsletter-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 6px;
}
.newsletter-card__read {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 12px;
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.newsletter-card__read:hover { color: var(--red); }

/* ---------- Post/article view ---------- */
.article-header {
    max-width: 760px;
    margin: 56px auto 34px;
    padding: 0 24px;
    text-align: center;
}
.article-header .kicker { display: block; margin-bottom: 16px; }
.article-header h1 {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 18px;
}
.article-header__excerpt {
    font-family: var(--sans);
    font-size: 18px;
    color: var(--grey-4);
    margin-bottom: 22px;
}
.article-header__byline {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--grey-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.article-header__byline img { width: 32px; height: 32px; border-radius: 50%; }
.article-header__byline strong { color: var(--black); }

.article-feature-image {
    max-width: var(--content-width);
    margin: 0 auto 40px;
    padding: 0 24px;
}
.article-feature-image img { width: 100%; }

.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 60px;
    font-family: var(--serif-body);
    font-size: 19px;
    line-height: 1.75;
}
.article-content h2, .article-content h3 {
    font-family: var(--sans);
    font-weight: 800;
    margin-top: 2.2em;
}
.article-content h2 { font-size: 30px; }
.article-content h3 { font-size: 24px; }
.article-content a { color: var(--red); border-bottom: 1px solid var(--red); }
.article-content blockquote {
    margin: 2em 0;
    padding-left: 24px;
    border-left: 4px solid var(--red);
    font-style: italic;
    color: var(--grey-4);
}
.article-content figcaption {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--grey-3);
    text-align: center;
    margin-top: 8px;
}
.article-content hr { border: none; border-top: 1px solid var(--grey-2); margin: 2.5em 0; }
.article-content code {
    background: var(--grey-1);
    padding: 2px 6px;
    font-size: 0.85em;
}
.article-content pre {
    background: var(--black);
    color: var(--white);
    padding: 20px;
    overflow-x: auto;
}
.article-content .kg-width-wide {
    width: 100%;
    max-width: calc(var(--content-width) - 48px);
    margin-left: 50%;
    transform: translateX(-50%);
}
.article-content .kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
.article-content .kg-width-full img { width: 100%; }

/* ---------- Signup / subscribe band ---------- */
.subscribe-band {
    background: var(--grey-dark);
    color: var(--white);
    padding: 48px 0;
    margin-top: 20px;
    text-align: center;
}
.subscribe-band h2 {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 30px;
    margin: 0 0 10px;
}
.subscribe-band p {
    font-family: var(--sans);
    font-size: 15px;
    color: var(--grey-2);
    margin: 0 0 24px;
}
.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
}
.subscribe-form input[type="email"] {
    flex: 1;
    border: 2px solid var(--white);
    border-right: none;
    padding: 12px 16px;
    font-family: var(--sans);
    font-size: 14px;
    background: var(--white);
}
.subscribe-form button {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    padding: 12px 22px;
    cursor: pointer;
}
.subscribe-form button:hover { background: var(--white); color: var(--black); }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 36px 24px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-top: 1px solid var(--grey-2);
}
.pagination a:hover { color: var(--red); }
.pagination .page-number { display: none; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--black);
    color: var(--grey-2);
    margin-top: 60px;
}
.site-footer .wrap {
    padding: 46px 24px 30px;
}
.site-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--grey-4);
}
.site-footer__logo {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 22px;
    color: var(--white);
    text-transform: uppercase;
}
.site-footer__nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.site-footer__nav a:hover { color: var(--red); }
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    font-family: var(--sans);
    font-size: 11px;
    color: var(--grey-3);
}
.site-footer__bottom a:hover { color: var(--white); }

/* ---------- GhostContentAPI member/account bits ---------- */
.gh-notification {
    font-family: var(--sans);
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 12px;
    font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .newsletter-grid { grid-template-columns: repeat(2, 1fr); }
    .section-hero h1 { font-size: 28px; }
    .masthead__left { gap: 12px; }
    .masthead__logo { font-size: 22px; }
}

@media (max-width: 600px) {
    .masthead .wrap { grid-template-columns: auto auto; justify-content: space-between; height: auto; padding: 12px 24px; }
    .masthead__logo { grid-column: 1 / -1; order: 3; font-size: 22px; padding-top: 8px; }
    .newsletter-grid { grid-template-columns: 1fr; }
    .site-nav .wrap { gap: 16px; height: auto; padding: 10px 24px; }
    .article-header h1 { font-size: 30px; }
    .article-content { font-size: 17px; }
    .subscribe-form { flex-direction: column; }
    .subscribe-form input[type="email"] { border-right: 2px solid var(--white); margin-bottom: 10px; }
}
