/* KARELOVA JOURNAL — css/style.css */

@theme {
  --color-bg-primary:   #F7F3E8;
  --color-bg-secondary: #EEE9DA;
  --color-ink-primary:  #1C1712;
  --color-ink-muted:    #8C8070;
  --color-accent:       #C8860A;
  --font-display: 'Clash Display', serif;
  --font-body:    'Satoshi', sans-serif;
}

/* ─── BASE RESET ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-ink-primary);
  scroll-behavior: smooth;
}
body { line-height: 1.6; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── SPACING ────────────────────────────────────────────────────────────── */
.p-0   { padding: 0; }
.p-2   { padding: 0.5rem; }
.p-4   { padding: 1rem; }
.p-6   { padding: 1.5rem; }
.p-8   { padding: 2rem; }
.py-1  { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2  { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3  { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4  { padding-top: 1rem; padding-bottom: 1rem; }
.py-5  { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6  { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8  { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.px-3  { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4  { padding-left: 1rem; padding-right: 1rem; }
.px-5  { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6  { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8  { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.pt-1  { padding-top: 0.25rem; }
.pt-2  { padding-top: 0.5rem; }
.pt-3  { padding-top: 0.75rem; }
.pt-4  { padding-top: 1rem; }
.pt-6  { padding-top: 1.5rem; }
.pt-8  { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.pb-1  { padding-bottom: 0.25rem; }
.pb-2  { padding-bottom: 0.5rem; }
.pb-3  { padding-bottom: 0.75rem; }
.pb-4  { padding-bottom: 1rem; }
.pb-6  { padding-bottom: 1.5rem; }
.pb-8  { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pl-4  { padding-left: 1rem; }
.pl-6  { padding-left: 1.5rem; }
.pr-4  { padding-right: 1rem; }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mt-24 { margin-top: 6rem; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.ml-0  { margin-left: 0; }
.ml-2  { margin-left: 0.5rem; }
.ml-4  { margin-left: 1rem; }
.mr-2  { margin-right: 0.5rem; }
.mr-4  { margin-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-0    { margin-left: 0; margin-right: 0; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-x-2 { column-gap: 0.5rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-2 { row-gap: 0.5rem; }
.gap-y-4 { row-gap: 1rem; }
.gap-y-6 { row-gap: 1.5rem; }
.gap-y-8 { row-gap: 2rem; }
.gap-y-12 { row-gap: 3rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* ─── SIZING ─────────────────────────────────────────────────────────────── */
.w-full  { width: 100%; }
.w-auto  { width: auto; }
.w-1\/2  { width: 50%; }
.w-1\/3  { width: 33.333333%; }
.w-2\/3  { width: 66.666667%; }
.w-3\/4  { width: 75%; }
.w-4     { width: 1rem; }
.w-6     { width: 1.5rem; }
.w-8     { width: 2rem; }
.w-10    { width: 2.5rem; }
.w-12    { width: 3rem; }
.w-16    { width: 4rem; }
.w-20    { width: 5rem; }
.w-24    { width: 6rem; }
.w-32    { width: 8rem; }
.w-48    { width: 12rem; }
.w-64    { width: 16rem; }
.w-px    { width: 1px; }
.h-full  { height: 100%; }
.h-auto  { height: auto; }
.h-1     { height: 0.25rem; }
.h-2     { height: 0.5rem; }
.h-4     { height: 1rem; }
.h-6     { height: 1.5rem; }
.h-8     { height: 2rem; }
.h-10    { height: 2.5rem; }
.h-12    { height: 3rem; }
.h-16    { height: 4rem; }
.h-20    { height: 5rem; }
.h-24    { height: 6rem; }
.h-28    { height: 7rem; }
.h-32    { height: 8rem; }
.h-48    { height: 12rem; }
.h-64    { height: 16rem; }
.h-80    { height: 20rem; }
.h-96    { height: 24rem; }
.h-px    { height: 1px; }
.min-h-screen { min-height: 100vh; }
.min-h-\[60vh\] { min-height: 60vh; }
.min-h-\[50vh\] { min-height: 50vh; }
.min-h-\[40vh\] { min-height: 40vh; }
.min-h-\[320px\] { min-height: 320px; }
.min-h-\[200px\] { min-height: 200px; }
.max-w-xs    { max-width: 20rem; }
.max-w-sm    { max-width: 24rem; }
.max-w-md    { max-width: 28rem; }
.max-w-lg    { max-width: 32rem; }
.max-w-xl    { max-width: 36rem; }
.max-w-2xl   { max-width: 42rem; }
.max-w-3xl   { max-width: 48rem; }
.max-w-4xl   { max-width: 56rem; }
.max-w-5xl   { max-width: 64rem; }
.max-w-6xl   { max-width: 72rem; }
.max-w-7xl   { max-width: 80rem; }
.max-w-none  { max-width: none; }
.w-\[calc\(100\%-1\.5rem\)\] { width: calc(100% - 1.5rem); }
.w-\[calc\(100\%-2rem\)\]   { width: calc(100% - 2rem); }

/* ─── FLEX / GRID ────────────────────────────────────────────────────────── */
.flex          { display: flex; }
.inline-flex   { display: inline-flex; }
.flex-col      { flex-direction: column; }
.flex-row      { flex-direction: row; }
.flex-wrap     { flex-wrap: wrap; }
.flex-nowrap   { flex-wrap: nowrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow     { flex-grow: 1; }
.flex-1        { flex: 1 1 0%; }
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }
.self-start   { align-self: flex-start; }
.self-center  { align-self: center; }
.self-end     { align-self: flex-end; }
.self-stretch { align-self: stretch; }
.grid          { display: grid; }
.grid-cols-1   { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4   { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5   { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-12  { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-span-1    { grid-column: span 1 / span 1; }
.col-span-2    { grid-column: span 2 / span 2; }
.col-span-3    { grid-column: span 3 / span 3; }
.col-span-4    { grid-column: span 4 / span 4; }
.col-span-5    { grid-column: span 5 / span 5; }
.col-span-6    { grid-column: span 6 / span 6; }
.col-span-7    { grid-column: span 7 / span 7; }
.col-span-8    { grid-column: span 8 / span 8; }
.col-span-full { grid-column: 1 / -1; }
.row-span-2    { grid-row: span 2 / span 2; }
.auto-rows-fr  { grid-auto-rows: 1fr; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.font-display  { font-family: var(--font-display); }
.font-body     { font-family: var(--font-body); }
.font-mono     { font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace; }
.font-sans     { font-family: var(--font-body); }
.font-serif    { font-family: var(--font-display); }
.text-\[0\.65rem\] { font-size: 0.65rem; line-height: 1rem; }
.text-xs    { font-size: 0.75rem;  line-height: 1rem; }
.text-sm    { font-size: 0.875rem; line-height: 1.25rem; }
.text-base  { font-size: 1rem;     line-height: 1.5rem; }
.text-lg    { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl    { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl   { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl   { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl   { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl   { font-size: 3rem;     line-height: 1.1; }
.text-6xl   { font-size: 3.75rem;  line-height: 1; }
.text-7xl   { font-size: 4.5rem;   line-height: 1; }
.text-8xl   { font-size: 6rem;     line-height: 1; }
.text-9xl   { font-size: 8rem;     line-height: 1; }
.text-\[clamp\(2\.5rem\2C 5vw\2C 4\.5rem\)\] { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.05; }
.text-\[clamp\(2rem\2C 4vw\2C 3\.5rem\)\]    { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; }
.text-\[clamp\(1\.5rem\2C 3vw\2C 2\.5rem\)\] { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; }
.font-thin      { font-weight: 100; }
.font-light     { font-weight: 300; }
.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black     { font-weight: 900; }
.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.leading-normal  { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose   { line-height: 2; }
.leading-\[1\.1\] { line-height: 1.1; }
.leading-\[1\.15\]{ line-height: 1.15; }
.leading-\[1\.05\]{ line-height: 1.05; }
.tracking-tightest { letter-spacing: -0.08em; }
.tracking-tight    { letter-spacing: -0.05em; }
.tracking-snug     { letter-spacing: -0.02em; }
.tracking-normal   { letter-spacing: 0em; }
.tracking-wide     { letter-spacing: 0.025em; }
.tracking-wider    { letter-spacing: 0.05em; }
.tracking-widest   { letter-spacing: 0.1em; }
.tracking-\[0\.2em\]  { letter-spacing: 0.2em; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.uppercase    { text-transform: uppercase; }
.lowercase    { text-transform: lowercase; }
.capitalize   { text-transform: capitalize; }
.normal-case  { text-transform: none; }
.italic       { font-style: italic; }
.not-italic   { font-style: normal; }
.underline    { text-decoration: underline; }
.no-underline { text-decoration: none; }
.line-through { text-decoration: line-through; }
.underline-offset-2 { text-underline-offset: 2px; }
.underline-offset-4 { text-underline-offset: 4px; }
.decoration-1 { text-decoration-thickness: 1px; }
.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-justify { text-align: justify; }
.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.break-words  { overflow-wrap: break-word; word-break: break-word; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-none    { list-style-type: none; }
.list-disc    { list-style-type: disc; }
.list-inside  { list-style-position: inside; }

/* ─── COLORS — TEXT ──────────────────────────────────────────────────────── */
.text-\[\#F7F3E8\]  { color: #F7F3E8; }
.text-\[\#EEE9DA\]  { color: #EEE9DA; }
.text-\[\#1C1712\]  { color: #1C1712; }
.text-\[\#8C8070\]  { color: #8C8070; }
.text-\[\#C8860A\]  { color: #C8860A; }
.text-\[\#A06C08\]  { color: #A06C08; }
.text-\[\#6B5C4A\]  { color: #6B5C4A; }
.text-\[\#4A3728\]  { color: #4A3728; }
.text-\[\#ffffff\]  { color: #ffffff; }
.text-\[\#D8E2DC\]  { color: #D8E2DC; }
.text-white  { color: #ffffff; }
.text-black  { color: #000000; }

/* ─── COLORS — BACKGROUND ────────────────────────────────────────────────── */
.bg-\[\#F7F3E8\]  { background-color: #F7F3E8; }
.bg-\[\#EEE9DA\]  { background-color: #EEE9DA; }
.bg-\[\#1C1712\]  { background-color: #1C1712; }
.bg-\[\#2A211A\]  { background-color: #2A211A; }
.bg-\[\#3A2D22\]  { background-color: #3A2D22; }
.bg-\[\#8C8070\]  { background-color: #8C8070; }
.bg-\[\#C8860A\]  { background-color: #C8860A; }
.bg-\[\#A06C08\]  { background-color: #A06C08; }
.bg-\[\#D4920C\]  { background-color: #D4920C; }
.bg-\[\#F0E8D0\]  { background-color: #F0E8D0; }
.bg-\[\#E8E0C8\]  { background-color: #E8E0C8; }
.bg-transparent  { background-color: transparent; }
.bg-white        { background-color: #ffffff; }

/* ─── COLORS — BORDER ────────────────────────────────────────────────────── */
.border-\[\#F7F3E8\]  { border-color: #F7F3E8; }
.border-\[\#EEE9DA\]  { border-color: #EEE9DA; }
.border-\[\#1C1712\]  { border-color: #1C1712; }
.border-\[\#8C8070\]  { border-color: #8C8070; }
.border-\[\#C8860A\]  { border-color: #C8860A; }
.border-\[\#D4920C\]  { border-color: #D4920C; }
.border-\[\#6B5C4A\]  { border-color: #6B5C4A; }
.border-white         { border-color: #ffffff; }

/* Opacity muted border variants */
.border-\[\#8C8070\]\/10 { border-color: rgba(140,128,112,0.10); }
.border-\[\#8C8070\]\/15 { border-color: rgba(140,128,112,0.15); }
.border-\[\#8C8070\]\/20 { border-color: rgba(140,128,112,0.20); }
.border-\[\#8C8070\]\/25 { border-color: rgba(140,128,112,0.25); }
.border-\[\#8C8070\]\/30 { border-color: rgba(140,128,112,0.30); }
.border-\[\#8C8070\]\/40 { border-color: rgba(140,128,112,0.40); }
.border-\[\#8C8070\]\/50 { border-color: rgba(140,128,112,0.50); }
.border-\[\#1C1712\]\/10 { border-color: rgba(28,23,18,0.10); }
.border-\[\#1C1712\]\/20 { border-color: rgba(28,23,18,0.20); }
.border-\[\#C8860A\]\/30 { border-color: rgba(200,134,10,0.30); }
.border-\[\#C8860A\]\/50 { border-color: rgba(200,134,10,0.50); }

/* ─── BORDERS ────────────────────────────────────────────────────────────── */
.border      { border-width: 1px; border-style: solid; }
.border-0    { border-width: 0; }
.border-2    { border-width: 2px; border-style: solid; }
.border-4    { border-width: 4px; border-style: solid; }
.border-t    { border-top-width: 1px; border-top-style: solid; }
.border-t-2  { border-top-width: 2px; border-top-style: solid; }
.border-b    { border-bottom-width: 1px; border-bottom-style: solid; }
.border-b-2  { border-bottom-width: 2px; border-bottom-style: solid; }
.border-l    { border-left-width: 1px; border-left-style: solid; }
.border-l-2  { border-left-width: 2px; border-left-style: solid; }
.border-l-4  { border-left-width: 4px; border-left-style: solid; }
.border-r    { border-right-width: 1px; border-right-style: solid; }
.border-r-2  { border-right-width: 2px; border-right-style: solid; }
.rounded-none { border-radius: 0; }
.rounded-sm   { border-radius: 0.125rem; }
.rounded      { border-radius: 0.25rem; }
.rounded-md   { border-radius: 0.375rem; }
.rounded-lg   { border-radius: 0.5rem; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border-dashed  { border-style: dashed; }
.border-dotted  { border-style: dotted; }

/* ─── DISPLAY / POSITION ────────────────────────────────────────────────── */
.block          { display: block; }
.inline         { display: inline; }
.inline-block   { display: inline-block; }
.hidden         { display: none; }
.invisible      { visibility: hidden; }
.relative       { position: relative; }
.absolute       { position: absolute; }
.fixed          { position: fixed; }
.sticky         { position: sticky; }
.inset-0        { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0      { left: 0; right: 0; }
.top-0          { top: 0; }
.top-4          { top: 1rem; }
.top-8          { top: 2rem; }
.top-full       { top: 100%; }
.right-0        { right: 0; }
.right-4        { right: 1rem; }
.bottom-0       { bottom: 0; }
.bottom-4       { bottom: 1rem; }
.left-0         { left: 0; }
.left-4         { left: 1rem; }
.left-1\/2      { left: 50%; }
.z-0            { z-index: 0; }
.z-10           { z-index: 10; }
.z-20           { z-index: 20; }
.z-30           { z-index: 30; }
.z-40           { z-index: 40; }
.z-50           { z-index: 50; }
.overflow-hidden   { overflow: hidden; }
.overflow-visible  { overflow: visible; }
.overflow-auto     { overflow: auto; }
.overflow-scroll   { overflow: scroll; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto   { overflow-y: auto; }
.cursor-pointer    { cursor: pointer; }
.cursor-default    { cursor: default; }
.pointer-events-none { pointer-events: none; }
.select-none       { user-select: none; }

/* ─── EFFECTS ────────────────────────────────────────────────────────────── */
.opacity-0     { opacity: 0; }
.opacity-25    { opacity: 0.25; }
.opacity-50    { opacity: 0.50; }
.opacity-60    { opacity: 0.60; }
.opacity-75    { opacity: 0.75; }
.opacity-80    { opacity: 0.80; }
.opacity-90    { opacity: 0.90; }
.opacity-100   { opacity: 1; }
.shadow-none   { box-shadow: none; }
.shadow-sm     { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow        { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1); }
.shadow-md     { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.shadow-lg     { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl     { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-\[4px_4px_0_\#1C1712\]  { box-shadow: 4px 4px 0 #1C1712; }
.shadow-\[6px_6px_0_\#1C1712\]  { box-shadow: 6px 6px 0 #1C1712; }
.shadow-\[8px_8px_0_\#1C1712\]  { box-shadow: 8px 8px 0 #1C1712; }
.shadow-\[2px_2px_0_\#C8860A\]  { box-shadow: 2px 2px 0 #C8860A; }
.shadow-\[4px_4px_0_\#C8860A\]  { box-shadow: 4px 4px 0 #C8860A; }
.backdrop-blur-xl  { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.backdrop-blur-md  { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-sm  { backdrop-filter: blur(4px);  -webkit-backdrop-filter: blur(4px); }
.transition              { transition-property: color,background-color,border-color,opacity,transform,box-shadow; transition-duration: 200ms; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.transition-colors       { transition-property: color,background-color,border-color,text-decoration-color; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.transition-opacity      { transition-property: opacity; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.transition-transform    { transition-property: transform; transition-duration: 300ms; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.transition-all          { transition-property: all; transition-duration: 200ms; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.duration-100  { transition-duration: 100ms; }
.duration-150  { transition-duration: 150ms; }
.duration-200  { transition-duration: 200ms; }
.duration-300  { transition-duration: 300ms; }
.duration-500  { transition-duration: 500ms; }
.duration-700  { transition-duration: 700ms; }
.ease-in-out   { transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.ease-out      { transition-timing-function: cubic-bezier(0,0,0.2,1); }
.scale-95      { transform: scale(0.95); }
.scale-100     { transform: scale(1); }
.scale-105     { transform: scale(1.05); }
.scale-110     { transform: scale(1.10); }
.translate-y-0     { transform: translateY(0); }
.translate-y-1     { transform: translateY(0.25rem); }
.translate-y-2     { transform: translateY(0.5rem); }
.-translate-y-1    { transform: translateY(-0.25rem); }
.-translate-y-2    { transform: translateY(-0.5rem); }
.-translate-y-px   { transform: translateY(-1px); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.rotate-90   { transform: rotate(90deg); }
.-rotate-90  { transform: rotate(-90deg); }
.rotate-180  { transform: rotate(180deg); }

/* ─── ASPECT RATIO ───────────────────────────────────────────────────────── */
.aspect-square     { aspect-ratio: 1 / 1; }
.aspect-video      { aspect-ratio: 16 / 9; }
.aspect-\[3\/2\]   { aspect-ratio: 3 / 2; }
.aspect-\[4\/3\]   { aspect-ratio: 4 / 3; }
.aspect-\[16\/9\]  { aspect-ratio: 16 / 9; }
.aspect-\[21\/9\]  { aspect-ratio: 21 / 9; }
.aspect-\[2\/1\]   { aspect-ratio: 2 / 1; }
.object-cover      { object-fit: cover; }
.object-contain    { object-fit: contain; }
.object-center     { object-position: center; }
.object-top        { object-position: top; }

/* ─── FOCUS ──────────────────────────────────────────────────────────────── */
.focus\:outline-none:focus         { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus               { box-shadow: 0 0 0 2px #C8860A; }
.focus\:border-\[\#C8860A\]:focus  { border-color: #C8860A; }
.focus\:border-\[\#8C8070\]:focus  { border-color: #8C8070; }
.outline-none                      { outline: none; }

/* ─── HOVER ──────────────────────────────────────────────────────────────── */
.hover\:text-\[\#C8860A\]:hover   { color: #C8860A; }
.hover\:text-\[\#A06C08\]:hover   { color: #A06C08; }
.hover\:text-\[\#1C1712\]:hover   { color: #1C1712; }
.hover\:text-\[\#F7F3E8\]:hover   { color: #F7F3E8; }
.hover\:text-white:hover          { color: #ffffff; }
.hover\:bg-\[\#C8860A\]:hover     { background-color: #C8860A; }
.hover\:bg-\[\#A06C08\]:hover     { background-color: #A06C08; }
.hover\:bg-\[\#1C1712\]:hover     { background-color: #1C1712; }
.hover\:bg-\[\#EEE9DA\]:hover     { background-color: #EEE9DA; }
.hover\:bg-\[\#F0E8D0\]:hover     { background-color: #F0E8D0; }
.hover\:border-\[\#C8860A\]:hover { border-color: #C8860A; }
.hover\:border-\[\#1C1712\]:hover { border-color: #1C1712; }
.hover\:underline:hover           { text-decoration: underline; }
.hover\:no-underline:hover        { text-decoration: none; }
.hover\:opacity-80:hover          { opacity: 0.8; }
.hover\:opacity-90:hover          { opacity: 0.9; }
.hover\:scale-105:hover           { transform: scale(1.05); }
.hover\:shadow-lg:hover           { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.hover\:shadow-\[4px_4px_0_\#C8860A\]:hover { box-shadow: 4px 4px 0 #C8860A; }

/* ─── GROUP HOVER ────────────────────────────────────────────────────────── */
.group:hover .group-hover\:scale-105    { transform: scale(1.05); }
.group:hover .group-hover\:scale-110    { transform: scale(1.10); }
.group:hover .group-hover\:underline    { text-decoration: underline; }
.group:hover .group-hover\:text-\[\#C8860A\] { color: #C8860A; }
.group:hover .group-hover\:text-\[\#A06C08\] { color: #A06C08; }
.group:hover .group-hover\:opacity-90  { opacity: 0.9; }
.group:hover .group-hover\:border-\[\#C8860A\] { border-color: #C8860A; }
.group { /* marker class */ }

/* ─── MISC ───────────────────────────────────────────────────────────────── */
.not-italic   { font-style: normal; }
.sr-only      { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.resize-none  { resize: none; }
.appearance-none { appearance: none; -webkit-appearance: none; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── RESPONSIVE — md (≥768px) ──────────────────────────────────────────── */
@media (min-width: 768px) {
  .md\:flex           { display: flex; }
  .md\:inline-flex    { display: inline-flex; }
  .md\:block          { display: block; }
  .md\:hidden         { display: none; }
  .md\:inline-block   { display: inline-block; }
  .md\:flex-row       { flex-direction: row; }
  .md\:flex-col       { flex-direction: column; }
  .md\:items-start    { align-items: flex-start; }
  .md\:items-center   { align-items: center; }
  .md\:items-end      { align-items: flex-end; }
  .md\:justify-start  { justify-content: flex-start; }
  .md\:justify-center { justify-content: center; }
  .md\:justify-end    { justify-content: flex-end; }
  .md\:justify-between { justify-content: space-between; }
  .md\:w-auto         { width: auto; }
  .md\:w-1\/2         { width: 50%; }
  .md\:w-1\/3         { width: 33.333333%; }
  .md\:w-2\/3         { width: 66.666667%; }
  .md\:w-3\/4         { width: 75%; }
  .md\:w-full         { width: 100%; }
  .md\:h-32           { height: 8rem; }
  .md\:h-48           { height: 12rem; }
  .md\:h-64           { height: 16rem; }
  .md\:h-80           { height: 20rem; }
  .md\:h-96           { height: 24rem; }
  .md\:min-h-screen   { min-height: 100vh; }
  .md\:min-h-\[70vh\] { min-height: 70vh; }
  .md\:min-h-\[60vh\] { min-height: 60vh; }
  .md\:min-h-\[50vh\] { min-height: 50vh; }
  .md\:p-8            { padding: 2rem; }
  .md\:p-12           { padding: 3rem; }
  .md\:py-8           { padding-top: 2rem; padding-bottom: 2rem; }
  .md\:py-12          { padding-top: 3rem; padding-bottom: 3rem; }
  .md\:py-16          { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:py-20          { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-24          { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:py-32          { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:px-8           { padding-left: 2rem; padding-right: 2rem; }
  .md\:px-12          { padding-left: 3rem; padding-right: 3rem; }
  .md\:pt-0           { padding-top: 0; }
  .md\:pt-8           { padding-top: 2rem; }
  .md\:pt-16          { padding-top: 4rem; }
  .md\:pb-0           { padding-bottom: 0; }
  .md\:mt-0           { margin-top: 0; }
  .md\:mt-4           { margin-top: 1rem; }
  .md\:mt-8           { margin-top: 2rem; }
  .md\:mt-12          { margin-top: 3rem; }
  .md\:mb-0           { margin-bottom: 0; }
  .md\:mb-4           { margin-bottom: 1rem; }
  .md\:mb-8           { margin-bottom: 2rem; }
  .md\:mb-12          { margin-bottom: 3rem; }
  .md\:gap-4          { gap: 1rem; }
  .md\:gap-6          { gap: 1.5rem; }
  .md\:gap-8          { gap: 2rem; }
  .md\:gap-12         { gap: 3rem; }
  .md\:gap-16         { gap: 4rem; }
  .md\:gap-y-12       { row-gap: 3rem; }
  .md\:text-left      { text-align: left; }
  .md\:text-center    { text-align: center; }
  .md\:text-4xl       { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl       { font-size: 3rem; line-height: 1.1; }
  .md\:text-6xl       { font-size: 3.75rem; line-height: 1; }
  .md\:text-7xl       { font-size: 4.5rem; line-height: 1; }
  .md\:text-8xl       { font-size: 6rem; line-height: 1; }
  .md\:grid-cols-2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4    { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5    { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:col-span-1     { grid-column: span 1 / span 1; }
  .md\:col-span-2     { grid-column: span 2 / span 2; }
  .md\:col-span-3     { grid-column: span 3 / span 3; }
  .md\:col-span-4     { grid-column: span 4 / span 4; }
  .md\:col-span-full  { grid-column: 1 / -1; }
  .md\:aspect-\[21\/9\]  { aspect-ratio: 21 / 9; }
  .md\:aspect-\[16\/9\]  { aspect-ratio: 16 / 9; }
  .md\:border-l       { border-left-width: 1px; border-left-style: solid; }
  .md\:border-0       { border-width: 0; }
  .md\:max-w-lg       { max-width: 32rem; }
  .md\:max-w-2xl      { max-width: 42rem; }
  .md\:max-w-3xl      { max-width: 48rem; }
  .md\:max-w-4xl      { max-width: 56rem; }
  .md\:sticky         { position: sticky; }
  .md\:top-8          { top: 2rem; }
  .md\:rotate-0       { transform: rotate(0deg); }
  .md\:flex-wrap      { flex-wrap: wrap; }
  .md\:flex-nowrap    { flex-wrap: nowrap; }
  .md\:self-start     { align-self: flex-start; }
  .md\:self-center    { align-self: center; }
}

/* ─── RESPONSIVE — lg (≥1024px) ─────────────────────────────────────────── */
@media (min-width: 1024px) {
  .lg\:flex           { display: flex; }
  .lg\:hidden         { display: none; }
  .lg\:block          { display: block; }
  .lg\:inline-block   { display: inline-block; }
  .lg\:flex-row       { flex-direction: row; }
  .lg\:items-center   { align-items: center; }
  .lg\:justify-between { justify-content: space-between; }
  .lg\:w-1\/2         { width: 50%; }
  .lg\:w-2\/3         { width: 66.666667%; }
  .lg\:w-3\/4         { width: 75%; }
  .lg\:w-1\/3         { width: 33.333333%; }
  .lg\:grid-cols-3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4    { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-2     { grid-column: span 2 / span 2; }
  .lg\:col-span-3     { grid-column: span 3 / span 3; }
  .lg\:gap-16         { gap: 4rem; }
  .lg\:py-32          { padding-top: 8rem; padding-bottom: 8rem; }
  .lg\:px-12          { padding-left: 3rem; padding-right: 3rem; }
  .lg\:text-7xl       { font-size: 4.5rem; line-height: 1; }
  .lg\:text-8xl       { font-size: 6rem; line-height: 1; }
}

/* ─── MARQUEE STRIP ──────────────────────────────────────────────────────── */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

/* ─── ACCORDION / FAQ ────────────────────────────────────────────────────── */
.accordion-body {
  display: none;
  overflow: hidden;
}
.accordion-body.is-open {
  display: block;
}
.accordion-icon {
  transition: transform 0.25s ease;
}
.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
}

/* ─── ARTICLE BODY PROSE ─────────────────────────────────────────────────── */
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1C1712;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1C1712;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1C1712;
  margin-bottom: 1.25rem;
}
.prose ul, .prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.prose li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1C1712;
  margin-bottom: 0.4rem;
}
.prose blockquote {
  border-left: 4px solid #C8860A;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4A3728;
  font-size: 1.125rem;
  line-height: 1.6;
}
.prose strong { font-weight: 700; color: #1C1712; }
.prose a { color: #C8860A; text-decoration: underline; text-underline-offset: 3px; }

/* ─── NAV LINK ACTIVE STATE ─────────────────────────────────────────────── */
.nav-link {
  position: relative;
  transition: color 150ms;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #C8860A;
  transition: width 200ms ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #C8860A; }

/* ─── STATS STRIP ────────────────────────────────────────────────────────── */
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: #C8860A;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8C8070;
  margin-top: 0.5rem;
}

/* ─── ARTICLE CARD HOVER ─────────────────────────────────────────────────── */
.article-card-img {
  transition: transform 500ms cubic-bezier(0.4,0,0.2,1);
}
.article-card:hover .article-card-img {
  transform: scale(1.05);
}

/* ─── FORM INPUTS ────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #1C1712;
  background-color: #F7F3E8;
  border: 1px solid rgba(140,128,112,0.30);
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 150ms;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: #C8860A;
}

/* ─── DIVIDER LINES ──────────────────────────────────────────────────────── */
.divider-line {
  border: none;
  border-top: 1px solid rgba(140,128,112,0.25);
  margin: 2rem 0;
}
.divider-accent {
  border: none;
  border-top: 2px solid #C8860A;
  width: 3rem;
  margin: 1.5rem 0;
}

/* ─── PILL / TAG ─────────────────────────────────────────────────────────── */
.tag-pill {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(200,134,10,0.40);
  color: #C8860A;
  background-color: rgba(200,134,10,0.06);
}

/* ─── PULL QUOTE ─────────────────────────────────────────────────────────── */
.pull-quote {
  border-left: 4px solid #C8860A;
  padding: 1.5rem 2rem;
  background-color: #EEE9DA;
  margin: 2.5rem 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1C1712;
  line-height: 1.5;
  font-style: italic;
}

/* ─── KEY TAKEAWAYS ─────────────────────────────────────────────────────── */
.takeaways-box {
  background-color: #EEE9DA;
  border-left: 4px solid #C8860A;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.takeaways-box h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C8860A;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.takeaways-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.takeaways-box li {
  font-size: 0.9375rem;
  color: #1C1712;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.55;
}
.takeaways-box li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #C8860A;
  font-weight: 700;
}

/* ─── AUTHOR BIO BOX ─────────────────────────────────────────────────────── */
.author-bio-box {
  background-color: #EEE9DA;
  border-top: 2px solid #C8860A;
  padding: 2rem;
  margin-top: 3rem;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #F7F3E8;
  border-bottom: 1px solid rgba(140,128,112,0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  background-color: #EEE9DA;
  border-top: 1px solid rgba(140,128,112,0.20);
}

/* ─── HERO SECTION ───────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: #1C1712;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28,23,18,0.35) 0%,
    rgba(28,23,18,0.70) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* ─── SECTION LABEL (mono terminal uppercase) ────────────────────────────── */
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8C8070;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background-color: rgba(140,128,112,0.25);
}

/* ─── NUMBER MARKER ──────────────────────────────────────────────────────── */
.step-marker {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(200,134,10,0.15);
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
}

/* ─── COOKIE BANNER ─────────────────────────────────────────────────────── */
[data-target="cookies.banner"] { display: none; }

/* ─── VERTICAL TEXT LABEL ─────────────────────────────────────────────────── */
.vertical-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8C8070;
  font-weight: 600;
}

/* ─── METHODOLOGY TIMELINE ───────────────────────────────────────────────── */
.timeline-item {
  display: flex;
  gap: 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3.5rem;
  bottom: 0;
  width: 1px;
  background-color: rgba(200,134,10,0.25);
}
.timeline-num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #C8860A;
  color: #F7F3E8;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}
