/* TheGhettoGatsby — "Field Notes" (dark)
   Espresso night, amber lamp light, a green cloth notebook.
   Accent and notebook colors come from Settings → Design & branding → Theme. */

:root {
    --amber: #D19A4E;
    --notebook: #2F4A3A;
    --notebook-dark: color-mix(in srgb, var(--notebook) 72%, #000000);
    --notebook-strap: color-mix(in srgb, var(--notebook) 55%, #000000);
    --cover-text: #E9DFC9;

    --ink-0: #120F0C;
    --ink: #17130F;
    --ink-1: #1C1713;
    --ink-2: #201A15;
    --ink-3: #2A241F;
    --paper: #EDE3D4;
    --paper-2: #DCCFBD;
    --muted: #B3A594;
    --muted-2: #A8998A;
    --line: rgba(237, 227, 212, 0.10);
    --line-2: rgba(237, 227, 212, 0.16);

    --display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --label: 'Oswald', 'Arial Narrow', 'Helvetica Neue', sans-serif;

    --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Base ---------- */

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

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

body {
    margin: 0;
    background: var(--ink) url(../images/grain.png);
    color: var(--paper);
    font-family: var(--body);
    font-size: 19px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--paper); transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

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

.gg-site { position: relative; overflow-x: clip; }
.gg-glow {
    position: absolute; top: -200px; left: 50%; z-index: 0;
    width: min(1000px, 170vw); height: 760px; transform: translateX(-50%);
    background: radial-gradient(circle at 50% 40%, rgba(209,154,78,0.18) 0%, rgba(209,154,78,0.06) 38%, rgba(209,154,78,0) 66%);
    pointer-events: none;
}
.gg-header, .gg-main, .gg-footer { position: relative; z-index: 1; }

.gg-wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
.gg-wrap-mid { max-width: 860px; }
.gg-wrap-narrow { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); }

.gg-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.gg-skip {
    position: absolute; left: 12px; top: -60px; z-index: 20; padding: 12px 18px;
    background: var(--amber); color: var(--ink); text-decoration: none;
    font-family: var(--label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
}
.gg-skip:focus { top: 12px; color: var(--ink); }

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

.gg-h2 {
    margin: 0; font-family: var(--display); font-weight: 400;
    font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; text-wrap: balance;
}
.gg-lede { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.gg-label {
    margin: 0; font-family: var(--label); font-size: 12px; font-weight: 400;
    letter-spacing: .2em; text-transform: uppercase; color: var(--amber);
}
.gg-label a { color: inherit; text-decoration: none; }
.gg-label a:hover { color: var(--paper); }

.gg-meta {
    margin: 0; font-family: var(--label); font-size: 12px;
    letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2);
}

.gg-label-link {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0;
    font-family: var(--label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--amber); text-decoration: none;
}
.gg-label-link:hover { color: var(--paper); }
.gg-label-link .gg-icon { transition: transform .15s ease; }
.gg-label-link:hover .gg-icon { transform: translateX(3px); }

.gg-icon { width: 16px; height: 16px; flex: 0 0 auto; }

.gg-signature { margin: 0; font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1.2; color: var(--amber); }

.gg-btn-outline {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 22px 13px; border: 1px solid var(--amber); color: var(--amber); text-decoration: none;
    font-family: var(--label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
}
.gg-btn-outline:hover { background: var(--amber); color: var(--ink); }

/* ---------- Header ---------- */

.gg-header { border-bottom: 1px solid var(--line); }
.gg-header-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0 28px; min-height: 64px; padding-block: 10px;
}
.gg-wordmark {
    padding: 8px 0; font-family: var(--display); font-size: 22px; line-height: 1.1;
    white-space: nowrap; text-decoration: none;
}
.gg-menu-btn {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
    padding: 0; border: 0; background: none; color: var(--paper); cursor: pointer;
}
.gg-nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 8px 0 16px; font-family: var(--label); font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
}
.gg-header.is-open .gg-nav { display: flex; }
.gg-nav-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.gg-nav-link { display: inline-block; padding: 12px 0; text-decoration: none; }
.gg-nav-link.is-current { color: var(--amber); }
.gg-nav-cta {
    display: inline-block; margin-top: 8px; padding: 13px 20px 11px;
    background: var(--amber); color: var(--ink); text-decoration: none; font-weight: 500;
}
.gg-nav-cta:hover { color: var(--ink); filter: brightness(1.08); }

@media (min-width: 760px) {
    .gg-menu-btn { display: none; }
    .gg-nav {
        display: flex; flex-basis: auto; flex-direction: row; align-items: center; gap: 28px;
        padding: 0; font-size: 13px;
    }
    .gg-nav-list { flex-direction: row; gap: 28px; }
    .gg-nav-cta { margin-top: 0; }
}

/* ---------- Hero: notebook cover + side column ---------- */

.gg-hero { padding-block: 32px 8px; }
.gg-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }

.gg-cover {
    position: relative; min-height: 470px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    padding: 30px 48px 30px 28px; border-radius: 4px 16px 16px 4px;
    background-color: var(--notebook);
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 5px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 5px);
    box-shadow: inset 6px 0 0 var(--notebook-dark), 0 34px 60px -22px rgba(0,0,0,0.95), 0 0 0 1px rgba(237,227,212,0.06);
    color: var(--cover-text);
}
.gg-cover-strap {
    position: absolute; top: 0; bottom: 0; right: 20px; width: 9px;
    background: var(--notebook-strap); box-shadow: 1px 0 0 rgba(255,255,255,0.06);
}
.gg-cover-label {
    align-self: flex-start; margin: 0; padding: 6px 10px 5px; border: 1px solid rgba(233,223,201,0.55);
    font-family: var(--label); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}
.gg-cover-title-wrap { display: flex; flex-direction: column; gap: 16px; }
.gg-cover { container-type: inline-size; }
.gg-cover-title {
    margin: 0; font-family: var(--display); font-weight: 400;
    font-size: clamp(28px, 8vw, 34px);
    font-size: clamp(28px, calc(11cqi - 6px), 54px);
    line-height: 1; white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0,0,0,0.4), 0 -1px 0 rgba(255,255,255,0.06);
}
.gg-cover-rule { display: block; width: 64px; height: 2px; background: var(--amber); }
.gg-cover-tagline { margin: 0; font-size: 19px; font-style: italic; line-height: 1.45; color: #DCD1BA; text-wrap: pretty; }

.gg-hero-side { display: flex; flex-direction: column; gap: 52px; }

.gg-signup { display: flex; flex-direction: column; gap: 14px; }

/* A note from the About page */

.gg-note {
    display: flex; flex-direction: column; gap: 18px; padding: 26px 22px 24px;
    background: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 22px 40px -24px rgba(0,0,0,0.8);
}
.gg-note-head { display: flex; align-items: flex-start; gap: 18px; }
.gg-polaroid {
    position: relative; flex: 0 0 auto; width: 112px; padding: 6px 6px 18px;
    background: var(--paper); transform: rotate(-3deg); box-shadow: 0 12px 20px -10px rgba(0,0,0,0.8);
}
.gg-polaroid-photo {
    aspect-ratio: 4 / 5; overflow: hidden; background: #3A3733;
    display: flex; align-items: center; justify-content: center;
}
.gg-polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }
.gg-polaroid-photo span { font-family: var(--label); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #C9C2B6; }
.gg-paperclip { position: absolute; top: -14px; right: 14px; color: var(--muted); }
.gg-note-meta { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.gg-note-text { margin: 0; font-size: 20px; line-height: 1.6; color: var(--paper-2); text-wrap: pretty; }

@media (min-width: 900px) {
    .gg-hero { padding-block: 56px 16px; }
    .gg-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
    .gg-cover { min-height: 580px; padding: 40px 64px 40px 40px; position: sticky; top: 24px; }
    .gg-hero-side { padding-top: 24px; }
}

/* ---------- Forms ---------- */

.gg-form { width: 100%; max-width: 520px; margin-top: 6px; }
.gg-form-row { display: flex; border: 1.5px solid rgba(237,227,212,0.5); background: rgba(237,227,212,0.04); }
.gg-input {
    flex: 1 1 auto; min-width: 0; height: 54px; padding: 0 14px; border: 0; border-radius: 0;
    background: transparent; color: var(--paper); font-family: var(--body); font-size: 18px;
    -webkit-appearance: none; appearance: none;
}
.gg-input::placeholder { color: #8F8172; }
.gg-input:focus { outline: none; }
.gg-form-row:focus-within { border-color: var(--amber); }
.gg-btn {
    flex: 0 0 auto; height: 54px; padding: 0 18px; border: 0; border-radius: 0; cursor: pointer;
    background: var(--amber); color: var(--ink);
    font-family: var(--label); font-weight: 500; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
}
.gg-btn:hover { filter: brightness(1.08); }
.gg-form.loading .gg-btn { opacity: .6; pointer-events: none; }
.gg-form-msg { display: none; margin: 12px 0 0; font-family: var(--label); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.gg-form.success .gg-form-row { display: none; }
.gg-form.success .gg-form-success { display: block; color: var(--amber); }
.gg-form.error .gg-form-error { display: block; color: #F0A08A; }

/* ---------- Entries ---------- */

.gg-entries {
    margin-top: 52px; padding-block: 44px 52px;
    background-color: var(--ink-1);
    background-image: radial-gradient(rgba(237,227,212,0.11) 1px, transparent 1.3px);
    background-size: 18px 18px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.gg-entries-page { margin-top: 0; padding-block: clamp(44px, 6vw, 80px); border-top: 0; }
.gg-entries-head {
    display: flex; flex-direction: column; gap: 10px;
    padding-bottom: 14px; border-bottom: 2px solid rgba(237,227,212,0.7);
}
.gg-entries-grid { display: grid; grid-template-columns: minmax(0, 1fr); }

.gg-latest { display: flex; flex-direction: column; gap: 10px; padding: 22px 0 24px; border-bottom: 1px solid var(--line-2); }
.gg-latest-image { display: block; margin-bottom: 8px; padding: 8px; background: var(--paper); }
.gg-latest-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gg-latest-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.04; text-wrap: balance; }
.gg-latest-title a { text-decoration: none; }
.gg-latest-excerpt { margin: 0; font-size: 19px; font-style: italic; line-height: 1.5; color: var(--paper-2); }

.gg-rows { margin: 0; padding: 0; list-style: none; }
.gg-row {
    display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; align-items: baseline;
    padding: 18px 0; border-bottom: 1px solid var(--line-2);
}
.gg-row:last-child { border-bottom: 0; }
.gg-row-date { font-family: var(--label); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.gg-row-body { display: flex; flex-direction: column; gap: 6px; }
.gg-row-title { font-family: var(--display); font-size: 23px; line-height: 1.15; text-decoration: none; text-wrap: pretty; }
.gg-row-meta { font-size: 14px; color: var(--muted-2); }

.gg-more { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 6px; border-top: 1px solid var(--line-2); }

@media (min-width: 900px) {
    .gg-entries { padding-block: 64px 72px; }
    .gg-entries-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; }
    .gg-latest { border-bottom: 0; padding-top: 32px; }
    .gg-entries-grid .gg-rows { padding-top: 14px; }
}

/* ---------- Footage ---------- */

.gg-footage { padding-block: 48px 56px; }
.gg-footage-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
.gg-viewfinder {
    position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
    aspect-ratio: 16 / 9; background: var(--ink-3); box-shadow: 0 0 0 1px rgba(237,227,212,0.08); text-decoration: none;
}
.gg-viewfinder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s ease; }
.gg-viewfinder:hover img { opacity: .95; }
.gg-vf { position: absolute; width: 20px; height: 20px; border: 0 solid var(--paper); z-index: 1; }
.gg-vf-tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.gg-vf-tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.gg-vf-bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.gg-vf-br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }
.gg-rec {
    position: absolute; top: 14px; left: 0; right: 0; z-index: 1; text-align: center;
    font-family: var(--label); font-size: 11px; letter-spacing: .2em; color: var(--paper);
}
.gg-rec::before {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%;
    background: var(--amber); vertical-align: 1px;
}
.gg-play {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
    width: 66px; height: 66px; padding-left: 4px; border-radius: 50%;
    background: var(--amber); color: var(--ink); transition: transform .15s ease;
}
.gg-viewfinder:hover .gg-play { transform: scale(1.06); }
.gg-footage-text { display: flex; flex-direction: column; gap: 14px; }

@media (min-width: 900px) {
    .gg-footage { padding-block: 80px; }
    .gg-footage-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
}

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

.gg-band { border-top: 1px solid var(--line); }
.gg-band-inner { display: flex; flex-direction: column; gap: 14px; padding-block: clamp(52px, 7vw, 88px); }

/* ---------- Pagination & error ---------- */

.gg-pagination {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 24px; padding-top: 6px; border-top: 1px solid var(--line-2);
}
.gg-error { padding-block: clamp(80px, 12vw, 160px); }
.gg-error-inner { display: flex; flex-direction: column; gap: 22px; }

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

.gg-footer {
    background-color: var(--notebook);
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 5px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 5px);
    color: var(--cover-text);
}
.gg-footer-inner { display: flex; flex-direction: column; gap: 16px; padding-block: 44px 40px; }
.gg-footer-mark {
    align-self: flex-start; font-family: var(--display); font-size: clamp(34px, 5vw, 64px); line-height: 1;
    white-space: nowrap; color: var(--cover-text); text-decoration: none; text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.gg-footer-mark:hover { color: #FFFFFF; }
.gg-footer-nav .gg-nav-list { flex-direction: row; flex-wrap: wrap; gap: 0 22px; }
.gg-footer-nav .gg-nav-link {
    padding: 12px 0; color: var(--cover-text);
    font-family: var(--label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
}
.gg-footer-nav .gg-nav-link:hover { color: #FFFFFF; }
.gg-copy { margin: 0; font-size: 13px; color: #C9C0AA; }

/* ---------- Posts and pages ---------- */

.gg-article-head { display: flex; flex-direction: column; gap: 18px; padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 44px); }
.gg-article-title {
    margin: 0; font-family: var(--display); font-weight: 400;
    font-size: clamp(38px, 6vw, 68px); line-height: 1.04; text-wrap: balance;
}
.gg-article-excerpt { margin: 0; font-size: clamp(20px, 2vw, 23px); font-style: italic; line-height: 1.45; color: var(--paper-2); }

.gg-article-image { max-width: 1000px; margin: 0 auto clamp(36px, 5vw, 60px); padding-inline: var(--gutter); }
.gg-article-image-sm { max-width: 760px; }
.gg-article-image img { width: 100%; }
.gg-article-image figcaption,
.gg-content figcaption {
    margin-top: 12px; text-align: center;
    font-family: var(--label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2);
}

.gg-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, 160px)
        [main-start] min(680px, calc(100% - var(--gutter) * 2))
        [main-end] minmax(0, 160px)
        [wide-end] minmax(var(--gutter), 1fr)
        [full-end];
    padding-bottom: 32px;
    font-size: 20px; line-height: 1.72; color: var(--paper-2);
}
.gg-content > * { grid-column: main-start / main-end; margin-block: 0; }
.gg-content > * + * { margin-top: 1.35em; }
.gg-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gg-content > .kg-width-full { grid-column: full-start / full-end; }
.gg-content > .kg-width-full img { width: 100%; }

.gg-content h2, .gg-content h3, .gg-content h4 { font-family: var(--display); font-weight: 400; line-height: 1.15; color: var(--paper); text-wrap: balance; }
.gg-content > h2 { margin-top: 1.8em; font-size: clamp(28px, 3.2vw, 36px); }
.gg-content > h3 { margin-top: 1.6em; font-size: clamp(24px, 2.6vw, 28px); }
.gg-content > h4 { margin-top: 1.5em; font-size: 22px; }
.gg-content > h2 + *, .gg-content > h3 + *, .gg-content > h4 + * { margin-top: .7em; }

.gg-content a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gg-content a:hover { color: var(--paper); }
.gg-content strong { color: var(--paper); }
.gg-content ul, .gg-content ol { padding-left: 1.3em; }
.gg-content li + li { margin-top: .4em; }
.gg-content li::marker { color: var(--amber); }

.gg-content blockquote:not([class]) {
    position: relative; margin-inline: 0; padding: .2em 0 .2em 1.6em;
    font-family: var(--display); font-style: italic; font-size: 1.25em; line-height: 1.45; color: var(--paper);
}
.gg-content blockquote:not([class])::before {
    content: "\201C"; position: absolute; left: 0; top: -.12em;
    font-size: 2em; line-height: 1; color: var(--amber);
}
.gg-content blockquote.kg-blockquote-alt {
    font-family: var(--display); font-style: italic; font-size: 1.5em; line-height: 1.35;
    text-align: center; color: var(--amber); padding: 0 1em;
}
.gg-content blockquote p { margin: 0; }

.gg-content hr { height: auto; margin-block: 2.4em; border: 0; text-align: center; overflow: visible; }
.gg-content hr::after { content: "\00B7 \00B7 \00B7"; font-family: var(--display); font-size: 26px; letter-spacing: .5em; color: var(--amber); }

.gg-content pre {
    overflow-x: auto; padding: 20px; background: var(--ink-0); border: 1px solid var(--line);
    font-size: 15px; line-height: 1.6;
}
.gg-content code { font-size: .85em; }
.gg-content .kg-image-card img,
.gg-content .kg-gallery-image img { margin-inline: auto; }

.gg-article-sign { padding: 8px 0 clamp(36px, 5vw, 56px); font-size: 30px; }

.gg-comments { padding-bottom: clamp(40px, 6vw, 64px); }

.gg-readnext {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px;
    padding-block: 8px clamp(48px, 6vw, 72px);
}
.gg-readnext-link {
    display: flex; flex-direction: column; gap: 10px; padding: 22px 24px;
    background: var(--ink-2); border: 1px solid var(--line); text-decoration: none;
}
.gg-readnext-link:hover { border-color: var(--amber); }
.gg-readnext-title { font-family: var(--display); font-size: 24px; line-height: 1.2; color: var(--paper); }
.gg-readnext-link:hover .gg-readnext-title { color: var(--amber); }

/* ---------- Small screens ---------- */

@media (max-width: 420px) {
    .gg-cover { padding: 28px 44px 28px 24px; }
    .gg-note { padding: 22px 18px 20px; }
    .gg-content { font-size: 19px; line-height: 1.68; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
