/* ============================================================
   NEW HUMAN THOUGHTS — Ghost Theme CSS
   Design: gallery-museum quiet, architectural/brutalist-lite,
   earthy clay accents, hand-touched paper noise.
   ============================================================ */

/* ----- Google Fonts (loaded via default.hbs preconnect) ----- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Newsreader:ital,opsz,wght@0,6..72,200..700;1,6..72,200..700&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Geist:wght@300..700&family=JetBrains+Mono:wght@400..600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Palette: Museum (default) */
    --bg:             #F4F1EA;
    --paper:          #FBF8F2;
    --ink:            #14130F;
    --ink-soft:       #2A2823;
    --muted:          #807C72;
    --faint:          #B3AE9F;
    --hairline:       #D9D4C7;
    --hairline-soft:  #E5E1D6;
    --accent:         #B5694A;
    --accent-deep:    #8E4D31;

    /* Type families */
    --font-display: "Instrument Serif", "Newsreader", Georgia, serif;
    --font-body:    "Geist", "Inter", system-ui, sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, monospace;

    /* Type scale */
    --fs-mono:        11px;
    --tracking-mono:  0.14em;

    /* Layout */
    --max:            1440px;
    --gutter:         clamp(20px, 4vw, 56px);
}

/* Palette: Clay */
body[data-palette="Clay"] {
    --bg:            #ECE3D2;
    --paper:         #F4ECDC;
    --ink:           #2A2218;
    --ink-soft:      #3D3225;
    --muted:         #7A6E5C;
    --faint:         #B3A689;
    --hairline:      #CFC4AC;
    --hairline-soft: #DCD2BD;
    --accent:        #8E4A2A;
    --accent-deep:   #6F361B;
}

/* Palette: Moss */
body[data-palette="Moss"] {
    --bg:            #EEEEE7;
    --paper:         #F5F5EF;
    --ink:           #1B201C;
    --ink-soft:      #2E342F;
    --muted:         #6A736B;
    --faint:         #9DA59E;
    --hairline:      #CCD0C5;
    --hairline-soft: #DBDED4;
    --accent:        #5C7059;
    --accent-deep:   #3F5240;
}

/* Palette: Night */
body[data-palette="Night"] {
    --bg:            #15140F;
    --paper:         #1B1A14;
    --ink:           #EFEAE0;
    --ink-soft:      #D6D1C6;
    --muted:         #8E8879;
    --faint:         #5F5B50;
    --hairline:      #2E2B23;
    --hairline-soft: #25231C;
    --accent:        #C9784E;
    --accent-deep:   #E08D62;
}

/* Typography: Literary (all Newsreader) */
body[data-typography="Literary"] {
    --font-display: "Newsreader", Georgia, serif;
    --font-body:    "Newsreader", Georgia, serif;
}

/* Typography: Quiet (all sans) */
body[data-typography="Quiet"] {
    --font-display: "Geist", "Inter", system-ui, sans-serif;
    --font-body:    "Geist", "Inter", system-ui, sans-serif;
}

/* Typography: Zine (EB Garamond) */
body[data-typography="Zine"] {
    --font-display: "EB Garamond", Georgia, serif;
    --font-body:    "EB Garamond", Georgia, serif;
}

/* ============================================================
   BASE RESET & BODY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Paper noise — hand-touched feel */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body[data-palette="Night"]::before {
    mix-blend-mode: screen;
    opacity: 0.05;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.nht-viewport {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nht-frame {
    padding: 0 var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.mono {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    letter-spacing: var(--tracking-mono);
    text-transform: uppercase;
    font-weight: 500;
}

.mono-num {
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.02em;
}

.serifish {
    font-family: var(--font-display);
    font-weight: 400;
}

body[data-typography="Quiet"] .display,
body[data-typography="Quiet"] .serifish {
    font-weight: 500;
    letter-spacing: -0.04em;
}

body[data-typography="Literary"] .display {
    font-weight: 300;
    letter-spacing: -0.025em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.eyebrow .bar {
    width: 28px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 32px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.4vw, 48px);
    margin: 0;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hairline   { border-top: 1px solid var(--hairline); }
.hairline-b { border-bottom: 1px solid var(--hairline); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nht-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
}

.nht-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 22px 0;
    gap: 32px;
    min-width: 0;
}

.nht-nav-side {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nht-nav-side.right {
    justify-content: flex-end;
}

.nht-nav-link {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    position: relative;
    padding-bottom: 2px;
    transition: color 160ms ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nht-nav-link:hover { color: var(--accent); }

.nht-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--accent);
}

.nht-brand {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -0.01em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.nht-brand small {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 500;
    white-space: nowrap;
}

/* Subscribe button in nav */
.nht-subscribe-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: color 160ms, border-color 160ms;
}

.nht-subscribe-btn:hover {
    color: var(--accent-deep);
    border-color: var(--accent-deep);
}

/* Mobile hamburger */
.nht-burger {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    color: var(--ink);
    cursor: pointer;
}

.nht-burger svg { display: block; }

/* Mobile nav drawer */
.nht-mobile-nav {
    display: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--bg);
    transition: all 160ms ease;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--bg);
}

.btn-link {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    transition: color 160ms, border-color 160ms;
    cursor: pointer;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================================
   PHOTO CARD (feature image wrapper)
   ============================================================ */
.nht-photo {
    position: relative;
    background: var(--paper);
    overflow: hidden;
    border: 1px solid var(--hairline-soft);
    display: block;
}

.nht-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms ease;
}

.nht-photo:hover img {
    transform: scale(1.02);
}

.nht-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in oklab, var(--ink), transparent 88%);
    opacity: 0;
    transition: opacity 240ms ease;
    z-index: 1;
}

.nht-photo:hover::after { opacity: 1; }

.nht-photo-label {
    position: absolute;
    left: 14px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    background: color-mix(in oklab, var(--paper), transparent 12%);
    padding: 6px 10px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.nht-photo-label .dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.nht-photo-idx {
    position: absolute;
    right: 14px;
    top: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--muted);
    z-index: 2;
}

/* No-image placeholder */
.nht-photo-placeholder {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--hairline-soft);
    overflow: hidden;
}

.nht-photo-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(135deg,
            transparent 0 14px,
            var(--hairline-soft) 14px 15px),
        linear-gradient(180deg,
            color-mix(in oklab, var(--paper), var(--ink) 4%),
            var(--paper));
}

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Hero */
.nht-hero {
    padding-top: 56px;
    padding-bottom: 32px;
}

.nht-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: end;
    margin-bottom: 32px;
}

.nht-hero-headline {
    font-family: var(--font-display);
    font-size: clamp(56px, 6.5vw, 96px);
    margin: 0;
    line-height: 0.96;
    letter-spacing: -0.025em;
    font-weight: 400;
}

.nht-hero-headline em {
    font-style: italic;
    color: var(--accent);
    white-space: nowrap;
}

.nht-hero-desc {
    font-size: 20px;
    line-height: 1.45;
    margin: 0;
    max-width: 36ch;
    color: var(--ink-soft);
}

.nht-hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.nht-cover-wrap {
    margin-top: 0;
}

.nht-cover-photo {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    display: block;
}

/* Recent split — Photos + Journal */
.nht-recent {
    margin-top: 96px;
}

.nht-recent-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

/* Photo grid in recent section */
.nht-photo-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.nht-photo-meta {
    display: flex;
    justify-content: space-between;
    padding: 10px 2px 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Journal list in recent section */
.nht-journal-list {
    display: flex;
    flex-direction: column;
}

.nht-journal-item {
    display: block;
    padding: 22px 0;
    border-bottom: 1px solid var(--hairline);
    cursor: pointer;
    transition: opacity 160ms;
}

.nht-journal-item:hover { opacity: 0.8; }

.nht-journal-item-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.nht-journal-item-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.nht-journal-item-read {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.nht-journal-item-title {
    font-family: var(--font-display);
    font-size: 28px;
    margin: 0 0 8px;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.nht-journal-item-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

/* Series strip */
.nht-series {
    margin-top: 96px;
}

.nht-series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.nht-series-card {
    cursor: pointer;
}

.nht-series-card-meta {
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.nht-series-name {
    font-family: var(--font-display);
    font-size: 24px;
    margin: 0;
    font-weight: 400;
}

.nht-series-count {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.nht-series-desc {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* ============================================================
   SUBSCRIBE INLINE (mid-feed CTA)
   ============================================================ */
.nht-subscribe-inline {
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 64px 0;
    margin: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.nht-subscribe-inline h3 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.0;
    margin: 0;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.nht-subscribe-inline h3 em {
    color: var(--accent);
    font-style: italic;
}

.nht-subscribe-inline-desc {
    color: var(--muted);
    margin: 0 0 22px;
    max-width: 36ch;
    line-height: 1.6;
}

.nht-subscribe-stats {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Subscribe form */
.nht-subscribe-form {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--ink);
}

.nht-subscribe-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    outline: none;
    min-width: 0;
}

.nht-subscribe-form input::placeholder { color: var(--faint); }

.nht-subscribe-form button {
    background: transparent;
    border: none;
    padding: 14px 0 14px 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 160ms;
    white-space: nowrap;
    cursor: pointer;
}

.nht-subscribe-form button:hover { color: var(--accent); }

/* Ghost members portal subscribe form */
.gh-portal-form {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--ink);
}

.gh-portal-form input[data-members-email] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    outline: none;
    min-width: 0;
}

.gh-portal-form input[data-members-email]::placeholder { color: var(--faint); }

.gh-portal-form button[type="submit"] {
    background: transparent;
    border: none;
    padding: 14px 0 14px 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 500;
    transition: color 160ms;
    white-space: nowrap;
    cursor: pointer;
}

.gh-portal-form button[type="submit"]:hover { color: var(--accent); }

[data-members-form="subscribe"] [data-members-error] {
    color: #c0392b;
    font-family: var(--font-mono);
    font-size: 11px;
    margin-top: 8px;
}

/* ============================================================
   PHOTOGRAPHY GALLERY — tag-photographs.hbs
   ============================================================ */
.nht-gallery-intro {
    padding-top: 56px;
    padding-bottom: 48px;
}

.nht-gallery-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
}

.nht-gallery-headline {
    font-family: var(--font-display);
    font-size: clamp(64px, 8vw, 120px);
    margin: 0;
    line-height: 0.96;
    letter-spacing: -0.025em;
    font-weight: 400;
}

.nht-gallery-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
}

.nht-stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.nht-stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
}

/* Filter bar */
.nht-filter-bar {
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 18px 0;
    margin-bottom: 56px;
}

.nht-filter-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.nht-filter-pills {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.nht-filter-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 6px;
}

.nht-pill {
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    cursor: pointer;
    transition: all 160ms;
    text-decoration: none;
    white-space: nowrap;
}

.nht-pill:hover,
.nht-pill.is-active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

/* Masonry grid — CSS columns */
.nht-masonry {
    columns: 3;
    column-gap: 24px;
}

.nht-masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
}

.nht-masonry-item a {
    display: block;
}

.nht-masonry-item figcaption {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    font-size: 13px;
}

.nht-masonry-item figcaption .title {
    color: var(--ink);
}

.nht-masonry-item figcaption .date {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Uniform grid */
.nht-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 32px;
}

.nht-grid-3 figure { margin: 0; }

.nht-grid-3 figcaption { padding-top: 16px; }

.nht-grid-3 .figcap-idx {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.nht-grid-3 .figcap-title {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 400;
}

.nht-grid-3 .figcap-date {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

/* ============================================================
   JOURNAL INDEX — index.hbs / tag.hbs
   ============================================================ */
.nht-journal-intro {
    padding-top: 56px;
    padding-bottom: 48px;
}

.nht-journal-headline {
    font-family: var(--font-display);
    font-size: clamp(64px, 8vw, 120px);
    margin: 0;
    line-height: 0.96;
    letter-spacing: -0.025em;
    font-weight: 400;
}

/* Featured post */
.nht-featured {
    padding-bottom: 72px;
}

.nht-featured-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--hairline);
    cursor: pointer;
    transition: opacity 160ms;
}

.nht-featured-link:hover { opacity: 0.85; }

.nht-featured-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.nht-featured-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.nht-featured-date {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.nht-featured-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.0;
    margin: 0 0 24px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.nht-featured-excerpt {
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 48ch;
}

.nht-featured-cta {
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    display: inline-block;
}

/* Journal list rows */
.nht-journal-row {
    display: grid;
    grid-template-columns: 60px 130px 1fr 100px;
    gap: 32px;
    align-items: baseline;
    padding: 40px 0;
    border-bottom: 1px solid var(--hairline);
    cursor: pointer;
    transition: opacity 160ms;
}

.nht-journal-row:hover { opacity: 0.8; }

.nht-journal-row-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    align-self: center;
}

.nht-journal-row-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.nht-journal-row-date {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
}

.nht-journal-row-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 44px);
    margin: 0 0 12px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.nht-journal-row-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
    max-width: 60ch;
}

.nht-journal-row-read {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: right;
    align-self: center;
    white-space: nowrap;
}

/* ============================================================
   SINGLE POST — post.hbs
   ============================================================ */
.nht-article {
    padding-top: 56px;
}

.nht-article-header {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 56px;
    padding: 0 var(--gutter);
}

.nht-article-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}

.nht-article-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6.5vw, 96px);
    line-height: 1.02;
    margin: 0;
    letter-spacing: -0.025em;
    font-weight: 400;
}

.nht-article-lede {
    font-size: 22px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-top: 32px;
    font-family: var(--font-display);
    font-style: italic;
}

.nht-article-byline {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 32px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.nht-article-cover {
    max-width: 1080px;
    margin: 0 auto 80px;
    padding: 0 var(--gutter);
}

.nht-article-cover img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.nht-article-cover figcaption {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
    text-align: center;
}

.nht-article-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Body text */
.nht-article-body .gh-content {
    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.nht-article-body .gh-content p { margin-top: 0; }

.nht-article-body .gh-content p + p { margin-top: 1.4em; }

/* Drop cap */
.nht-article-body .gh-content > p:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 72px;
    line-height: 0.85;
    float: left;
    margin-right: 12px;
    margin-top: 6px;
    color: var(--accent);
}

/* Pull quote / blockquote */
.nht-article-body .gh-content blockquote,
.nht-article-body blockquote {
    margin: 56px 0;
    padding: 32px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 32px;
    line-height: 1.25;
    text-align: center;
    letter-spacing: -0.01em;
    color: var(--ink);
}

/* Inline figure */
.nht-article-body figure {
    margin: 64px 0;
}

.nht-article-body figure img {
    width: 100%;
    display: block;
}

.nht-article-body figcaption {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 12px;
    text-align: center;
}

/* ============================================================
   GHOST KOENIG CARD WIDTH CLASSES (required by gscan)
   ============================================================ */

/* kg-width-wide: breaks out of the article column */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: 0 auto;
    left: 50%;
    right: 50%;
    margin-left: -42.5vw;
    margin-right: -42.5vw;
}

/* kg-width-full: full bleed */
.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* kg-width-wide and kg-width-full inside the article body */
.nht-article-body .kg-width-wide {
    width: 85vw;
    max-width: 1200px;
    margin-left: calc(50% - min(42.5vw, 600px));
    left: auto;
    right: auto;
}

.nht-article-body .kg-width-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    left: auto;
    right: auto;
}

/* Ghost card styles within content */
.nht-article-body .kg-card { margin: 48px 0; }
.nht-article-body .kg-image-card img { width: 100%; }
.nht-article-body .kg-image-card figcaption {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
    text-align: center;
}
.nht-article-body .kg-gallery-card .kg-gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.nht-article-body .kg-gallery-card img { width: 100%; height: 100%; object-fit: cover; }

/* Single-photo post layout (photographs tag) */
.nht-photo-post-wrap {
    background: var(--paper);
    padding: 80px 0;
    margin: 0 calc(-1 * var(--gutter));
}

.nht-photo-post-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.nht-photo-post-inner img {
    width: 100%;
    display: block;
}

.nht-photo-detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 96px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.nht-photo-meta-box {
    border: 1px solid var(--hairline);
    padding: 28px;
}

.nht-photo-meta-box .meta-heading {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

.nht-photo-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--hairline-soft);
    font-size: 14px;
}

.nht-photo-meta-key {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Prev/next navigation (post) */
.nht-post-nav {
    border-top: 1px solid var(--hairline);
    padding-top: 48px;
    margin-top: 80px;
}

.nht-post-nav-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}

.nht-post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Related posts */
.nht-related {
    margin-top: 80px;
    padding-bottom: 120px;
}

.nht-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.nht-related-card {
    display: block;
    cursor: pointer;
    transition: opacity 160ms;
}

.nht-related-card:hover { opacity: 0.8; }

.nht-related-card-meta {
    padding-top: 16px;
}

.nht-related-card-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.nht-related-card-title {
    font-family: var(--font-display);
    font-size: 24px;
    margin: 0;
    line-height: 1.15;
    font-weight: 400;
}

.nht-related-card-date {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 12px;
}

/* ============================================================
   ABOUT / STATIC PAGE — page.hbs
   ============================================================ */
.nht-page {
    padding-top: 80px;
    padding-bottom: 80px;
}

.nht-page-inner {
    max-width: 980px;
    margin: 0 auto;
}

.nht-page-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 7vw, 104px);
    margin: 0;
    line-height: 1.0;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.nht-page-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 64px;
}

.nht-page-body {
    font-size: 20px;
    line-height: 1.65;
    color: var(--ink-soft);
    font-family: var(--font-display);
    margin: 0;
}

.nht-page-body em { font-style: italic; }

.nht-page-body p { margin: 0; }
.nht-page-body p + p { margin-top: 1.4em; }

.nht-page-actions {
    margin-top: 40px;
    display: flex;
    gap: 12px;
}

/* ============================================================
   TAG / AUTHOR ARCHIVE
   ============================================================ */
.nht-archive {
    padding-top: 56px;
}

.nht-archive-header {
    padding-bottom: 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 48px;
}

.nht-archive-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 96px);
    margin: 0;
    line-height: 1.0;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.nht-archive-desc {
    font-size: 18px;
    color: var(--ink-soft);
    margin-top: 16px;
    max-width: 52ch;
    line-height: 1.55;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.nht-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 0 80px;
    border-top: 1px solid var(--hairline);
    margin-top: 48px;
}

.nht-pagination-info {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.nht-pagination-links {
    display: flex;
    gap: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.nht-footer {
    margin-top: auto;
    padding: 72px 0 32px;
    border-top: 1px solid var(--hairline);
}

.nht-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.nht-footer-col-head {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--muted);
    margin: 0 0 18px;
}

.nht-footer-lead {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
    max-width: 26ch;
    font-weight: 400;
}

.nht-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.nht-footer-nav a:hover { color: var(--accent); }

.nht-footer-bottom {
    margin-top: 72px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ============================================================
   GHOST PORTAL OVERRIDES
   ============================================================ */

/* Member-only badge */
.gh-access-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--hairline);
    padding: 4px 10px;
    margin-bottom: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .nht-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .nht-cover-photo { aspect-ratio: 16/9; }
    .nht-recent-grid { grid-template-columns: 1fr; gap: 56px; }
    .nht-gallery-intro-grid { grid-template-columns: 1fr; gap: 32px; }
    .nht-photo-detail-grid { grid-template-columns: 1fr; gap: 48px; }
    .nht-masonry { columns: 2; }
    .nht-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .nht-journal-intro .nht-gallery-intro-grid { gap: 32px; }
    .nht-featured-link { grid-template-columns: 1fr; gap: 32px; }
    .nht-journal-row { grid-template-columns: 50px 1fr 80px; }
    .nht-journal-row > :nth-child(2) { display: none; }
    .nht-post-nav-grid { grid-template-columns: 1fr; }
    .nht-related-grid { grid-template-columns: repeat(2, 1fr); }
    .nht-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nht-page-body-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nht-nav-inner {
        grid-template-columns: auto 1fr auto;
        padding: 16px 0;
        gap: 16px;
    }
    .nht-nav-side { display: none; }
    .nht-burger { display: flex; }
    .nht-mobile-nav {
        display: none;
        flex-direction: column;
        padding: 16px 0 24px;
        border-top: 1px solid var(--hairline);
        gap: 16px;
    }
    .nht-mobile-nav.is-open { display: flex; }
    .nht-mobile-nav a {
        font-family: var(--font-mono);
        font-size: 13px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }
    .nht-hero-headline { font-size: clamp(44px, 12vw, 72px); }
    .nht-series-grid { grid-template-columns: 1fr 1fr; }
    .nht-subscribe-inline { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; margin: 56px 0; }
    .nht-photo-grid-2 { grid-template-columns: 1fr; }
    .nht-masonry { columns: 1; }
    .nht-grid-3 { grid-template-columns: 1fr; }
    .nht-journal-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
    .nht-journal-row-num { display: none; }
    .nht-related-grid { grid-template-columns: 1fr; }
    .nht-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .nht-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .nht-article-title { font-size: clamp(40px, 10vw, 72px); }
    .nht-gallery-headline, .nht-journal-headline { font-size: clamp(48px, 12vw, 80px); }
}

@media (max-width: 480px) {
    .nht-series-grid { grid-template-columns: 1fr; }
    .nht-hero-actions { flex-direction: column; gap: 10px; }
}

/* ============================================================
   PRINT / ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ============================================================
   GHOST {{navigation}} OUTPUT NORMALISATION
   Ghost renders navigation as <ul class="nav"><li class="nav-item">...
   ============================================================ */
.nht-nav-side .nav,
.nht-mobile-nav .nav {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
}

.nht-nav-side .nav-item a {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    position: relative;
    padding-bottom: 2px;
    transition: color 160ms ease;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.nht-nav-side .nav-item a:hover { color: var(--accent); }

.nht-nav-side .nav-current a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--accent);
}

/* Mobile nav list */
.nht-mobile-nav .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.nht-mobile-nav .nav-item a {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
}

.nht-mobile-nav .nav-item a:hover { color: var(--accent); }
.nht-mobile-nav .nav-current a { color: var(--accent); }

/* Ghost post class helpers */
.gh-article { flex: 1; }

/* Ghost content card styles */
.gh-content .kg-card { margin: 48px 0; }
.gh-content .kg-image { max-width: 100%; }
.gh-content .kg-image-card img { width: 100%; height: auto; display: block; }
.gh-content figure { margin: 0; }
.gh-content figcaption {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
    text-align: center;
}
.gh-content .kg-bookmark-card {
    border: 1px solid var(--hairline);
    padding: 24px;
    display: flex;
    gap: 24px;
}
.gh-content h2, .gh-content h3, .gh-content h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.01em;
}
.gh-content h2 { font-size: 40px; margin-top: 56px; }
.gh-content h3 { font-size: 28px; margin-top: 40px; }
.gh-content hr {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 48px 0;
}
.gh-content a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
    transition: border-color 160ms, color 160ms;
}
.gh-content a:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.gh-content ul, .gh-content ol {
    padding-left: 1.5em;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1.65;
}
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li { margin-bottom: 0.5em; }

/* Callout cards */
.gh-content .kg-callout-card {
    background: var(--paper);
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Video card */
.gh-content .kg-video-card { position: relative; }
.gh-content .kg-video-card video { width: 100%; display: block; }

/* Toggle card */
.gh-content .kg-toggle-card summary {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
}

/* Code blocks */
.gh-content pre {
    background: var(--paper);
    border: 1px solid var(--hairline);
    padding: 24px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
}
.gh-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--paper);
    padding: 2px 6px;
    border: 1px solid var(--hairline-soft);
}
.gh-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}
