@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Site title font — default sans-serif */

/* Scrollbar - uses CSS variables for color scheme support */
:root {
  --scrollbar-color: #FFFFFF;
}

::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-color);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-color);
}

/* Firefox scrollbar */
* {
  scrollbar-width: auto;
  scrollbar-color: var(--scrollbar-color) var(--scrollbar-color);
}

/* Color Scheme 1: MAGENTA THEME */
html.color-scheme-1 {
  background: #8B2252 !important;
  color: #FFB6C1 !important;
  --scrollbar-color: #FFFFFF;
}
html.color-scheme-1 body { color: #FFB6C1 !important; }
html.color-scheme-1 .site-title,
html.color-scheme-1 .site-title a { color: #FFFFFF !important; }
html.color-scheme-1 .site-title a:hover { color: #FF8C00 !important; text-decoration-color: #FF8C00 !important; }
html.color-scheme-1 .site-title a:active { color: #FFFACD !important; text-decoration-color: #FFFACD !important; }
html.color-scheme-1 a, html.color-scheme-1 .gallery-nav,
html.color-scheme-1 .buy-link, html.color-scheme-1 .download-link,
html.color-scheme-1 nav a { color: #FFFFFF !important; }
html.color-scheme-1 .article-title a, html.color-scheme-1 .project-card-title a { color: #FF69B4 !important; }
html.color-scheme-1 a:hover, html.color-scheme-1 .gallery-nav:hover, html.color-scheme-1 nav a:hover, html.color-scheme-1 nav a.nav-active, html.color-scheme-1 nav a.nav-parent,
html.color-scheme-1 .article-title a:hover, html.color-scheme-1 .project-card-title a:hover { color: #FF8C00 !important; text-decoration-color: #FF8C00 !important; }
html.color-scheme-1 a:active, html.color-scheme-1 nav a:active,
html.color-scheme-1 .article-title a:active, html.color-scheme-1 .project-card-title a:active { color: #FFFACD !important; text-decoration-color: #FFFACD !important; }
html.color-scheme-1 .like-button { color: #FFFFFF !important; }
html.color-scheme-1 .project-thumbnail { background: #C71585; }

/* Color Scheme 2: BLACK THEME */
html.color-scheme-2 {
  background: #000000 !important;
  color: #9CAF88 !important;
  --scrollbar-color: #FFFFFF;
}
html.color-scheme-2 body { color: #9CAF88 !important; }
html.color-scheme-2 .site-title,
html.color-scheme-2 .site-title a { color: #FF69B4 !important; }
html.color-scheme-2 .site-title a:hover { color: #FFFF00 !important; text-decoration-color: #FFFF00 !important; }
html.color-scheme-2 .site-title a:active { color: #008080 !important; text-decoration-color: #008080 !important; }
html.color-scheme-2 a, html.color-scheme-2 .gallery-nav,
html.color-scheme-2 .buy-link, html.color-scheme-2 .download-link,
html.color-scheme-2 nav a { color: #FF69B4 !important; }
html.color-scheme-2 .article-title a, html.color-scheme-2 .project-card-title a { color: #9CAF88 !important; }
html.color-scheme-2 a:hover, html.color-scheme-2 .gallery-nav:hover, html.color-scheme-2 nav a:hover, html.color-scheme-2 nav a.nav-active, html.color-scheme-2 nav a.nav-parent,
html.color-scheme-2 .article-title a:hover, html.color-scheme-2 .project-card-title a:hover { color: #FFFF00 !important; text-decoration-color: #FFFF00 !important; }
html.color-scheme-2 a:active, html.color-scheme-2 nav a:active,
html.color-scheme-2 .article-title a:active, html.color-scheme-2 .project-card-title a:active { color: #008080 !important; text-decoration-color: #008080 !important; }
html.color-scheme-2 .like-button { color: #FF69B4 !important; }
html.color-scheme-2 .project-thumbnail { background: #9370DB; }

/* Color Scheme 3: PURPLE THEME */
html.color-scheme-3 {
  background: #5D3A6A !important;
  color: #C8A2C8 !important;
  --scrollbar-color: #FFFFFF;
}
html.color-scheme-3 body { color: #C8A2C8 !important; }
html.color-scheme-3 .site-title,
html.color-scheme-3 .site-title a { color: #9ACD32 !important; }
html.color-scheme-3 .site-title a:hover { color: #40E0D0 !important; text-decoration-color: #40E0D0 !important; }
html.color-scheme-3 .site-title a:active { color: #ADFF2F !important; text-decoration-color: #ADFF2F !important; }
html.color-scheme-3 a, html.color-scheme-3 .gallery-nav,
html.color-scheme-3 .buy-link, html.color-scheme-3 .download-link,
html.color-scheme-3 nav a { color: #9ACD32 !important; }
html.color-scheme-3 .article-title a, html.color-scheme-3 .project-card-title a { color: #C8A2C8 !important; }
html.color-scheme-3 a:hover, html.color-scheme-3 .gallery-nav:hover, html.color-scheme-3 nav a:hover, html.color-scheme-3 nav a.nav-active, html.color-scheme-3 nav a.nav-parent,
html.color-scheme-3 .article-title a:hover, html.color-scheme-3 .project-card-title a:hover { color: #40E0D0 !important; text-decoration-color: #40E0D0 !important; }
html.color-scheme-3 a:active, html.color-scheme-3 nav a:active,
html.color-scheme-3 .article-title a:active, html.color-scheme-3 .project-card-title a:active { color: #ADFF2F !important; text-decoration-color: #ADFF2F !important; }
html.color-scheme-3 .like-button { color: #9ACD32 !important; }
html.color-scheme-3 .project-thumbnail { background: #000000; }

/* Color Scheme 4: PRIMARY THEME */
html.color-scheme-4 {
  background: #2B4F7E !important;
  color: #D8B4E2 !important;
  --scrollbar-color: #FFFFFF;
}
html.color-scheme-4 body { color: #D8B4E2 !important; }
html.color-scheme-4 .site-title,
html.color-scheme-4 .site-title a { color: #FF0000 !important; }
html.color-scheme-4 .site-title a:hover { color: #E6B3CC !important; text-decoration-color: #E6B3CC !important; }
html.color-scheme-4 .site-title a:active { color: #000000 !important; text-decoration-color: #000000 !important; }
html.color-scheme-4 a, html.color-scheme-4 .gallery-nav,
html.color-scheme-4 .buy-link, html.color-scheme-4 .download-link,
html.color-scheme-4 nav a { color: #FF0000 !important; }
html.color-scheme-4 .article-title a, html.color-scheme-4 .project-card-title a { color: #D8B4E2 !important; }
html.color-scheme-4 a:hover, html.color-scheme-4 .gallery-nav:hover, html.color-scheme-4 nav a:hover, html.color-scheme-4 nav a.nav-active, html.color-scheme-4 nav a.nav-parent,
html.color-scheme-4 .article-title a:hover, html.color-scheme-4 .project-card-title a:hover { color: #E6B3CC !important; text-decoration-color: #E6B3CC !important; }
html.color-scheme-4 a:active, html.color-scheme-4 nav a:active,
html.color-scheme-4 .article-title a:active, html.color-scheme-4 .project-card-title a:active { color: #000000 !important; text-decoration-color: #000000 !important; }
html.color-scheme-4 .like-button { color: #FF0000 !important; }
html.color-scheme-4 .project-thumbnail { background: #FF8C00; }

/* Color Scheme 5: GREEN THEME */
html.color-scheme-5 {
  background: #143814 !important;
  color: #7CB97C !important;
  --scrollbar-color: #FFFFFF;
}
html.color-scheme-5 body { color: #7CB97C !important; }
html.color-scheme-5 .site-title,
html.color-scheme-5 .site-title a { color: #FFFF00 !important; }
html.color-scheme-5 .site-title a:hover { color: #FFB6C1 !important; text-decoration-color: #FFB6C1 !important; }
html.color-scheme-5 .site-title a:active { color: #FFFFFF !important; text-decoration-color: #FFFFFF !important; }
html.color-scheme-5 a, html.color-scheme-5 .gallery-nav,
html.color-scheme-5 .buy-link, html.color-scheme-5 .download-link,
html.color-scheme-5 nav a { color: #FFFF00 !important; }
html.color-scheme-5 .article-title a, html.color-scheme-5 .project-card-title a { color: #7CB97C !important; }
html.color-scheme-5 a:hover, html.color-scheme-5 .gallery-nav:hover, html.color-scheme-5 nav a:hover, html.color-scheme-5 nav a.nav-active, html.color-scheme-5 nav a.nav-parent,
html.color-scheme-5 .article-title a:hover, html.color-scheme-5 .project-card-title a:hover { color: #FFB6C1 !important; text-decoration-color: #FFB6C1 !important; }
html.color-scheme-5 a:active, html.color-scheme-5 nav a:active,
html.color-scheme-5 .article-title a:active, html.color-scheme-5 .project-card-title a:active { color: #FFFFFF !important; text-decoration-color: #FFFFFF !important; }
html.color-scheme-5 .like-button { color: #FFFF00 !important; }
html.color-scheme-5 .project-thumbnail { background: #000000; }

/* Color Scheme 6: MUSTARD GOLD THEME */
html.color-scheme-6 {
  background: #B8860B !important;
  color: #FFF8E7 !important;
  --scrollbar-color: #FFF8E7;
}
html.color-scheme-6 body { color: #FFF8E7 !important; }
html.color-scheme-6 .site-title,
html.color-scheme-6 .site-title a { color: #1B1B3A !important; }
html.color-scheme-6 .site-title a:hover { color: #FFF8E7 !important; text-decoration-color: #FFF8E7 !important; }
html.color-scheme-6 .site-title a:active { color: #E8D5B5 !important; text-decoration-color: #E8D5B5 !important; }
html.color-scheme-6 a, html.color-scheme-6 .gallery-nav,
html.color-scheme-6 .buy-link, html.color-scheme-6 .download-link,
html.color-scheme-6 nav a { color: #1B1B3A !important; }
html.color-scheme-6 .article-title a, html.color-scheme-6 .project-card-title a { color: #FFF8E7 !important; }
html.color-scheme-6 a:hover, html.color-scheme-6 .gallery-nav:hover, html.color-scheme-6 nav a:hover, html.color-scheme-6 nav a.nav-active, html.color-scheme-6 nav a.nav-parent,
html.color-scheme-6 .article-title a:hover, html.color-scheme-6 .project-card-title a:hover { color: #FFF8E7 !important; text-decoration-color: #FFF8E7 !important; }
html.color-scheme-6 a:active, html.color-scheme-6 nav a:active,
html.color-scheme-6 .article-title a:active, html.color-scheme-6 .project-card-title a:active { color: #E8D5B5 !important; text-decoration-color: #E8D5B5 !important; }
html.color-scheme-6 .like-button { color: #1B1B3A !important; }
html.color-scheme-6 .project-thumbnail { background: #8B6914; }

/* Color Scheme 7: BRAT GREEN THEME */
html.color-scheme-7 {
  background: #8ACE00 !important;
  color: #000000 !important;
  --scrollbar-color: #000000;
}
html.color-scheme-7 body { color: #000000 !important; }
html.color-scheme-7 .site-title,
html.color-scheme-7 .site-title a { color: #000000 !important; }
html.color-scheme-7 .site-title a:hover { color: #FFFFFF !important; text-decoration-color: #FFFFFF !important; }
html.color-scheme-7 .site-title a:active { color: #3D5A00 !important; text-decoration-color: #3D5A00 !important; }
html.color-scheme-7 a, html.color-scheme-7 .gallery-nav,
html.color-scheme-7 .buy-link, html.color-scheme-7 .download-link,
html.color-scheme-7 nav a { color: #000000 !important; }
html.color-scheme-7 .article-title a, html.color-scheme-7 .project-card-title a { color: #000000 !important; }
html.color-scheme-7 a:hover, html.color-scheme-7 .gallery-nav:hover, html.color-scheme-7 nav a:hover, html.color-scheme-7 nav a.nav-active, html.color-scheme-7 nav a.nav-parent,
html.color-scheme-7 .article-title a:hover, html.color-scheme-7 .project-card-title a:hover { color: #FFFFFF !important; text-decoration-color: #FFFFFF !important; }
html.color-scheme-7 a:active, html.color-scheme-7 nav a:active,
html.color-scheme-7 .article-title a:active, html.color-scheme-7 .project-card-title a:active { color: #3D5A00 !important; text-decoration-color: #3D5A00 !important; }
html.color-scheme-7 .like-button { color: #000000 !important; }
html.color-scheme-7 .project-thumbnail { background: #6BA300; }

/* Color Scheme 8: ESPRESSO THEME */
html.color-scheme-8 {
  background: #3E2723 !important;
  color: #C4A882 !important;
  --scrollbar-color: #C4A882;
}
html.color-scheme-8 body { color: #C4A882 !important; }
html.color-scheme-8 .site-title,
html.color-scheme-8 .site-title a { color: #C19A6B !important; }
html.color-scheme-8 .site-title a:hover { color: #F5F5DC !important; text-decoration-color: #F5F5DC !important; }
html.color-scheme-8 .site-title a:active { color: #D2B48C !important; text-decoration-color: #D2B48C !important; }
html.color-scheme-8 a, html.color-scheme-8 .gallery-nav,
html.color-scheme-8 .buy-link, html.color-scheme-8 .download-link,
html.color-scheme-8 nav a { color: #C19A6B !important; }
html.color-scheme-8 .article-title a, html.color-scheme-8 .project-card-title a { color: #C4A882 !important; }
html.color-scheme-8 a:hover, html.color-scheme-8 .gallery-nav:hover, html.color-scheme-8 nav a:hover, html.color-scheme-8 nav a.nav-active, html.color-scheme-8 nav a.nav-parent,
html.color-scheme-8 .article-title a:hover, html.color-scheme-8 .project-card-title a:hover { color: #F5F5DC !important; text-decoration-color: #F5F5DC !important; }
html.color-scheme-8 a:active, html.color-scheme-8 nav a:active,
html.color-scheme-8 .article-title a:active, html.color-scheme-8 .project-card-title a:active { color: #D2B48C !important; text-decoration-color: #D2B48C !important; }
html.color-scheme-8 .like-button { color: #C19A6B !important; }
html.color-scheme-8 .project-thumbnail { background: #5D4037; }

/* Color Scheme 9: RED THEME (Futuristic) */
html.color-scheme-9 {
  background: #A30000 !important;
  color: #D0D0D8 !important;
  --scrollbar-color: #D0D0D8;
}
html.color-scheme-9 body { color: #D0D0D8 !important; }
html.color-scheme-9 .site-title,
html.color-scheme-9 .site-title a { color: #4FC3F7 !important; }
html.color-scheme-9 .site-title a:hover { color: #FFFFFF !important; text-decoration-color: #FFFFFF !important; }
html.color-scheme-9 .site-title a:active { color: #FFD54F !important; text-decoration-color: #FFD54F !important; }
html.color-scheme-9 a, html.color-scheme-9 .gallery-nav,
html.color-scheme-9 .buy-link, html.color-scheme-9 .download-link,
html.color-scheme-9 nav a { color: #4FC3F7 !important; }
html.color-scheme-9 .article-title a, html.color-scheme-9 .project-card-title a { color: #D0D0D8 !important; }
html.color-scheme-9 a:hover, html.color-scheme-9 .gallery-nav:hover, html.color-scheme-9 nav a:hover, html.color-scheme-9 nav a.nav-active, html.color-scheme-9 nav a.nav-parent,
html.color-scheme-9 .article-title a:hover, html.color-scheme-9 .project-card-title a:hover { color: #FFFFFF !important; text-decoration-color: #FFFFFF !important; }
html.color-scheme-9 a:active, html.color-scheme-9 nav a:active,
html.color-scheme-9 .article-title a:active, html.color-scheme-9 .project-card-title a:active { color: #FFD54F !important; text-decoration-color: #FFD54F !important; }
html.color-scheme-9 .like-button { color: #4FC3F7 !important; }
html.color-scheme-9 .project-thumbnail { background: #6D0000; }

/* Text selection — contrasting color per theme so the highlight is visible
   against the page background (previous values were a paler version of the
   background itself, which rendered invisible). */
::selection {
  background: rgba(255, 255, 255, 0.45);
  color: inherit;
}
::-moz-selection {
  background: rgba(255, 255, 255, 0.45);
  color: inherit;
}
html.color-scheme-1 ::selection, html.color-scheme-1 ::-moz-selection { background: rgba(255, 255, 255, 0.4); }
html.color-scheme-2 ::selection, html.color-scheme-2 ::-moz-selection { background: rgba(255, 105, 180, 0.45); }
html.color-scheme-3 ::selection, html.color-scheme-3 ::-moz-selection { background: rgba(154, 205, 50, 0.45); }
html.color-scheme-4 ::selection, html.color-scheme-4 ::-moz-selection { background: rgba(255, 215, 0, 0.4); }
html.color-scheme-5 ::selection, html.color-scheme-5 ::-moz-selection { background: rgba(255, 250, 205, 0.4); }
html.color-scheme-6 ::selection, html.color-scheme-6 ::-moz-selection { background: rgba(0, 0, 0, 0.3); }
html.color-scheme-7 ::selection, html.color-scheme-7 ::-moz-selection { background: rgba(0, 0, 0, 0.35); }
html.color-scheme-8 ::selection, html.color-scheme-8 ::-moz-selection { background: rgba(255, 248, 231, 0.4); }
html.color-scheme-9 ::selection, html.color-scheme-9 ::-moz-selection { background: rgba(255, 255, 255, 0.4); }

/* Skip to content link - accessibility */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10001;
}

.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 1rem 2rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

/* Utility classes */
.mt-3 {
  margin-top: 3rem;
}

/* Minimal Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #B5651D;
}

body {
  font-family: 'Anonymous Pro', monospace;
  background: transparent;
  color: #000000;
  line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.caption, figcaption {
  font-family: Arial, sans-serif;
  font-weight: normal;
}

.article-subtitle, .subheading {
  font-family: 'Anonymous Pro', monospace;
  font-weight: bold;
}

a {
  color: #000000;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

a:active {
  color: #8B4513;
  text-decoration-color: #8B4513;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  padding: 3rem 2rem 0.5rem;
}

.site-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3rem;
  font-weight: normal;
  letter-spacing: 0.01em;
}

.site-title a {
  color: #000000;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.site-title a:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

.site-title a:active {
  color: #8B4513;
  text-decoration-color: #8B4513;
}

/* Navigation */
nav {
  padding: 0.25rem 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 3rem;
}

nav a {
  font-size: 2rem;
  font-variant: normal;
  letter-spacing: 0.05em;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

nav a:hover, nav a.nav-active, nav a.nav-parent {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

nav a.nav-active {
  pointer-events: none;
}

nav a:active {
  color: #8B4513;
  text-decoration-color: #8B4513;
}

/* Hero */
.hero {
  padding: 0 0 2rem 0;
  overflow: visible;
}

.hero::after {
  content: "";
  display: table;
  clear: both;
}

.hero img {
  width: 60%;
  height: auto;
  display: block;
  margin-left: auto;
}

img {
  margin-left: auto;
  display: block;
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.video-container {
  width: 50vw;
  float: right;
  margin-right: calc(-50vw + 50% + 2rem);
  position: relative;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(20%) saturate(150%) hue-rotate(-10deg);
}

.video-container a {
  display: block;
}

.caption {
  font-family: Arial, sans-serif;
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

/* Main Content */
main {
  padding: 1rem 0;
}


/* Footer */
footer {
  padding: 2rem;
  text-align: left;
  margin-top: 2rem;
}

.footer-content {
}

.footer-name {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.footer-email {
  font-size: 1.05rem;
}

/* Color Scheme Selector */
.color-scheme-selector {
  display: flex;
  gap: 6px;
  margin-top: 0.75rem;
}

.color-scheme-square {
  width: 14px;
  height: 14px;
  border: 1.5px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
  padding: 0;
  background: none;
  outline: none;
  position: relative;
  z-index: 10000;
}

.color-scheme-square:hover {
  transform: scale(1.25);
}

.color-scheme-square.active {
  border-color: currentColor;
}

.color-scheme-square[data-scheme="0"] { background-color: #B5651D; }
.color-scheme-square[data-scheme="1"] { background-color: #8B2252; }
.color-scheme-square[data-scheme="2"] { background-color: #000000; }
.color-scheme-square[data-scheme="3"] { background-color: #5D3A6A; }
.color-scheme-square[data-scheme="4"] { background-color: #2B4F7E; }
.color-scheme-square[data-scheme="5"] { background-color: #143814; }
.color-scheme-square[data-scheme="6"] { background-color: #B8860B; }
.color-scheme-square[data-scheme="7"] { background-color: #8ACE00; }
.color-scheme-square[data-scheme="8"] { background-color: #3E2723; }
.color-scheme-square[data-scheme="9"] { background-color: #A30000; }

/* Contrasting outlines for swatches that blend into backgrounds */
/* Dark swatches on dark backgrounds */
html.color-scheme-2 .color-scheme-square[data-scheme="2"] { outline: 1px solid #444; }
html.color-scheme-2 .color-scheme-square[data-scheme="5"] { outline: 1px solid #444; }
html.color-scheme-2 .color-scheme-square[data-scheme="8"] { outline: 1px solid #444; }
html.color-scheme-5 .color-scheme-square[data-scheme="2"] { outline: 1px solid #3A5A3A; }
html.color-scheme-5 .color-scheme-square[data-scheme="5"] { outline: 1px solid #3A5A3A; }
html.color-scheme-5 .color-scheme-square[data-scheme="8"] { outline: 1px solid #3A5A3A; }
html.color-scheme-8 .color-scheme-square[data-scheme="2"] { outline: 1px solid #5D4037; }
html.color-scheme-8 .color-scheme-square[data-scheme="8"] { outline: 1px solid #5D4037; }
html.color-scheme-8 .color-scheme-square[data-scheme="5"] { outline: 1px solid #5D4037; }
/* Light/bright swatches on light backgrounds */
html.color-scheme-7 .color-scheme-square[data-scheme="7"] { outline: 1px solid #6BA300; }

/* Article List */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.article-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.article-thumbnail {
  flex-shrink: 0;
  width: 180px;
}

.article-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  margin-left: 0;
}

.article-content {
  flex: 1;
}

.article-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.article-title a {
  color: #000000;
}

.article-title a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.article-title a:active {
  color: #8B4513;
}

.article-subtitle {
  font-family: 'Anonymous Pro', monospace;
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  opacity: 0.9;
}

.article-date {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.article-snippet {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.buy-link, .download-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #ff91a4;
  text-decoration: underline;
  margin-right: 1rem;
}

.buy-link:hover, .download-link:hover {
  color: #FFFFFF;
}

.buy-link:active, .download-link:active {
  color: #8B4513;
}

.download-link.inactive {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.download-links {
  margin: 1rem 0;
}

/* About Page */
.about-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.about-image {
  flex-shrink: 0;
  width: 300px;
}

.about-image img {
  width: 100%;
  height: auto;
  margin-left: 0;
}

.about-image .caption {
  text-align: left;
  margin-top: 0.5rem;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text a {
  text-decoration: underline;
}

/* Book Spread */
.book-container {
  perspective: 2000px;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.book {
  display: flex;
  position: relative;
  transform-style: preserve-3d;
}

.book-spread {
  display: flex;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.page {
  width: 350px;
  min-height: 500px;
  background: #f5f5dc;
  color: #333;
  padding: 2rem;
  position: relative;
}

.page-left {
  border-right: 1px solid #ddd;
  box-shadow: inset -10px 0 20px rgba(0,0,0,0.1);
}

.page-right {
  box-shadow: inset 10px 0 20px rgba(0,0,0,0.1);
}

.page-content {
  font-size: 0.95rem;
  line-height: 1.8;
}

.page-content h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.page-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.page-number {
  position: absolute;
  bottom: 1rem;
  font-size: 0.8rem;
  color: #666;
}

.page-left .page-number {
  left: 2rem;
}

.page-right .page-number {
  right: 2rem;
}

.book-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.book-nav button {
  background: #ff91a4;
  color: #c71585;
  border: none;
  padding: 0.5rem 1.5rem;
  font-family: 'Anonymous Pro', monospace;
  font-size: 1rem;
  transition: background 0.2s;
}

.book-nav button:hover {
  background: #000080;
  color: #ffffff;
}

.book-nav button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-top: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card a {
  text-decoration: none;
}

.project-thumbnail {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #ff91a4;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-left: 0;
}

.project-card:hover .project-thumbnail {
  transform: scale(1.05);
}

.project-card-title {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.project-card-title a {
  color: #000000;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.project-card-title a:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

.project-card-title a:active {
  color: #8B4513;
  text-decoration-color: #8B4513;
}

.project-card-subtitle {
  font-family: 'Anonymous Pro', monospace;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Video Gallery (Free Ironing) */
.video-gallery {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.video-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.video-slide.active {
  display: flex;
  position: relative;
  gap: 2rem;
  align-items: flex-start;
  opacity: 1;
}

.video-half {
  width: 70%;
}

.video-half video {
  width: 100%;
  height: auto;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumbnail iframe {
  width: 100%;
  height: 100%;
}

.video-half iframe,
.video-container video,
.flags-video-item iframe,
.spectrum-item {
}

.wall-text {
  width: 30%;
  padding: 1rem 2rem;
  flex-shrink: 0;
}

.wall-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.wall-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.gallery-nav {
  position: absolute;
  top: 400px;
  font-size: 3rem;
  background: none;
  border: none;
  color: #000000;
  transition: color 0.15s ease;
  z-index: 100;
  font-family: serif;
}

.gallery-nav:hover {
  color: #FFFFFF;
}

.gallery-nav:active {
  color: #8B4513;
}

.gallery-nav.prev {
  left: 1rem;
}

.gallery-nav.next {
  right: 1rem;
}

/* Video gallery nav row - desktop: hide nav inside slides */
.video-slide .video-gallery-nav-row {
  display: none;
}

/* Spectrum Colors Gallery */
.spectrum-gallery {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.spectrum-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.spectrum-image {
  width: 200px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.spectrum-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.spectrum-image img.front {
  position: relative;
  z-index: 1;
}

.spectrum-image img.corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
}

.spectrum-item:hover .spectrum-image img {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.spectrum-item:hover .spectrum-image img.front {
  opacity: 0;
}

.spectrum-item:hover .spectrum-image img.corner {
  opacity: 1;
}

/* Spectrum alt toggle - hidden on desktop */
.spectrum-alt-toggle {
  display: none;
}

.spectrum-caption {
  flex: 1;
}

.spectrum-caption p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.spectrum-caption em {
  font-style: italic;
}

/* Featured spectrum item - larger with caption below */
.spectrum-item-featured {
  flex-direction: column;
  align-items: center;
  margin: 3rem 0;
}

.spectrum-item-featured .spectrum-image {
  width: 100%;
  max-width: 600px;
}

.spectrum-item-featured .spectrum-caption {
  text-align: center;
  margin-top: 1.5rem;
  max-width: 600px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  margin: 0;
}

.lightbox .caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
}

/* Flags Gallery (Checklist Thumbnails) */
.flags-gallery {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.flags-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.flags-image {
  width: 200px;
  flex-shrink: 0;
}

.flags-image img {
  width: 100%;
  height: auto;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.flags-item:hover .flags-image img {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.flags-caption {
  flex: 1;
  padding-top: 0.5rem;
}

.flags-caption p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Flags Lightbox */
.flags-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.flags-lightbox.active {
  display: flex;
}

.flags-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
}

.flags-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.flags-lightbox-img.zoomed {
  cursor: zoom-out;
  transform: scale(1.5);
}

.flags-lightbox-caption {
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 600px;
  padding: 0 1rem;
}

/* Spectrum lightbox - caption on right */
#spectrum-lightbox .flags-lightbox-content {
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}

#spectrum-lightbox .flags-lightbox-img {
  max-width: 70%;
}

#spectrum-lightbox .flags-lightbox-caption {
  text-align: left;
  max-width: 250px;
  padding-top: 1rem;
}

#spectrum-lightbox .flags-lightbox-caption p {
  margin: 0 0 0.75rem 0;
}

#spectrum-lightbox .flags-lightbox-caption p:last-child {
  margin-bottom: 0;
}

/* Nav row - on desktop, navs positioned absolutely relative to lightbox */
.flags-lightbox-nav-row {
  display: contents;
}

.flags-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  color: #fff;
  padding: 1rem;
  z-index: 10000;
}

.flags-lightbox-nav.prev {
  left: 2rem;
}

.flags-lightbox-nav.next {
  right: 2rem;
}

.flags-lightbox-nav:hover {
  color: #FF8C00;
}

.flags-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  z-index: 10000;
}

.flags-lightbox-close:hover {
  color: #FF8C00;
}

/* Flags Video Gallery (3-up carousel) */
.flags-video-gallery {
  position: relative;
  margin-top: 8rem;
  padding: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.flags-video-gallery h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.flags-video-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  padding: 0 4rem;
  transform: translateX(0);
  will-change: transform;
}

.flags-video-item {
  flex: 0 0 calc(33.333% - 0.67rem);
  max-width: calc(33.333% - 0.67rem);
  position: relative;
}

.flags-video-item iframe,
.flags-video-item img {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
}

.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Allow clicks on side videos to navigate carousel */
.flags-video-item:not(.center) {
}

.flags-video-item:not(.center) iframe {
  pointer-events: none;
}

/* Fade effect on side videos */
.flags-video-item:first-child::after,
.flags-video-item:last-child::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  pointer-events: none;
  z-index: 10;
}

.flags-video-item:first-child::after {
  left: 0;
  background: linear-gradient(to right, #B5651D 0%, transparent 100%);
}

.flags-video-item:last-child::after {
  right: 0;
  background: linear-gradient(to left, #B5651D 0%, transparent 100%);
}

/* Color scheme fade overlays */
html.color-scheme-1 .flags-video-item:first-child::after { background: linear-gradient(to right, #8B2252 0%, transparent 100%); }
html.color-scheme-1 .flags-video-item:last-child::after { background: linear-gradient(to left, #8B2252 0%, transparent 100%); }

html.color-scheme-2 .flags-video-item:first-child::after { background: linear-gradient(to right, #000000 0%, transparent 100%); }
html.color-scheme-2 .flags-video-item:last-child::after { background: linear-gradient(to left, #000000 0%, transparent 100%); }

html.color-scheme-3 .flags-video-item:first-child::after { background: linear-gradient(to right, #5D3A6A 0%, transparent 100%); }
html.color-scheme-3 .flags-video-item:last-child::after { background: linear-gradient(to left, #5D3A6A 0%, transparent 100%); }

html.color-scheme-4 .flags-video-item:first-child::after { background: linear-gradient(to right, #2B4F7E 0%, transparent 100%); }
html.color-scheme-4 .flags-video-item:last-child::after { background: linear-gradient(to left, #2B4F7E 0%, transparent 100%); }

html.color-scheme-5 .flags-video-item:first-child::after { background: linear-gradient(to right, #143814 0%, transparent 100%); }
html.color-scheme-5 .flags-video-item:last-child::after { background: linear-gradient(to left, #143814 0%, transparent 100%); }

html.color-scheme-6 .flags-video-item:first-child::after { background: linear-gradient(to right, #B8860B 0%, transparent 100%); }
html.color-scheme-6 .flags-video-item:last-child::after { background: linear-gradient(to left, #B8860B 0%, transparent 100%); }

html.color-scheme-7 .flags-video-item:first-child::after { background: linear-gradient(to right, #8ACE00 0%, transparent 100%); }
html.color-scheme-7 .flags-video-item:last-child::after { background: linear-gradient(to left, #8ACE00 0%, transparent 100%); }

html.color-scheme-8 .flags-video-item:first-child::after { background: linear-gradient(to right, #3E2723 0%, transparent 100%); }
html.color-scheme-8 .flags-video-item:last-child::after { background: linear-gradient(to left, #3E2723 0%, transparent 100%); }

html.color-scheme-9 .flags-video-item:first-child::after { background: linear-gradient(to right, #A30000 0%, transparent 100%); }
html.color-scheme-9 .flags-video-item:last-child::after { background: linear-gradient(to left, #A30000 0%, transparent 100%); }

.flags-video-caption {
  text-align: center;
  margin-top: 1rem;
  font-family: Arial, sans-serif;
  font-style: italic;
  font-size: 0.9rem;
  min-height: 2.5em;
  padding: 0 2rem;
}

.flags-video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #000000;
  transition: color 0.15s ease;
  z-index: 100;
  font-family: serif;
}

.flags-video-nav:hover {
  color: #FFFFFF;
}

.flags-video-nav:active {
  color: #8B4513;
}

.flags-video-nav.prev {
  left: 1rem;
}

.flags-video-nav.next {
  right: 1rem;
}

/* Flags video nav row - desktop: hide, use absolute nav */
.flags-video-nav-row {
  display: none;
}

/* Color scheme styles for flags video nav */
html.color-scheme-1 .flags-video-nav { color: #FFFFFF !important; }
html.color-scheme-1 .flags-video-nav:hover { color: #FF8C00 !important; }
html.color-scheme-1 .flags-video-nav:active { color: #FFFACD !important; }

html.color-scheme-2 .flags-video-nav { color: #FF69B4 !important; }
html.color-scheme-2 .flags-video-nav:hover { color: #FFFF00 !important; }
html.color-scheme-2 .flags-video-nav:active { color: #008080 !important; }

html.color-scheme-3 .flags-video-nav { color: #9ACD32 !important; }
html.color-scheme-3 .flags-video-nav:hover { color: #40E0D0 !important; }
html.color-scheme-3 .flags-video-nav:active { color: #ADFF2F !important; }

html.color-scheme-4 .flags-video-nav { color: #FF0000 !important; }
html.color-scheme-4 .flags-video-nav:hover { color: #E6B3CC !important; }
html.color-scheme-4 .flags-video-nav:active { color: #000000 !important; }

html.color-scheme-5 .flags-video-nav { color: #FFFF00 !important; }
html.color-scheme-5 .flags-video-nav:hover { color: #FFB6C1 !important; }
html.color-scheme-5 .flags-video-nav:active { color: #FFFFFF !important; }

/* Color scheme gallery nav colors */
/* MAGENTA: white text, orange hover, pale yellow click */
html.color-scheme-1 .gallery-nav { color: #FFFFFF !important; }
html.color-scheme-1 .gallery-nav:hover { color: #FF8C00 !important; }
html.color-scheme-1 .gallery-nav:active { color: #FFFACD !important; }
/* BLACK: hot pink text, yellow hover, teal click */
html.color-scheme-2 .gallery-nav { color: #FF69B4 !important; }
html.color-scheme-2 .gallery-nav:hover { color: #FFFF00 !important; }
html.color-scheme-2 .gallery-nav:active { color: #008080 !important; }
/* PURPLE: mossy green text, bright teal hover, acid green click */
html.color-scheme-3 .gallery-nav { color: #9ACD32 !important; }
html.color-scheme-3 .gallery-nav:hover { color: #40E0D0 !important; }
html.color-scheme-3 .gallery-nav:active { color: #ADFF2F !important; }
/* PRIMARY: red text, pastel pink hover, black click */
html.color-scheme-4 .gallery-nav { color: #FF0000 !important; }
html.color-scheme-4 .gallery-nav:hover { color: #E6B3CC !important; }
html.color-scheme-4 .gallery-nav:active { color: #000000 !important; }
/* GREEN: yellow text, pastel pink hover, white click */
html.color-scheme-5 .gallery-nav { color: #FFFF00 !important; }
html.color-scheme-5 .gallery-nav:hover { color: #FFB6C1 !important; }
html.color-scheme-5 .gallery-nav:active { color: #FFFFFF !important; }

/* Heart button colors per scheme - match clickable text */
/* MAGENTA: white heart, orange hover, pale yellow active */
html.color-scheme-1 .like-button { color: #FFFFFF !important; }
html.color-scheme-1 .like-button:hover { color: #FF8C00 !important; }
html.color-scheme-1 .like-button:active { color: #FFFACD !important; }
/* BLACK: hot pink heart, yellow hover, teal active */
html.color-scheme-2 .like-button { color: #FF69B4 !important; }
html.color-scheme-2 .like-button:hover { color: #FFFF00 !important; }
html.color-scheme-2 .like-button:active { color: #008080 !important; }
/* PURPLE: mossy green heart, bright teal hover, acid green active */
html.color-scheme-3 .like-button { color: #9ACD32 !important; }
html.color-scheme-3 .like-button:hover { color: #40E0D0 !important; }
html.color-scheme-3 .like-button:active { color: #ADFF2F !important; }
/* PRIMARY: red heart, pastel pink hover, black active */
html.color-scheme-4 .like-button { color: #FF0000 !important; }
html.color-scheme-4 .like-button:hover { color: #E6B3CC !important; }
html.color-scheme-4 .like-button:active { color: #000000 !important; }
/* GREEN: yellow heart, pastel pink hover, white active */
html.color-scheme-5 .like-button { color: #FFFF00 !important; }
html.color-scheme-5 .like-button:hover { color: #FFB6C1 !important; }
html.color-scheme-5 .like-button:active { color: #FFFFFF !important; }

/* Poem Display */
.poem-display {
  position: absolute;
  top: 340px;
  left: 2rem;
  z-index: 1000;
  text-align: left;
  max-width: 60%;
}

.poem-display a {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 6rem;
  color: #FFFFFF;
  text-transform: lowercase;
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poem-display a:hover {
  color: #FFFFFF;
  text-decoration: none;
  opacity: 1;
}

.poem-display a:active {
  color: #FFFFFF;
}

/* Poem colors per color scheme — unique per theme */
/* MAGENTA: tangerine dream */
html.color-scheme-1 .poem-display a,
html.color-scheme-1 .poem-display a:hover,
html.color-scheme-1 .poem-display a:active { color: #FF8C00 !important; }

/* BLACK: electric lemon */
html.color-scheme-2 .poem-display a,
html.color-scheme-2 .poem-display a:hover,
html.color-scheme-2 .poem-display a:active { color: #FFFF00 !important; }

/* PURPLE: wisteria haze */
html.color-scheme-3 .poem-display a,
html.color-scheme-3 .poem-display a:hover,
html.color-scheme-3 .poem-display a:active { color: #C8A2C8 !important; }

/* PRIMARY/BLUE: rosewater */
html.color-scheme-4 .poem-display a,
html.color-scheme-4 .poem-display a:hover,
html.color-scheme-4 .poem-display a:active { color: #E6B3CC !important; }

/* GREEN: blossom milk */
html.color-scheme-5 .poem-display a,
html.color-scheme-5 .poem-display a:hover,
html.color-scheme-5 .poem-display a:active { color: #FFB6C1 !important; }

/* GOLD: midnight ink */
html.color-scheme-6 .poem-display a,
html.color-scheme-6 .poem-display a:hover,
html.color-scheme-6 .poem-display a:active { color: #1B1B3A !important; }

/* BRAT: void */
html.color-scheme-7 .poem-display a,
html.color-scheme-7 .poem-display a:hover,
html.color-scheme-7 .poem-display a:active { color: #000000 !important; }

/* ESPRESSO: dusty nipple */
html.color-scheme-8 .poem-display a,
html.color-scheme-8 .poem-display a:hover,
html.color-scheme-8 .poem-display a:active { color: #D4A5A5 !important; }

/* RED: canary fever */
html.color-scheme-9 .poem-display a,
html.color-scheme-9 .poem-display a:hover,
html.color-scheme-9 .poem-display a:active { color: #FFD54F !important; }

/* Invert tesseract thumbnail */
img[src*="tesseract-thumb"] {
  filter: invert(1);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 2rem 1rem 0.5rem;
  }

  .site-title {
    font-size: 2.2rem;
  }

  /* Navigation */
  nav {
    padding: 0.25rem 1rem;
  }

  nav ul {
    gap: 0.8rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  nav a {
    font-size: 1.1rem;
  }

  /* Container */
  .container {
    padding: 0 1rem;
  }

  /* Hero / Homepage */
  .video-container {
    width: 100%;
    float: none;
    margin-right: 0;
  }

  .hero {
    margin-top: 2rem;
  }

  .poem-display {
    position: absolute;
    top: 180px;
    left: 1rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
    padding: 1rem;
    margin-bottom: 0;
    z-index: 10;
  }

  .poem-display a {
    font-size: 1.8rem;
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .project-card-title {
    font-size: 1.1rem;
  }

  /* Article List (Writing page) */
  .article-item {
    flex-direction: column;
    gap: 1rem;
  }

  .article-thumbnail {
    width: 100%;
    max-width: 250px;
  }

  .article-title {
    font-size: 1.3rem;
  }

  /* About Page */
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about-image {
    width: 100%;
    max-width: 300px;
  }

  /* Video Gallery (Free Ironing) */
  .video-slide.active {
    flex-direction: column;
  }

  .video-half {
    width: 100%;
  }

  .wall-text {
    width: 100%;
    padding: 1rem 0;
  }

  .gallery-nav {
    top: 200px;
    font-size: 2rem;
  }

  .gallery-nav.prev {
    left: 0.5rem;
  }

  .gallery-nav.next {
    right: 0.5rem;
  }

  /* Flags Gallery */
  .flags-item {
    flex-direction: row;
    gap: 1rem;
  }

  .flags-image {
    width: 140px;
  }

  .flags-lightbox-nav {
    font-size: 2rem;
  }

  .flags-lightbox-nav.prev {
    left: 0.5rem;
  }

  .flags-lightbox-nav.next {
    right: 0.5rem;
  }

  .flags-lightbox-img.zoomed {
    transform: scale(2);
  }

  /* Flags Video Gallery - tablet */
  .flags-video-gallery {
    margin-top: 6rem;
  }

  .flags-video-row {
    padding: 0 3rem;
  }

  .flags-video-item {
    flex: 0 0 calc(33.333% - 0.5rem);
    max-width: calc(33.333% - 0.5rem);
  }

  .flags-video-nav {
    font-size: 2rem;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .footer-heart {
    order: -1;
  }

  .like-button {
    font-size: 3rem;
  }

  .footer-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: center;
  }

  /* Book Spread */
  .book-spread {
    flex-direction: column;
  }

  .page {
    width: 100%;
    min-height: auto;
  }

  .page-left {
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  /* Spectrum Gallery - tablet */
  .spectrum-gallery {
    gap: 2rem;
  }

  .spectrum-item {
    gap: 1.5rem;
  }

  .spectrum-image {
    width: 160px;
  }

  .spectrum-caption p {
    font-size: 0.85rem;
  }

  /* Lightbox improvements */
  .flags-lightbox-content {
    padding: 1rem;
  }

  .flags-lightbox-caption {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }

  #spectrum-lightbox .flags-lightbox-caption {
    max-width: 200px;
  }

  /* Play button - larger touch target */
  .video-play-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  /* Header */
  header {
    padding: 1.5rem 1rem 0.5rem;
  }

  .site-title {
    font-size: 1.8rem;
  }

  /* Navigation */
  nav ul {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  nav a {
    font-size: 1rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  /* Poem */
  .poem-display a {
    font-size: 1.8rem;
  }

  /* Projects Grid - single column */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card-title {
    font-size: 1.2rem;
  }

  /* Article titles */
  .article-title {
    font-size: 1.2rem;
  }

  /* Wall text */
  .wall-text h3 {
    font-size: 1.2rem;
  }

  /* Gallery nav */
  /* Video gallery - mobile: nav row visible, video full width */
  .video-gallery {
    min-height: auto;
  }

  .video-slide .video-gallery-nav-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0.25rem 0;
  }

  .video-slide .video-gallery-nav-row .gallery-nav {
    position: static;
    font-size: 2.5rem;
  }

  .video-slide .wall-text {
    margin-top: 0.25rem;
  }

  .video-half {
    width: 100%;
  }

  .video-half iframe {
    height: auto;
    aspect-ratio: 16/9;
  }

  /* Hero / Homepage - more space on mobile */
  .hero {
    margin-top: 4rem;
  }

  /* Flags Video Gallery - mobile: show only center video */
  .flags-video-gallery {
    margin-top: 4rem;
  }

  .flags-video-row {
    padding: 0 2.5rem;
  }

  .flags-video-item {
    flex: 0 0 100%;
    max-width: 100%;
    display: none;
  }

  .flags-video-item.center {
    display: block;
  }

  /* Hide fade overlays on mobile since only center shows */
  .flags-video-item:first-child::after,
  .flags-video-item:last-child::after {
    display: none;
  }

  .flags-video-nav {
    font-size: 1.8rem;
  }

  /* Flags video nav row - mobile: show below video */
  .flags-video-nav-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
  }

  .flags-video-nav-row .flags-video-nav {
    position: static;
    transform: none;
    font-size: 2.5rem;
  }

  /* Lightbox */
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
  }

  /* Footer */
  .like-button {
    font-size: 2.5rem;
  }

  .footer-name {
    font-size: 1.2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }

  /* Spectrum Gallery - mobile: stack vertically */
  .spectrum-item {
    flex-direction: column;
    gap: 1rem;
  }

  .spectrum-image {
    width: 100%;
    max-width: 200px;
  }

  .spectrum-caption p {
    font-size: 0.85rem;
  }

  /* Lightbox - mobile: navigation below image, caption at bottom */
  .flags-lightbox-content {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 3rem 1rem 1rem;
  }

  .flags-lightbox-img {
    max-height: 50vh;
    max-width: 95%;
  }

  .flags-lightbox-nav-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
  }

  .flags-lightbox-nav {
    position: static;
    transform: none;
    font-size: 2.5rem;
    padding: 0.25rem 1rem;
  }

  .flags-lightbox-nav.prev {
    left: auto;
  }

  .flags-lightbox-nav.next {
    right: auto;
  }

  .flags-lightbox-close {
    font-size: 2rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  .flags-lightbox-caption {
    max-width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-align: center;
  }

  /* Lightbox image container - consistent positioning on mobile */
  .flags-lightbox-img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50vh;
  }

  .flags-lightbox-img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
  }

  /* Spectrum lightbox - stack vertically on mobile */
  #spectrum-lightbox .flags-lightbox-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
  }

  #spectrum-lightbox .flags-lightbox-caption {
    max-width: 100%;
    text-align: center;
  }

  /* Spectrum gallery - mobile alt toggle button */
  .spectrum-alt-toggle {
    display: block;
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    z-index: 10;
    line-height: 1;
  }

  /* Article list - mobile */
  .article-thumbnail {
    max-width: 200px;
  }

  .article-subtitle {
    font-size: 0.8rem;
  }

  .article-snippet {
    font-size: 0.85rem;
  }

  .buy-link, .download-link {
    font-size: 0.85rem;
  }

  /* About page - mobile */
  .about-image {
    max-width: 250px;
  }

  .about-text p {
    font-size: 0.9rem;
  }

  /* Play button - mobile */
  .video-play-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  /* Poem - better positioning */
  .poem-display {
    top: 140px;
  }

  .poem-display a {
    font-size: 1.5rem;
  }

  .footer-email {
    font-size: 1rem;
  }

  /* Mobile scroll zone - visible strip on right edge for scrolling */
  .mobile-scroll-zone {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 44px;
    height: 100%;
    z-index: 9999;
    touch-action: pan-y;
    background: transparent;
  }

  .mobile-scroll-zone::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
  }

  .mobile-scroll-indicator {
    position: absolute;
    right: 0;
    width: 6px;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    transition: background 0.2s;
  }

  .mobile-scroll-zone:active .mobile-scroll-indicator {
    background: rgba(255, 255, 255, 1);
  }

  /* Show scrollbar on mobile */
  html, body {
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
  }

  ::-webkit-scrollbar {
    width: 8px;
  }
}

/* Smallest phones — keep nav on one line */
@media (max-width: 360px) {
  nav {
    padding: 0.25rem 0.75rem;
  }

  nav a {
    font-size: 0.9rem;
    letter-spacing: 0;
  }
}
