
:root {
    --paper: #f5f2eb;
    --paper-2: #eeeae1;
    --ink: #292923;
    --muted: #6e6d64;
    --olive: #3f4a3b;
    --line: rgba(41,41,35,.16);
    --avenir: Avenir, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
    --playfair: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #e8e5dc;
    color: var(--ink);
    font-family: var(--avenir);
    font-size: 16px;
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-shell {
    width: min(100% - 32px, 1488px);
    margin: 8px auto 0;
    background: var(--paper);
    min-height: calc(100vh - 8px);
}

.site-header {
    min-height: 122px;
    padding: 36px 60px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand { display: inline-flex; flex-direction: column; gap: 2px; }
.brand-name {
    font-family: cursive;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -1.5px;
}
.brand-slogan {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .23em;
    margin-left: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 42px;
    font-family: var(--playfair);
    font-size: 16px;
}
.main-nav > a {
    padding: 8px 0;
    position: relative;
}
.main-nav > a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}
.main-nav > a:hover::after,
.main-nav > a.is-active::after { transform: scaleX(1); }

.search-toggle {
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
}
.search-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.search-panel {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 24px 60px;
}
.search-form label {
    display: block;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.search-row { display: flex; gap: 10px; }
.search-row input {
    width: min(620px, 100%);
    border: 1px solid var(--line);
    background: #fffdf8;
    padding: 13px 15px;
    outline: none;
}
.search-row input:focus { border-color: var(--ink); }
.search-row button {
    border: 0;
    background: var(--olive);
    color: white;
    padding: 0 22px;
    cursor: pointer;
}

.hero {
    min-height: 540px;
    margin: 0;
    border-radius: 0 30px 30px 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 44% 56%;
    background: #eeeae1;
}
.hero-copy {
    padding: 66px 56px 70px 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.eyebrow, .section-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .19em;
    margin: 0 0 18px;
}
.hero h1, .archive-header h1, .single-post-header h1, .page-header h1, .error-page h1 {
    font-family: var(--playfair);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .99;
}
.hero h1 {
    font-size: clamp(48px, 5.1vw, 78px);
    margin: 0 0 30px;
}
.hero-intro {
    max-width: 430px;
    font-size: 18px;
    line-height: 1.55;
    margin: 0 0 34px;
}
.button {
    width: fit-content;
    background: var(--olive);
    color: white;
    padding: 15px 25px;
    display: inline-flex;
    gap: 34px;
    align-items: center;
    transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #30392e; }

.hero-image {
    min-height: 540px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--paper) 0%, rgba(245,242,235,.72) 9%, rgba(245,242,235,0) 35%);
}
.hero-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e5e0d5, #cfc8b8);
}
.placeholder-paper {
    position: absolute;
    width: 58%;
    height: 55%;
    right: 12%;
    bottom: 8%;
    background: #faf8f1;
    transform: rotate(-5deg);
    box-shadow: 0 15px 45px rgba(0,0,0,.13);
}
.placeholder-pen {
    position: absolute;
    width: 180px;
    height: 6px;
    right: 27%;
    bottom: 48%;
    background: #282923;
    transform: rotate(-62deg);
    border-radius: 10px;
}

.home-intro, .home-latest, .archive-grid, .single-post, .page-content, .search-page, .error-page {
    max-width: 1180px;
    margin: 0 auto;
}
.home-intro { padding: 110px 20px 80px; }
.home-intro h2 {
    font-family: var(--playfair);
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.05;
    font-weight: 500;
    margin: 0 0 24px;
    letter-spacing: -.04em;
}
.home-intro > p:last-child { max-width: 560px; color: var(--muted); font-size: 18px; }

.home-latest { padding: 40px 20px 120px; }
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 30px;
}
.section-heading a { font-size: 14px; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}
.post-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ddd8cc;
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.post-card:hover img { transform: scale(1.025); }
.post-card-body { padding-top: 18px; }
.post-card-body time, .single-post-header time {
    font-size: 12px;
    color: var(--muted);
}
.post-card h2, .post-card h3 {
    font-family: var(--playfair);
    font-weight: 500;
    font-size: 28px;
    line-height: 1.15;
    margin: 7px 0 10px;
}
.post-card p { margin: 0; color: var(--muted); }

.archive-header {
    padding: 90px 20px 65px;
    border-bottom: 1px solid var(--line);
}
.archive-header h1 { font-size: clamp(48px, 7vw, 92px); margin: 0; max-width: 900px; }
.archive-header > p:last-child { max-width: 650px; color: var(--muted); font-size: 18px; }
.archive-grid { padding: 60px 20px 120px; }

.single-post { padding: 90px 20px 120px; }
.single-post-header { max-width: 900px; margin: 0 auto 50px; text-align: center; }
.single-post-header h1 { font-size: clamp(52px, 7vw, 92px); margin: 0 0 20px; }
.single-post-image { margin: 0 0 65px; }
.single-post-image img { width: 100%; max-height: 700px; object-fit: cover; }
.post-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 18px;
}
.post-content h2, .post-content h3 {
    font-family: var(--playfair);
    font-weight: 500;
    line-height: 1.2;
}
.post-content img { max-width: 100%; height: auto; }
.post-content blockquote {
    margin: 42px 0;
    padding-left: 24px;
    border-left: 2px solid var(--olive);
    font-family: var(--playfair);
    font-size: 28px;
}

.page-content, .search-page, .error-page { padding: 90px 20px 120px; }
.page-header { margin-bottom: 50px; }
.page-header h1, .error-page h1 { font-size: clamp(50px, 7vw, 90px); margin: 0; }
.search-page-form { max-width: 760px; margin-top: 50px; }
.search-note { color: var(--muted); margin-top: 30px; }

.pagination {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 100px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 25px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 35px 60px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    letter-spacing: .12em;
}

@media (max-width: 1050px) {
    .site-header { padding-inline: 35px; }
    .main-nav { gap: 22px; }
    .hero-copy { padding-left: 45px; }
}

@media (max-width: 820px) {
    .site-shell { width: 100%; margin: 0; }
    .site-header { align-items: flex-start; padding: 25px 22px; }
    .brand-name { font-size: 30px; }
    .main-nav { display: none; }
    .hero { grid-template-columns: 1fr; border-radius: 0 0 24px 24px; }
    .hero-copy { padding: 55px 28px 45px; }
    .hero-image { min-height: 330px; order: -1; }
    .hero-image::before { background: linear-gradient(180deg, var(--paper) 0%, rgba(245,242,235,0) 45%); }
    .post-grid { grid-template-columns: 1fr; }
    .home-intro, .home-latest { padding-left: 28px; padding-right: 28px; }
    .archive-header, .archive-grid, .single-post, .page-content, .search-page { padding-left: 28px; padding-right: 28px; }
    .site-footer { padding: 28px; flex-direction: column; }
}

/* Ghost navigation output */
.main-nav .nav {
    display: flex;
    align-items: center;
    gap: 42px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav .nav li { margin: 0; padding: 0; }
.main-nav .nav a {
    display: block;
    padding: 8px 0;
    position: relative;
}
.main-nav .nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}
.main-nav .nav a:hover::after,
.main-nav .nav .nav-current a::after { transform: scaleX(1); }

@media (max-width: 1050px) {
    .main-nav .nav { gap: 22px; }
}
@media (max-width: 820px) {
    .main-nav .nav { display: none; }
}


/* Ghost editor card width classes required by GScan.
   These are intentionally neutral: Ghost content cards can use them
   without breaking the Momentarium layout. */
.kg-width-wide {
    width: min(100%, 1100px);
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-wide img,
.kg-width-full img {
    max-width: 100%;
    height: auto;
}

/* Momentarium 2.1.4: fixed editorial navigation */
.main-nav {
    white-space: nowrap;
}
.main-nav > a {
    font-family: var(--playfair);
}
