/* ============================================================
   Token Return — Ghost Theme CSS
   Light Theme | Inter Font | Manuel Fuß CI
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg:           #ffffff;
    --bg-secondary: #faf8ff;
    --surface:      #f6f1ff;
    --surface-strong:#efe6ff;
    --border:       #e7ddf8;
    --text-primary: #13111c;
    --text-body:    #30293f;
    --text-muted:   #6d6188;
    --accent:       #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-light: rgba(139, 92, 246, 0.08);
    --shadow-soft:  0 12px 30px rgba(19, 17, 28, 0.06);
    --shadow-lift:  0 18px 40px rgba(139, 92, 246, 0.12);
    --radius-sm:    8px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --max-width:    720px;
    --max-width-wide: 1100px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0, rgba(139, 92, 246, 0) 180px),
        var(--bg);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.gh-btn,
.tr-label,
.tr-signup-label,
.tr-signup-title,
.tr-hero-note,
.tr-hero-eyebrow,
.tr-post-number {
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

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

/* ── Layout ─────────────────────────────────────────────────── */
.gh-viewport {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.gh-main {
    flex: 1;
}

/* ── Header ─────────────────────────────────────────────────── */
.gh-head {
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(231, 221, 248, 0.7);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.gh-head-inner {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.gh-head-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.gh-head-logo img {
    height: 32px;
    width: auto;
}

.gh-head-logo:hover {
    color: var(--accent);
    text-decoration: none;
}

.gh-head-menu {
    flex: 1;
}

.gh-head-menu .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.gh-head-menu .nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.gh-head-menu .nav a:hover,
.gh-head-menu .nav-current a {
    color: var(--text-primary);
    background: var(--surface);
}

.gh-head-actions {
    flex-shrink: 0;
}

.gh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
}

.gh-btn:hover {
    text-decoration: none;
}

.gh-btn-accent {
    background: var(--accent);
    color: #ffffff;
}

.gh-btn-accent:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

/* ── Hero ───────────────────────────────────────────────────── */
.tr-hero {
    position: relative;
    padding: 104px 24px 88px;
    overflow: hidden;
}

.tr-hero-glow {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 980px;
    height: 620px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

.tr-hero-shell {
    position: relative;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
    gap: 48px;
    align-items: center;
}

.tr-hero-copy {
    max-width: 680px;
}

.tr-hero-note {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(139, 92, 246, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
}

.tr-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.tr-eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.tr-hero-title {
    font-size: clamp(52px, 8vw, 84px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.tr-title-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tr-hero-subtitle {
    font-size: clamp(20px, 2.8vw, 24px);
    line-height: 1.65;
    color: var(--text-body);
    margin-bottom: 32px;
    font-weight: 400;
    max-width: 640px;
}

.tr-hero-quote {
    border-left: 3px solid rgba(139, 92, 246, 0.25);
    padding-left: 18px;
    margin-bottom: 28px;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
}

.tr-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tr-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(231, 221, 248, 0.9);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 14px;
    box-shadow: var(--shadow-soft);
}

/* ── Signup Form ────────────────────────────────────────────── */
.tr-signup-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(231, 221, 248, 0.95);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-lift);
}

.tr-signup-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.tr-signup-title {
    font-size: clamp(28px, 4vw, 34px);
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tr-signup-copy {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-body);
    margin-bottom: 22px;
}

.tr-signup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.tr-signup-field {
    display: block;
}

.tr-signup-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tr-signup-input {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    font-size: 16px;
    font-family: inherit;
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    border: 1px solid #d9cee9;
    border-radius: 16px;
    color: var(--text-primary);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 16px rgba(19, 17, 28, 0.05);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tr-signup-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14), 0 12px 24px rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
}

.tr-signup-input::placeholder {
    color: #6b7280;
}

.tr-signup-btn {
    height: 54px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Space Grotesk', 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--accent) 0%, #9f78ff 100%);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.22);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.tr-signup-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #8b5cf6 100%);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(139, 92, 246, 0.24);
}

.tr-signup-meta {
    font-size: 13px;
    color: var(--text-muted);
    text-align: left;
    margin-top: 14px;
}

/* Form States (Success / Error / Loading) */
.message-success,
.message-error {
    display: none;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    margin-top: 4px;
}

.message-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.tr-signup-form.success .message-success {
    display: block;
}

.tr-signup-form.error .message-error {
    display: block;
}

.tr-signup-form.success .tr-signup-input,
.tr-signup-form.success .tr-signup-btn {
    display: none;
}

.tr-signup-form.loading .tr-signup-btn {
    opacity: 0.7;
    pointer-events: none;
}

/* ── Member Welcome ─────────────────────────────────────────── */
.tr-member-welcome {
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.tr-member-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 8px;
}

/* ── Section Divider ────────────────────────────────────────── */
.tr-section-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

/* ── Section Header ─────────────────────────────────────────── */
.tr-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.tr-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 8px;
}

.tr-section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

/* ── Features ───────────────────────────────────────────────── */
.tr-features {
    background: var(--bg-secondary);
    padding: 80px 24px;
}

.tr-features-grid {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tr-feature-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tr-feature-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.12);
    transform: translateY(-2px);
}

.tr-feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.tr-feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tr-feature-card p {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.72;
}

/* ── Posts Section ──────────────────────────────────────────── */
.tr-posts {
    background: var(--bg);
    padding: 80px 24px;
}

.tr-posts-grid {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tr-post-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tr-post-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.tr-post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.tr-post-number {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.tr-meta-dot {
    color: var(--border);
}

.tr-post-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.tr-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.tr-post-title a:hover {
    color: var(--accent);
}

.tr-post-excerpt {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    flex: 1;
}

.tr-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.tr-read-more:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

.tr-read-more::after {
    content: '→';
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.pagination a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.pagination a:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ── Article ────────────────────────────────────────────────── */
.tr-article {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.tr-article-header {
    padding: 64px 0 40px;
}

.tr-article-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.tr-article-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 16px 0 20px;
}

.tr-article-excerpt {
    font-size: 20px;
    line-height: 1.55;
    color: var(--text-body);
    margin-bottom: 24px;
    font-weight: 400;
}

.tr-article-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tr-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tr-author-avatar {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.tr-author-avatar::after {
    content: attr(data-author);
    font-size: 13px;
}

.tr-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.tr-author-bio {
    font-size: 13px;
    color: var(--text-muted);
}

.tr-article-feature-image {
    margin: 0 0 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tr-article-feature-image img {
    width: 100%;
    height: auto;
}

/* ── Ghost Koenig Editor Styles ─────────────────────────────── */
.kg-width-wide {
    max-width: var(--max-width-wide) !important;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.kg-image {
    max-width: 100%;
    height: auto;
}

/* ── Article Content ────────────────────────────────────────── */
.tr-article-content {
    padding: 40px 0 64px;
}

.tr-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-body);
}

.tr-content h1,
.tr-content h2,
.tr-content h3,
.tr-content h4,
.tr-content h5,
.tr-content h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 2em 0 0.75em;
}

.tr-content h2 { font-size: 26px; }
.tr-content h3 { font-size: 21px; }
.tr-content h4 { font-size: 18px; }

.tr-content p {
    margin-bottom: 1.5em;
}

.tr-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tr-content a:hover {
    color: var(--accent-hover);
}

.tr-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.tr-content ul,
.tr-content ol {
    margin: 0 0 1.5em 1.5em;
}

.tr-content li {
    margin-bottom: 0.5em;
}

.tr-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 20px;
    margin: 2em 0;
    color: var(--text-body);
    font-style: italic;
}

.tr-content blockquote p {
    margin: 0;
}

.tr-content code {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--accent);
}

.tr-content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.tr-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-primary);
}

.tr-content figure {
    margin: 2em 0;
}

.tr-content figcaption {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.tr-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3em 0;
}

/* ── Article Footer ─────────────────────────────────────────── */
.tr-article-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.tr-article-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.tr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.tr-tag {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
}

.tr-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
    text-decoration: none;
}

/* ── Subscribe Nudge ────────────────────────────────────────── */
.tr-subscribe-nudge {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    margin-top: 40px;
}

.tr-subscribe-nudge h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tr-subscribe-nudge p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.gh-foot {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 32px 24px;
}

.gh-foot-inner {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.gh-foot-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.gh-foot-logo-mark {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #ffffff;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.gh-foot-brand strong {
    color: var(--text-primary);
}

.gh-foot-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
}

.gh-foot-links a,
.gh-foot-links .nav a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 12px;
    transition: color 0.15s;
}

.gh-foot-links a:hover,
.gh-foot-links .nav a:hover {
    color: var(--accent);
}

/* ── Error Pages ────────────────────────────────────────────── */
.error-template {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 24px;
    text-align: center;
}

.error-code {
    font-size: 80px;
    font-weight: 800;
    color: var(--surface);
    line-height: 1;
    display: block;
    letter-spacing: -0.05em;
}

.error-description {
    font-size: 18px;
    color: var(--text-body);
    margin: 8px 0 24px;
}

.error-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--accent);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s;
}

.error-link:hover {
    background: var(--accent-hover);
    color: #ffffff;
    text-decoration: none;
}

/* ── Ghost Portal Fixes ─────────────────────────────────────── */
.gh-portal-triggerbtn {
    display: none !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tr-hero {
        padding: 56px 16px 40px;
    }

    .tr-hero-shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tr-hero-title {
        font-size: clamp(40px, 12vw, 54px);
        line-height: 1.1;
        hyphens: none;
    }

    .tr-hero-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .tr-hero-quote {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .tr-hero-points {
        gap: 10px;
    }

    .tr-hero-points span {
        width: 100%;
        justify-content: center;
    }

    .tr-signup-panel {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .tr-signup-btn {
        width: 100%;
        height: 52px;
    }

    .tr-signup-input {
        font-size: 16px;
        height: 52px;
    }

    .tr-signup-meta,
    .tr-signup-copy {
        text-align: left;
    }

    .gh-head-inner {
        padding: 0 16px;
        height: 56px;
    }

    .gh-head-menu {
        display: none; /* Hide menu on mobile to save space */
    }

    .gh-head-actions .gh-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .tr-features,
    .tr-posts {
        padding: 48px 16px;
    }

    .tr-article {
        padding: 0 16px;
    }

    .tr-article-header {
        padding: 40px 0 24px;
    }

    .tr-article-title {
        font-size: 28px;
    }

    .tr-article-excerpt {
        font-size: 16px;
    }

    .tr-subscribe-nudge {
        padding: 24px 16px;
    }

    .gh-foot-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .gh-foot-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .gh-foot-links a,
    .gh-foot-links .nav a {
        display: block;
        padding: 12px 0;
        font-size: 15px;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .gh-foot-links a:last-child {
        border-bottom: none;
    }

    .tr-feature-icon {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .tr-posts-grid,
    .tr-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .tr-features-grid,
    .tr-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
