:root {
    --background: #0B0B0B;
    --ink: #EDE9E1;
    --accent-red: #8C2F2F;
    --accent-yellow: #C2A85C;
}

* { box-sizing: border-box; }

body {
    background: var(--background);
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 1.85;
    margin: 0;
    padding: 0;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    background-attachment: fixed;
}

/* Very subtle noise */
body::after {
    content: "";
    position: fixed;
    inset: -50%;
    background-image: url('https://www.transparenttextures.com/patterns/p6.png');
    opacity: 0.012;
    pointer-events: none;
    z-index: 9999;
}

.site {
    max-width: 960px;
    max-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Mono class for navigation, status, footer, etc. */
.mono {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.55;
}

/* Top navigation */
.main-nav {
    text-align: center;
    margin-top: 4.5rem;
    margin-bottom: 4.5rem;
    word-spacing: 0.9em;
}

.main-nav a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-yellow);
}

/* Landing header - slight asymmetry */
.landing-header {
    margin-bottom: 5rem;
}

.landing-header h1 {
    font-size: 4.8rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    margin: 0 0 0.6rem 8px;
}

.tagline {
    font-size: 1.18rem;
    font-family: "JetBrains Mono", monospace;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 100;
    opacity: 0.78;
    margin-left: 8px;
}

/* Main content */
.transmission {
    font-size: 1.06rem;
    max-width: 740px;
    margin-left: 8px;
}

.transmission p {
    margin: 1.95rem 0;
}

.welcome {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.24rem;
    text-align: center;
    color: var(--accent-yellow);
    opacity: 0.96;
    margin: 3.4rem 0 2.6rem;
}

.divider {
    text-align: center;
    margin: 4.2rem 0 3.5rem;
    opacity: 0.45;
    letter-spacing: 0.65em;
}

/* Footer */
.footer {
    margin-top: 7rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer a {
    color: inherit;
    text-decoration: none;
    margin: 0 1.1em;
    transition: color 0.3s ease;
}

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

/* Page headers for section indexes */
.page-header {
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 4.2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin: 0 0 0 8px;
}

.section-desc {
    font-size: 1.1rem;
    opacity: 0.75;
    margin-left: 8px;
    padding-bottom: 3rem;
    border-bottom: #C2A85C 0.4px solid;
}

/* Entry previews (used on index & archive pages) */
.entries-list {
    max-width: 740px;
    margin-left: 8px;
    margin-top: 3rem;
}

.entry-preview {
    margin-bottom: 3.5rem;
}

.entry-preview .date {
    margin-bottom: 0.6rem;
}

.entry-preview h2 {
    font-size: 1.55rem;
    font-weight: 400;
    margin: 0 0 0.8rem 0;
}

.entry-preview h2 a {
    color: inherit;
    text-decoration: none;
}

.entry-preview h2 a:hover {
    color: var(--accent-yellow);
}

.entry-preview .excerpt {
    opacity: 0.85;
}

/* Individual entry page */
.entry {
    max-width: 740px;
    margin-left: 8px;
    padding-top: 3rem;
}

.entry .date {
    margin-bottom: 0.2rem;
}

.entry h1 {
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.entry .content {
    font-size: 1.08rem;
    line-height: 1.9;
    padding-left: 1.8rem;
}

.entry .content p {
    margin: 1.7rem 0;
}

/* Breadcrumbs */
.breadcrumbs {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 2.5rem;
    letter-spacing: 0.08em;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent-yellow);
}

/* Sticky footer */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Stronger asymmetry on desktop */
@media (min-width: 860px) {
    .site {
        max-width: 1020px;
    }
    
    .transmission,
    .entries-list,
    .entry {
        margin-left: 40px;     /* more noticeable left offset */
    }
    
    .landing-header h1,
    .page-header h1 {
        margin-left: 0px;
    }
    
    .tagline,
    .section-desc {
        margin-left: 0px;
    }
}

/* Section intro description (mono, light, italic) */
.section-desc {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 400;
    opacity: 0.65;
    line-height: 1.65;
    max-width: 680px;
    margin: 1rem 0 4.5rem 0;
}

/* Dates - clean mono */
.date {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    opacity: 0.4;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

/* Micro-interactions — very gentle, no red dates */
.main-nav a,
.footer a,
.entry-preview h2 a,
.breadcrumbs a {
    transition: color 0.3s ease;
}

.main-nav a:hover,
.footer a:hover,
.entry-preview h2 a:hover,
.breadcrumbs a:hover {
    color: var(--accent-yellow);
}

.entry-preview h2 a:hover {
    color: var(--accent-yellow);
    font-style: italic;
    transition: color 0.4s ease, font-style 0.4s ease;
}

.entry h1 {
    transition: color 0.4s ease;
}

.entry h1:hover {
    color: var(--accent-yellow);
}

/* Fragments - stable 3-column grid */
.fragments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    margin-left: 8px;
    align-items: start;
}

@media (max-width: 1100px) {
    .fragments-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .fragments-grid { grid-template-columns: 1fr; }
}

.fragment-note {
    background: #111111;
    border: 1px solid #2a2a2a;
    padding: 1.8rem 1.8rem 1.6rem;
    position: relative;
    transition: all 0.3s ease;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
}

.fragment-note:hover {
    background: #0f0f0f;
    border-color: #3a3a3a;
}

/* Tape strip - more realistic variations */
.tape {
    position: absolute;
    background: #8C2F2F;
    color: #fff;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.76rem;
    padding: 4px 15px 3px;
    letter-spacing: 0.08em;
    box-shadow: 2px 4px 6px rgba(0,0,0,0.4);
    z-index: 2;
    white-space: nowrap;
    transform-origin: center;
}

/* Variation 1 - slight left, negative rotation */
.tape-1 { top: -14px; left: 18px; transform: rotate(-8deg); }

/* Variation 2 - more centered, positive rotation */
.tape-2 { top: -11px; left: 50%; transform: translateX(-50%) rotate(5deg); }

/* Variation 3 - right side, stronger rotation */
.tape-3 { top: -16px; right: 22px; transform: rotate(9deg); }

/* Variation 4 - almost flat, slightly left */
.tape-4 { top: -12px; left: 25px; transform: rotate(-3deg); }

/* Variation 5 - stronger left tilt */
.tape-5 { top: -13px; left: 15px; transform: rotate(-12deg); }

/* Title and date */
.note-header {
    margin-top: 18px;   /* space for the tape */
    cursor: pointer;
}

.note-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.date {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Content */
.note-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    font-size: 0.86rem;
    line-height: 1.82;
}

.note-content p {
    margin: 1.15rem 0;
}

/* What If individual entry styling */
.entry-header {
    margin-bottom: 2.5rem;
}

.section-label {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    opacity: 0.6;
    margin-bottom: 0.6rem;
}

.entry-meta {
    font-size: 0.9rem;
    opacity: 0.65;
    font-style: italic;
    margin-top: 0.4rem;
}

.entry-content {
    font-size: 1.08rem;
    line-height: 1.85;
    max-width: 720px;
}

.entry-content p {
    margin-bottom: 1.8rem;
}

.entry-content p.question {
    font-style: italic;
    opacity: 0.25;
    margin: 2rem 0;
}

.entry-content p.intro,
.entry-content p.closing {
    font-weight: 500;
}

/* What If - Two-column experimental layout */
.whatif-entry {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 4.5rem;
    max-width: 1100px;
    margin: 8rem 0 0 0;
}

.whatif-left {
    padding-top: 0.5rem;
}

.whatif-left .date {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}

.whatif-left h1 {
    font-size: 4.8rem;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 1rem 0;        /* removed extra margin */
}

.entry-meta {
    font-size: 0.95rem;
    opacity: 0.7;
    font-style: italic;
}

.whatif-right {
    font-size: 1.08rem;
    line-height: 1.85;
}

.whatif-right .entry-content p {
    margin-bottom: 1.8rem;
}

.whatif-right .question {
    font-family: "JetBrains Mono", monospace;
    background: rgba(194, 168, 92, 0.08);   /* subtle yellow background */
    padding: 1.1rem 1.4rem;
    margin: 2.2rem 0;
    border-left: 1px solid var(--accent-yellow);
    color: var(--accent-yellow);
}

/* Mobile */
@media (max-width: 900px) {
    .whatif-entry {
        grid-template-columns: 1fr;
        gap: 2.8rem;
    }
    
    .whatif-left h1 {
        font-size: 2.3rem;
    }
}

/* Glitch Title - Only on Hover */
.glitch-title {
    font-size: 2.85rem;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    position: relative;
    color: var(--ink);
    display: inline-block;
    transition: color 0.3s ease;
}

.glitch-title:hover {
    color: var(--ink);
}

/* Glitch layers - hidden by default, shown on hover */
.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.glitch-title:hover::before,
.glitch-title:hover::after {
    opacity: 1;
}

.glitch-title::before {
    left: 2px;
    text-shadow: -2px 0 #8C2F2F;
    animation: glitch-anim 0.8s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch-title::after {
    left: -2px;
    text-shadow: 2px 0 #C2A85C;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitch-anim {
    0%   { clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); }
    20%  { clip-path: polygon(0 10%, 100% 10%, 100% 40%, 0 40%); }
    40%  { clip-path: polygon(0 25%, 100% 25%, 100% 55%, 0 55%); }
    60%  { clip-path: polygon(0 40%, 100% 40%, 100% 70%, 0 70%); }
    80%  { clip-path: polygon(0 55%, 100% 55%, 100% 85%, 0 85%); }
    100% { clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%); }
}

@keyframes glitch-anim2 {
    0%   { clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); }
    25%  { clip-path: polygon(0 5%, 100% 5%, 100% 35%, 0 35%); }
    50%  { clip-path: polygon(0 30%, 100% 30%, 100% 60%, 0 60%); }
    75%  { clip-path: polygon(0 50%, 100% 50%, 100% 80%, 0 80%); }
}

/* Archive - Months as accordions */
.month-group {
    margin-bottom: 3rem;
}

.month-header {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    opacity: 0.75;
    padding: 0.8rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3a3a;
}

.toggle-icon {
    font-size: 1.1rem;
    opacity: 0.6;
}

.month-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.archive-section {
    margin-bottom: 3.5rem;
    border-bottom: #111 0.4px solid;
}

.section-header {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    opacity: 0.35;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.entry-preview {
    margin-bottom: 1.6rem;
}

.entry-preview h2 {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
}

.entry-preview h2 a {
    color: inherit;
    text-decoration: none;
}

.entry-preview h2 a:hover {
    color: var(--accent-yellow);
}

// RSS feed link in footer

.footer a[href$="feed.xml"] {
    color: var(--accent-yellow);
}