/* ==========================================================================
   Mary-Ellen Simper — theme styles
   Contents
   1. Design tokens (colours, fonts, spacing)
   2. Base
   3. Shared pieces (buttons, dots, section titles)
   4. Header & navigation
   5. Homepage sections
   6. Posts & pages
   7. Ghost editor cards
   8. Footer
   9. Small screens
   ========================================================================== */

/* 1. Design tokens
   ------------------------------------------------------------------------- */
:root {
    --color-bg: #fffcf8;
    --color-ink: #141212;
    --color-text: #1c1a1a;
    --color-muted: #6b6662;
    --color-dot: #2a2534;
    --color-line: #e0ddd9;
    --color-line-card: #d4d1ce;
    --color-line-dark: #3a3838;
    --color-placeholder: #bdb9b5;
    --color-on-dark: #ffffff;

    --font-display: "Times New Roman", Tinos, Times, "Liberation Serif", serif;
    --font-serif: Lora, Georgia, serif;
    --font-sans: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;

    --gutter: clamp(20px, 3.7vw, 52px);
    --shadow-soft: 0 12px 28px -10px rgba(20, 18, 18, 0.16);
    --content-width: 760px;
}

/* 2. Base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
}

h1, h2, h3, h4, p, figure, blockquote {
    margin: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

.container {
    width: min(1266px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.container--medium {
    width: min(957px, 100% - 2 * var(--gutter));
}

/* 3. Shared pieces
   ------------------------------------------------------------------------- */
.dot {
    display: inline-block;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-dot);
}

.dot--light {
    background: var(--color-bg);
}

/* Dot above a dark rule, used for Newsletter and Quote */
.marker {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--color-line-dark);
}

.marker .dot {
    display: block;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 19px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.eyebrow a {
    text-decoration: none;
}

/* Section headings: all share the large italic "Newsletter" style */
.section-title,
.newsletter__title,
.about__title,
.feature-page__title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4.6vw, 66px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.12;
    color: var(--color-ink);
}

.section-title--ruled {
    width: fit-content;
    min-width: min(503px, 100%);
    max-width: 100%;
    padding-right: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-line);
}

.section-title--full {
    width: auto;
    padding-right: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 50px;
    border: 1px solid var(--color-line-dark);
    background: transparent;
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    background: var(--color-ink);
    color: var(--color-bg);
}

.btn--light {
    border: 2px solid var(--color-on-dark);
    color: var(--color-on-dark);
    letter-spacing: 0.1em;
    box-shadow: none;
}

.btn--light:hover,
.btn--light:focus-visible {
    background: var(--color-on-dark);
    color: var(--color-ink);
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn__loading {
    display: none;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* 4. Header & navigation
   ------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--color-bg);
    color: var(--color-ink);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* On the homepage the header starts transparent over the photo... */
.site-header--overlay {
    position: fixed;
    left: 0;
    right: 0;
    background: transparent;
    color: var(--color-on-dark);
}

/* ...and turns cream once you scroll (main.js adds .is-scrolled) */
.site-header.is-scrolled {
    background: var(--color-bg);
    color: var(--color-ink);
    box-shadow: 0 1px 0 var(--color-line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 77px 30px 42px;
    transition: padding 0.3s ease;
}

.site-header.is-scrolled .site-header__inner {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Leave room for the sticky header when jumping to a section, e.g. #about */
[id] {
    scroll-margin-top: 90px;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 31px;
    font-style: italic;
    letter-spacing: 0.06em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

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

.site-nav .nav a {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.9;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.site-nav .nav a:hover,
.site-nav .nav-current a {
    opacity: 1;
    border-bottom-color: currentColor;
}

.nav-toggle {
    display: none;
}

/* 5. Homepage sections
   ------------------------------------------------------------------------- */

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(560px, 100vh, 900px);
    padding: 140px var(--gutter) 90px 22.8vw;
    overflow: hidden;
    background: #3b3633;
    color: var(--color-on-dark);
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 24, 28, 0.55);
}

.hero__inner {
    position: relative;
    max-width: 780px;
}

.hero .eyebrow {
    width: min(430px, 100%);
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.hero__title {
    margin-top: 30px;
    font-family: var(--font-serif);
    font-size: clamp(38px, 4.9vw, 72px);
    font-weight: 400;
    line-height: 1.15;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 6px 22px rgba(0, 0, 0, 0.4);
}

.hero__title em {
    font-style: italic;
}

.hero .btn {
    margin-top: 40px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28), inset 0 0 12px rgba(0, 0, 0, 0.12);
}

.hero .btn:hover,
.hero .btn:focus-visible {
    text-shadow: none;
}

/* A faint shadow keeps the small white text readable on lighter photos */
.hero .eyebrow,
.site-header--overlay:not(.is-scrolled) .site-logo,
.site-header--overlay:not(.is-scrolled) .site-nav .nav a {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
    padding-block: clamp(70px, 8.8vw, 120px);
}

/* Recent writing */
.recent {
    padding-bottom: clamp(60px, 7vw, 100px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 64px;
}

.card {
    display: flex;
    border-left: 1px solid var(--color-line-card);
}

.card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 20px 0 21px;
    text-decoration: none;
}

.card__title {
    font-family: var(--font-serif);
    font-size: clamp(21px, 1.95vw, 27px);
    font-weight: 400;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: var(--color-ink);
}

.card__excerpt {
    margin-top: 24px;
    font-size: 15.5px;
    line-height: 1.26;
}

.card__media {
    margin-bottom: 26px;
}

.card__media img {
    width: 100%;
    aspect-ratio: 388 / 225;
    object-fit: cover;
}

.card__link:hover .card__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

/* Newsletter */
.newsletter__inner {
    width: min(633px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.newsletter__title {
    margin-top: 28px;
}

.newsletter__intro {
    max-width: 520px;
    margin-top: 22px;
    font-size: 19px;
    line-height: 1.27;
}

.newsletter__ps {
    margin-top: 36px;
    font-size: 15px;
}

.newsletter__form {
    margin-top: 48px;
}

.newsletter__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 22px;
}

.field {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    border: 1px solid var(--color-line-dark);
    border-radius: 0;
    background: transparent;
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 17px;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-soft);
    -webkit-appearance: none;
    appearance: none;
}

.field::placeholder {
    color: var(--color-placeholder);
    letter-spacing: 0.15em;
}

.field:focus {
    outline: none;
    border-color: var(--color-ink);
    box-shadow: 0 0 0 1px var(--color-ink);
}

.form-message {
    display: none;
    margin-top: 16px;
    font-size: 15px;
}

/* Ghost adds these classes to the form while it works */
.newsletter__form.loading .btn__label { display: none; }
.newsletter__form.loading .btn__loading { display: inline; }
.newsletter__form.success .newsletter__fields,
.newsletter__form.success .btn { display: none; }
.newsletter__form.success .form-message--success { display: block; margin-top: 0; }
.newsletter__form.error .form-message--error { display: block; }

.newsletter__subscribed {
    margin-top: 40px;
    font-size: 17px;
}

.newsletter__signoff {
    margin-top: 34px;
    text-align: right;
    font-family: var(--font-display);
    font-size: 19px;
    font-style: italic;
    letter-spacing: 0.08em;
}

/* Current projects */
.projects .section-title {
    padding-bottom: 10px;
}

.project-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 41px;
    row-gap: 64px;
    margin-top: 27px;
}

.project-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 60px;
    left: 50%;
    width: 1px;
    background: var(--color-line);
}

.project-grid:has(.project:only-child)::before {
    display: none;
}

.project__link {
    display: block;
    text-decoration: none;
}

.project__media img {
    width: 100%;
    aspect-ratio: 458 / 333;
    object-fit: cover;
}

.project__title {
    margin-top: 46px;
    font-family: var(--font-display);
    font-size: clamp(26px, 2.4vw, 33px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-ink);
}

.project__excerpt {
    margin-top: 8px;
    font-size: 19px;
    line-height: 1.27;
}

.project__link:hover .project__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

/* Quote */
.quote__inner {
    width: min(795px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.quote__text {
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.2vw, 44px);
    font-style: italic;
    line-height: 1.17;
    color: var(--color-ink);
}

.quote__text p::before { content: "\201C"; }
.quote__text p::after { content: "\201D"; }

.quote__source {
    margin-top: 22px;
    padding-left: 4px;
    font-size: 17px;
}

/* About */
.about {
    padding-top: clamp(90px, 13vw, 180px);
    padding-bottom: clamp(60px, 6vw, 90px);
}

.about__inner {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 623px);
    justify-content: space-between;
    align-items: start;
    width: min(1216px, 100% - 2 * var(--gutter));
    margin-inline: auto;
    column-gap: 72px;
}

.about__text {
    padding-top: 20px;
}



.about__subtitle {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 22px;
}

.about__content {
    margin-top: 26px;
    font-size: 17.5px;
    line-height: 1.26;
}

.about__content p + p {
    margin-top: 22px;
}

.about__content strong {
    font-weight: 600;
}

.about .btn {
    margin-top: 48px;
    padding-inline: 50px;
}

.about__media img {
    width: 100%;
    aspect-ratio: 623 / 667;
    object-fit: cover;
}

/* 6. Posts & pages
   ------------------------------------------------------------------------- */
.listing .card-grid {
    row-gap: 72px;
}

.article {
    padding-block: clamp(48px, 7vw, 96px);
}

.article__header {
    width: min(var(--content-width), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.article__header .eyebrow {
    margin-bottom: 28px;
    font-size: 13px;
    gap: 14px;
}

.article__header .eyebrow .dot {
    width: 24px;
    height: 24px;
}

.article__title {
    font-family: var(--font-display);
    font-size: clamp(38px, 4.4vw, 60px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-ink);
}

.article__excerpt {
    margin-top: 20px;
    font-family: var(--font-serif);
    font-size: 21px;
    line-height: 1.45;
    color: var(--color-muted);
}

.article__meta {
    margin-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-line);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.article__image {
    width: min(var(--content-width), 100% - 2 * var(--gutter));
    margin: 0 auto 44px;
}

.article__image img {
    width: 100%;
}

/* On pages the image comes after the title */
.article__header + .article__image {
    margin-top: 48px;
}

.article__image figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--color-muted);
    text-align: center;
}

/* Article body: Ghost's content layout with room for wide and full-width cards */
.gh-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, 120px)
        [main-start] min(var(--content-width), 100% - 2 * var(--gutter))
        [main-end] minmax(0, 120px)
        [wide-end] minmax(var(--gutter), 1fr)
        [full-end];
    margin-top: 48px;
    font-size: 18px;
    line-height: 1.7;
}

.gh-content > * {
    grid-column: main-start / main-end;
}

.gh-content > * + * {
    margin-top: 1.4em;
}

.gh-content > .kg-width-wide {
    grid-column: wide-start / wide-end;
}

.gh-content > .kg-width-full {
    grid-column: full-start / full-end;
}

.gh-content > .kg-width-full img {
    width: 100%;
}

.gh-content h2,
.gh-content h3 {
    margin-top: 1.8em;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-ink);
}

.gh-content h2 { font-size: 34px; }
.gh-content h3 { font-size: 26px; }

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

.gh-content blockquote:not([class]) {
    padding-left: 24px;
    border-left: 1px solid var(--color-line-dark);
    font-family: var(--font-display);
    font-size: 24px;
    font-style: italic;
    line-height: 1.4;
}

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

.gh-content hr {
    border: 0;
    border-top: 1px solid var(--color-line);
}

.gh-content figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--color-muted);
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 72px;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pagination a {
    text-decoration: none;
}

/* 7. Ghost editor cards (Ghost loads the rest of the card styles itself)
   ------------------------------------------------------------------------- */
.kg-width-wide,
.kg-width-full {
    position: relative;
}

.kg-image {
    margin-inline: auto;
}

/* 8. Footer
   ------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--color-line);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 32px;
    width: min(1266px, 100% - 2 * var(--gutter));
    margin-inline: auto;
    padding-block: 34px 40px;
}

.site-footer__text {
    font-family: var(--font-display);
    font-size: 19px;
    font-style: italic;
    letter-spacing: 0.04em;
}

.site-footer__meta {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.site-footer__meta a {
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.site-footer__sep {
    margin-inline: 8px;
}

/* 9. Small screens
   ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .site-header__inner {
        padding: 32px var(--gutter) 24px;
    }

    .site-nav .nav {
        gap: 26px;
    }

    .hero {
        padding-left: 12vw;
    }

    .about__inner {
        margin-inline: auto;
        column-gap: 48px;
    }
}

@media (max-width: 900px) {
    /* Menu becomes a button that opens a full-screen panel */
    .nav-toggle {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        width: 44px;
        height: 44px;
        margin-right: -10px;
        padding: 10px;
        border: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

    .nav-toggle__bar {
        display: block;
        width: 100%;
        height: 1px;
        background: currentColor;
        transition: transform 0.25s ease;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-bg);
        color: var(--color-ink);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s;
    }

    .site-nav .nav {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .site-nav .nav a {
        font-size: 17px;
    }

    .menu-open {
        overflow: hidden;
    }

    .menu-open .site-nav {
        opacity: 1;
        visibility: visible;
    }

    .menu-open .site-header {
        color: var(--color-ink);
    }

    .menu-open .site-logo {
        position: relative;
        z-index: 2;
    }

    .menu-open .nav-toggle__bar:nth-child(2) {
        transform: translateY(4.5px) rotate(45deg);
    }

    .menu-open .nav-toggle__bar:nth-child(3) {
        transform: translateY(-4.5px) rotate(-45deg);
    }
}

@media (max-width: 800px) {
    body {
        font-size: 16px;
    }

    .site-logo {
        font-size: 24px;
    }

    .hero {
        align-items: flex-start;
        min-height: 0;
        padding: 148px var(--gutter) 100px;
    }

    .hero__image {
        object-position: 70% center;
    }

    .eyebrow {
        font-size: 12px;
        letter-spacing: 0.26em;
        gap: 14px;
    }

    .hero .dot {
        width: 28px;
        height: 28px;
    }

    .hero .btn {
        margin-top: 32px;
    }

    .btn {
        font-size: 15px;
        padding-inline: 36px;
    }

    /* Writing cards stack, with the line moving to the top */
    .card-grid {
        grid-template-columns: 1fr;
        row-gap: 48px;
        margin-top: 28px;
    }

    .card:first-child .card__link {
        padding-top: 0;
    }

    .card {
        border-left: 0;
        border-top: 1px solid var(--color-line-card);
    }

    .card:first-child {
        border-top: 0;
    }

    .card__link {
        padding: 20px 0 0;
    }

    .card__excerpt {
        margin-top: 14px;
    }

    .card__media {
        margin-bottom: 20px;
    }

    .newsletter__intro {
        font-size: 17px;
    }

    .newsletter__fields {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .newsletter__signoff {
        font-size: 17px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-grid::before {
        display: none;
    }

    .project + .project {
        padding-top: 48px;
        border-top: 1px solid var(--color-line);
    }

    .project__title {
        margin-top: 24px;
    }

    .project__excerpt {
        font-size: 17px;
    }

    /* About: photo first, then text */
    .about__inner {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }

    .about__media {
        order: -1;
    }

    .about__media img {
        aspect-ratio: 4 / 4.3;
    }

    .about__text {
        padding-top: 0;
    }

    .about__content {
        font-size: 16px;
        line-height: 1.4;
    }

    .about .btn {
        margin-top: 36px;
    }

    .gh-content {
        font-size: 17px;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* No text shadow inside the open mobile menu */
.menu-open .site-header .site-logo,
.menu-open .site-header .site-nav .nav a {
    text-shadow: none;
}

/* Buttons added in the Ghost editor (the "Button" card) match the theme's outline buttons */
.gh-content .kg-button-card {
    justify-content: flex-start;
}

.gh-content .kg-button-card {
    display: flex;
}

.gh-content .kg-button-card a.kg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: auto;
    min-height: 50px;
    padding: 0 50px;
    border: 1px solid var(--color-line-dark);
    border-radius: 0;
    background: transparent;
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: var(--shadow-soft);
}

.gh-content .kg-button-card a.kg-btn:hover {
    background: var(--color-ink);
    color: var(--color-bg);
    opacity: 1;
}

.gh-content .kg-button-card.kg-align-center {
    justify-content: center;
}

/* Simple feature pages (Contact, text under the Newsletter page): same shape as the Newsletter section */
.feature-page__inner {
    width: min(633px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.feature-page__title {
    margin-top: 28px;
}

.feature-page__intro {
    margin-top: 22px;
    font-size: 19px;
    line-height: 1.35;
}

.feature-page__content {
    display: block;
    margin-top: 28px;
    font-size: 17px;
    line-height: 1.55;
}

.feature-page__content > * + * {
    margin-top: 1.1em;
}

.feature-page__content .kg-button-card {
    margin-top: 40px;
}

.feature-page--after {
    padding-top: 0;
}

/* Projects page */
.projects__intro {
    display: block;
    max-width: 640px;
    margin-top: 24px;
    font-size: 17px;
}

.projects--page .project-grid {
    margin-top: 48px;
}

@media (max-width: 800px) {
    .feature-page__intro {
        font-size: 17px;
    }
}

/* Extra text on the Newsletter page, under the intro */
.newsletter__extra {
    max-width: 560px;
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.5;
}

.newsletter__extra > * + * {
    margin-top: 1em;
}

.newsletter__extra p {
    margin: 0;
}

.newsletter__extra > * + * {
    margin-top: 1em;
}
