/* Snowdon Parts — Ghost theme
   Pared-back Manifesto: heavy sans titles, serif body, black rules, no accent. */

:root {
    --ground: #F2EFE9;
    --ink: #111111;
    --muted: #5A564F;
    --placeholder: #D9D4CA;
    /* Ghost's Design settings can override these fonts (--gh-font-*) */
    --sans: var(--gh-font-heading, "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif);
    --serif: var(--gh-font-body, "Newsreader", Georgia, "Times New Roman", serif);
    --gutter: 20px;
    --page: 1200px;
    --measure: 680px;
}

@media (min-width: 760px) {
    :root { --gutter: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

.site {
    max-width: var(--page);
    margin: 0 auto;
    padding: 24px var(--gutter) 40px;
}

/* ---------- Shared type ---------- */

.kicker,
.section-label,
.topbar,
.article-meta,
.site-footer,
.subscribe label,
.subscribe legend {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.read-link {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

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

.topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ink);
}

.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.topbar-nav a { text-decoration: none; }
.topbar-nav a:hover { color: var(--muted); }

.topbar-nav .nav {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lang-toggle {
    display: inline-flex;
    gap: 6px;
    color: var(--muted);
}

.lang-toggle a { color: var(--muted); }
.lang-toggle a.is-current { color: var(--ink); font-weight: 800; }

.topbar-subscribe {
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.topbar-nav a.topbar-subscribe { text-decoration: underline; }

.wordmark {
    display: block;
    padding: 12px 0 10px;
    border-bottom: 3px solid var(--ink);
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(22px, 3vw, 36px);
    white-space: nowrap;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-decoration: none;
}

.wordmark img { max-height: 120px; width: auto; }

/* Inside an issue the masthead steps back so the story leads */
.post-template .wordmark,
.page-template .wordmark {
    font-size: clamp(20px, 2.4vw, 28px);
    padding: 10px 0 8px;
}

.post-template .wordmark img,
.page-template .wordmark img { max-height: 56px; }

/* ---------- Home ---------- */

.lead { padding: 36px 0 40px; }

.lead-body {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    align-items: flex-end;
}

.lead-title a,
.entry-title a { text-decoration: none; }
.lead-title a:hover,
.entry-title a:hover { color: var(--muted); }

.lead-text {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lead-title {
    margin: 0;
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(34px, 4.5vw, 60px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.lead-dek {
    margin: 0;
    max-width: 460px;
    font-size: clamp(19px, 2vw, 22px);
    line-height: 1.4;
    font-style: italic;
}

.lead-image {
    display: block;
    flex: 1 1 420px;
    min-width: 0;
}

.lead-image img {
    width: 100%;
    background: var(--placeholder);
}

/* On phones the image leads, as in the mockup */
@media (max-width: 899px) {
    .lead-image { order: -1; flex-basis: 100%; }
    .lead { padding-top: 32px; }
    .lead-body { gap: 20px; }
}

.archive {
    border-top: 3px solid var(--ink);
    padding-top: 10px;
}

/* Launch state: the archive only appears once there is a second issue */
.archive:not(:has(.entry)) { display: none; }

.entry {
    display: flex;
    gap: 24px 40px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px 0 32px;
    border-bottom: 1px solid var(--ink);
}

.entry:last-child { border-bottom: 0; }

.entry-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: var(--measure);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entry-text .kicker { color: var(--muted); }

.entry-title {
    margin: 0;
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.entry-dek {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    font-style: italic;
}

.entry-image {
    display: block;
    flex: 0 0 200px;
}

.entry-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--placeholder);
}

.entry-full { margin-top: 8px; max-width: var(--measure); }
.lead .entry-full { margin: 32px 0 0; }

.entry-actions { margin-top: 6px; }
.lead .entry-actions { margin-top: 24px; }

@media (max-width: 599px) {
    .entry { gap: 16px; padding: 22px 0 26px; }
    .entry-image { flex-basis: 88px; order: 2; }
}

.pagination {
    display: flex;
    justify-content: space-between;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 32px;
}

.pagination a { text-decoration: none; }

/* ---------- Article ---------- */

.article { padding-top: 36px; }

.article-header,
.article-image,
.article-content > * {
    max-width: var(--measure);
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    margin-bottom: 20px;
}

.article-title {
    margin: 0 0 20px;
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.article-dek {
    margin: 0 0 32px;
    font-size: clamp(19px, 2.2vw, 23px);
    line-height: 1.35;
    font-style: italic;
}

.article-image { margin-top: 0; margin-bottom: 40px; }
.article-image img { width: 100%; background: var(--placeholder); }

figcaption {
    padding-top: 8px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Content (Ghost editor output) ---------- */

.gh-content > * + * { margin-top: 1.1em; }
.gh-content > :first-child { margin-top: 0; }

.gh-content p { margin-bottom: 0; }

.gh-content h2,
.gh-content h3 {
    font-family: var(--sans);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.015em;
    line-height: 0.95;
    margin-top: 2em;
    margin-bottom: 0;
}

.gh-content h2 { font-size: 32px; }
.gh-content h3 { font-size: 22px; }

.gh-content a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.gh-content blockquote {
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 0 20px;
    border-left: 3px solid var(--ink);
    font-style: italic;
    font-size: 21px;
}

.gh-content hr {
    border: 0;
    border-top: 1px solid var(--ink);
    margin-top: 2.4em;
    margin-bottom: 2.4em;
}

.gh-content figure { margin-top: 2em; margin-bottom: 2em; }
.gh-content img { width: 100%; }

.gh-content ul,
.gh-content ol { padding-left: 1.2em; }

/* Required by Ghost's editor cards */
.gh-content .kg-width-wide {
    max-width: 1040px;
}

.gh-content .kg-width-full {
    max-width: none;
    width: calc(100% + (var(--gutter) * 2));
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
}

.gh-content .kg-width-full figcaption { padding-left: var(--gutter); }

/* ---------- Pages ---------- */

.page-article { padding-bottom: 48px; }

.error-page {
    padding: 64px 0 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- Subscribe ---------- */

.subscribe {
    margin-top: 56px;
    background: var(--ink);
    color: var(--ground);
    padding: 28px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    align-items: flex-end;
    justify-content: space-between;
}

.subscribe-title {
    margin: 0;
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.subscribe-form {
    flex: 0 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.subscribe-field { display: flex; flex-direction: column; gap: 8px; }

.subscribe-row { display: flex; flex-wrap: wrap; gap: 10px; }

.subscribe input[type="email"] {
    flex: 1 1 220px;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--ground);
    border-radius: 0;
    background: transparent;
    color: var(--ground);
    font-family: var(--serif);
    font-size: 17px;
}

.subscribe input[type="email"]::placeholder { color: #A8A39A; }

.subscribe button {
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.subscribe input:focus-visible,
.subscribe button:focus-visible {
    outline: 2px solid var(--ground);
    outline-offset: 2px;
}

.subscribe-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    border: 0;
}

.subscribe-langs legend { padding: 0 0 6px; width: 100%; }

.subscribe-langs label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--serif);
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    min-height: 44px;
}

.subscribe-langs input { width: 18px; height: 18px; accent-color: var(--ground); }

/* Form states — Ghost adds these classes during signup */
.button-loading,
.form-success,
.form-error:empty { display: none; }

.form-success,
.form-error { margin: 0; font-size: 16px; }

.subscribe-form.loading .button-label { display: none; }
.subscribe-form.loading .button-loading { display: inline; }
.subscribe-form.success .subscribe-field,
.subscribe-form.success .subscribe-langs { display: none; }
.subscribe-form.success .form-success { display: block; }

/* ---------- Footer ---------- */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 10px;
    border-top: 1px solid var(--ink);
    color: var(--muted);
}

.site-footer .nav {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a { text-decoration: none; }

/* ---------- Share ---------- */

.share { position: relative; display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.share-button,
.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.share-button {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding: 6px 0 2px;
    min-height: 32px;
}

.share-button:hover { color: var(--muted); }

.share-menu { display: inline-flex; gap: 14px; }
.share-menu[hidden] { display: none; }

.share-option {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--ink);
    padding: 7px 12px;
}

.share-option:hover { background: var(--ink); color: var(--ground); }

.article-actions {
    max-width: var(--measure);
    margin: 40px auto 0;
    padding-top: 14px;
    border-top: 1px solid var(--ink);
}

.site-footer .share-button { font-weight: 500; }

/* ---------- Members-only gate ---------- */

.gate {
    max-width: var(--measure);
    margin: 40px auto 0;
    padding: 28px 0 0;
    border-top: 3px solid var(--ink);
}

.gate-title {
    margin: 0 0 10px;
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.gate-note { margin: 0 0 22px; }

/* ---------- Join / sign in (About aside and gate) ---------- */

.join { display: flex; flex-direction: column; gap: 16px; }

.join-form { display: flex; flex-direction: column; gap: 10px; }
.join-form[hidden] { display: none; }

.join-label,
.join-langs legend {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.join-row { display: flex; flex-wrap: wrap; gap: 10px; }

.join input[type="email"] {
    flex: 1 1 200px;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
}

.join input[type="email"]::placeholder { color: #8C877E; }

.join button[type="submit"] {
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 0;
    background: var(--ink);
    color: var(--ground);
    font-family: var(--sans);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.join input:focus-visible,
.join button:focus-visible,
.share-button:focus-visible,
.link-button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.join-langs { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; border: 0; }
.join-langs legend { padding: 0 0 2px; width: 100%; }
.join-langs label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; }
.join-langs input { width: 18px; height: 18px; accent-color: var(--ink); }

.join-signin { margin: 0; font-size: 16px; }
.link-button { font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.join-form.loading .button-label { display: none; }
.join-form.loading .button-loading { display: inline; }
.join-form.success .join-row,
.join-form.success .join-label,
.join-form.success .join-langs { display: none; }
.join-form.success .form-success { display: block; }

/* ---------- About ---------- */

.about { padding-top: 36px; }

.about--with-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 48px 64px;
    align-items: start;
}

.about--with-aside .about-main .article-header,
.about--with-aside .about-main .article-image,
.about--with-aside .about-main .article-content > * { margin-left: 0; }

.about-aside {
    position: sticky;
    top: 24px;
    padding-top: 14px;
    border-top: 3px solid var(--ink);
}

.about-invite { margin: 0 0 22px; font-size: 18px; line-height: 1.5; }

@media (max-width: 899px) {
    .about--with-aside { display: block; }
    .about-aside { position: static; margin-top: 48px; }
}

/* ---------- Back from a signup confirmation ---------- */

.joined {
    background: var(--ink);
    color: var(--ground);
    padding: 22px var(--gutter);
    margin-bottom: 20px;
}

.joined[hidden], .joined [hidden] { display: none; }

.joined-title {
    margin: 0;
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.site-footer { align-items: center; }

.entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.entry-actions .read-link { align-self: center; }
.entry-actions .share-button,
.article-actions .share-button { font-size: 13px; padding: 0 0 2px; min-height: 0; }
.site-footer .share-button { font-size: 11px; }


/* ---------- Compact join band (Nov 8) ---------- */

.subscribe {
    padding: 14px var(--gutter);
    align-items: center;
    gap: 12px 32px;
}

.subscribe-title {
    font-size: clamp(15px, 1.6vw, 20px);
    line-height: 1;
}

.subscribe-form {
    flex: 0 1 640px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.subscribe-field { flex: 1 1 300px; }

.subscribe-field > label,
.subscribe-langs legend {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.subscribe input[type="email"],
.subscribe button { height: 40px; }

.subscribe input[type="email"] { font-size: 16px; }

.subscribe-langs { flex: 0 0 auto; gap: 0 16px; }
.subscribe-langs label { min-height: 40px; font-size: 15px; }
.subscribe-langs input { width: 16px; height: 16px; }

.subscribe-form .form-success,
.subscribe-form .form-error { flex-basis: 100%; }
.subscribe-row { flex-wrap: nowrap; }
.subscribe input[type="email"] { flex: 1 1 auto; }
.subscribe button { flex: 0 0 auto; }

/* ---------- Name + mark row ---------- */

.wordmark-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 3px solid var(--ink);
}

.wordmark-row .wordmark { border-bottom: 0; }

/* Sized to the capital height of the name */
.wordmark-mark {
    flex: 0 0 auto;
    width: clamp(18px, 2.1vw, 26px);
    height: auto;
    color: var(--ink);
}

.post-template .wordmark-mark,
.page-template .wordmark-mark { width: clamp(16px, 1.7vw, 20px); }

/* Phone header: links on the left edge with the name, Join on the right edge above the mark */
@media (max-width: 599px) {
    .topbar { padding-bottom: 14px; }
    .topbar-nav { width: 100%; }
    .topbar-subscribe { margin-left: auto; }
}

/* ---------- Scale (Nov 8): titles sit below the name ---------- */
.post-template .wordmark,
.page-template .wordmark { font-size: clamp(22px, 3vw, 36px); padding: 12px 0 10px; }
.post-template .wordmark-mark,
.page-template .wordmark-mark { width: clamp(18px, 2.1vw, 26px); }

.lead-title,
.article-title { font-size: clamp(20px, 2.5vw, 30px); line-height: 0.95; }
.entry-title { font-size: clamp(18px, 2vw, 24px); }
.gh-content h2 { font-size: 22px; }
.gh-content h3 { font-size: 18px; }
.gate-title { font-size: clamp(18px, 2vw, 22px); }
.joined-title { font-size: clamp(18px, 2vw, 22px); }
.lead-dek { font-size: clamp(17px, 1.6vw, 19px); }

/* ---------- Join band, slim (Nov 8): header-sized type, underlined Join ---------- */
.subscribe { padding: 10px var(--gutter); gap: 6px 28px; align-items: center; }
.subscribe-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
}
.subscribe-form { gap: 4px 20px; }
.subscribe input[type="email"] {
    height: 36px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid #8C877E;
    font-size: 15px;
}
.subscribe input[type="email"]:focus { border-bottom-color: var(--ground); outline: none; }
.subscribe button {
    height: 36px;
    padding: 0 2px;
    background: none;
    color: var(--ground);
    font-size: 11px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.subscribe-langs label { min-height: 36px; font-size: 13px; gap: 6px; }
.subscribe-langs input { width: 14px; height: 14px; }
.subscribe-form .form-success,
.subscribe-form .form-error { font-size: 13px; }

/* ---------- v0.2.6: Read / Share at the date's size, bold ---------- */
.read-link,
.entry-actions .share-button,
.article-actions .share-button { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }

/* ---------- v0.2.7: share menu buttons (Copy link, Link, Story) ---------- */
button.share-option { background: none; color: inherit; cursor: pointer; line-height: inherit; margin: 0; }
.share-option[hidden] { display: none; }


/* ---------- v0.3.0: Métro type — Inter Tight, medium weight, open spacing (after the STM's Univers signage) ---------- */
.wordmark { font-weight: 500 !important; letter-spacing: 0.14em !important; }
.lead-title, .entry-title, .article-title, .page-title, .gate-title, .joined-title, .subscribe-title { font-weight: 500 !important; letter-spacing: 0.08em !important; }
.kicker, .topbar, .read-link, .share-button, .share-option, .subscribe button, .site-footer, .article-meta, .section-label, .join-label, .join-langs legend, figcaption { letter-spacing: 0.14em !important; }
.subscribe-title { font-weight: 600 !important; letter-spacing: 0.14em !important; }
.read-link, .share-button, .subscribe button { font-weight: 600 !important; }

/* About-page Join: underline field and underlined Join, as in the band */
.join input[type="email"] { height: 44px !important; padding: 0 2px !important; border: 0 !important; border-bottom: 1px solid var(--ink) !important; }
.join button[type="submit"] { height: 44px !important; padding: 0 2px !important; background: none !important; color: var(--ink) !important; font-weight: 600 !important; font-size: 11px !important; letter-spacing: 0.14em !important; text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 4px !important; }
.join-row { align-items: flex-end !important; gap: 20px !important; }


/* ---------- v0.4.0: the homepage is one feed ---------- */
/* Notes show in full; pieces tagged #read show title, opening line and Read.
   Images keep their own shape: never cropped. */
.feed { max-width: 760px; margin: 0 auto; padding-top: 48px; }
.feed-item { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--ink); }
.feed-item:last-of-type { border-bottom: 0; margin-bottom: 0; }
.feed-image { display: block; margin: 0 0 20px; }
/* Full column width; a tall image is capped in height and sits left, uncropped */
.feed-image img {
    width: 100%;
    height: auto;
    max-height: min(85vh, 900px);
    object-fit: contain;
    object-position: left top;
}
.feed-text { display: flex; flex-direction: column; gap: 14px; }
.feed-text .kicker { color: var(--muted); }
.feed-title {
    margin: 0;
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 0.95;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.feed-title a { text-decoration: none; }
.feed-title a:hover { color: var(--muted); }
.feed-dek { margin: 0; font-style: italic; }
.feed-full > * + * { margin-top: 1.1em; }
.feed-full p { margin-top: 0; margin-bottom: 0; }
.feed .entry-actions { margin-top: 4px; }
.feed .pagination { padding-top: 40px; }

/* Phones: every image on the site runs to the screen edge */
@media (max-width: 599px) {
    .feed { padding-top: 28px; }
    .feed-item { padding-bottom: 36px; margin-bottom: 28px; }
    .feed-image { margin: 0 calc(var(--gutter) * -1) 16px; }
    .feed-image img { width: 100%; max-height: none; }
    .feed-text { gap: 12px; }
    .article-image { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); max-width: none; }
    .article-image figcaption,
    .gh-content .kg-image-card figcaption,
    .gh-content .kg-gallery-card figcaption { padding-left: var(--gutter); padding-right: var(--gutter); }
    .gh-content .kg-image-card,
    .gh-content .kg-gallery-card {
        width: calc(100% + (var(--gutter) * 2));
        max-width: none;
        margin-left: calc(var(--gutter) * -1);
        margin-right: calc(var(--gutter) * -1);
    }
    .gh-content .kg-image-card img { width: 100%; }
}


/* ---------- v0.4.2: feature image credit in the feed ---------- */
.feed-image a { display: block; }
.feed-image img { display: block; }
.feed-image figcaption { padding-top: 10px; }
@media (max-width: 599px) {
    .feed-image figcaption { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* ---------- v0.4.3: keep the space between paragraphs (stanzas) in feed notes ---------- */
.feed-full p { margin-top: 0; margin-bottom: 0; }
.feed-full > * + *, .feed-full > p + p { margin-top: 1.1em; }

/* ---------- v0.4.4: phones keep images inside the page margins (edge-to-edge reverted) ---------- */
@media (max-width: 599px) {
    .feed-image { margin: 0 0 16px; }
    .feed-image img { width: 100%; max-width: 100%; }
    .feed-image figcaption { padding-left: 0; padding-right: 0; }
    .article-image { margin-left: 0; margin-right: 0; max-width: 100%; }
    .article-image figcaption,
    .gh-content .kg-image-card figcaption,
    .gh-content .kg-gallery-card figcaption { padding-left: 0; padding-right: 0; }
    .gh-content .kg-image-card,
    .gh-content .kg-gallery-card { width: auto; max-width: 100%; margin-left: 0; margin-right: 0; }
}
