/* ================================================================
   POCKET NOTEBOOK — style.css
   ================================================================

   TABLE OF CONTENTS
   -----------------
   1.  CSS Custom Properties (variables / theme)
   2.  Reset & Base
   3.  Typography
   4.  Layout Wrappers
   5.  Site Header
   6.  Navigation
   7.  City Viewport placeholder
   8.  Post List / Table of Contents (index)
   9.  Badges & Tags
   10. Gallery Preview Grid
   11. Footer
   12. Blog Page — accordion diary entries
   13. Blog entry prose styles
   14. Photo Essay Page
       14a. Full-width images
       14b. Side-by-side comparisons
       14c. Variable aspect ratio figures
   15. Utility Classes
   16. Animations
   17. Responsive / Mobile
   ================================================================ */


/* ----------------------------------------------------------------
   1. CSS Custom Properties
   ---------------------------------------------------------------- */
:root {
  /* Palette — light, papery, old-web */
  --color-bg:         #f5f0e8;   /* warm cream page */
  --color-surface:    #ece7d8;   /* slightly darker cream for panels */
  --color-surface-2:  #e0d9c8;   /* inset areas, code blocks */
  --color-border:     #b0a898;   /* mid-tone border */
  --color-border-hi:  #7a6e60;   /* stronger border */

  --color-accent:     #1a6b3c;   /* forest green — links, highlights */
  --color-accent-2:   #8b2500;   /* brick red — secondary accent */
  --color-accent-3:   #1a3f7a;   /* navy — tertiary */

  --color-text:       #2a2420;   /* near-black body text */
  --color-text-muted: #7a6e60;   /* subdued meta text */
  --color-text-hi:    #0f0c0a;   /* headings */
  --color-link:       var(--color-accent);
  --color-link-hover: var(--color-accent-2);

  /* Typography */
  --font-display:  'Press Start 2P', monospace;
  --font-mono:     'Share Tech Mono', monospace;
  --font-terminal: 'VT323', monospace;

  --text-xs:   0.65rem;
  --text-sm:   0.8rem;
  --text-base: 1rem;
  --text-md:   1.15rem;
  --text-lg:   1.5rem;
  --text-xl:   2rem;
  --text-2xl:  3rem;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  4rem;

  /* Borders — classic raised/inset bevel colours on a light bg */
  --border-thin:     1px solid var(--color-border);
  --border-thick:    2px solid var(--color-border-hi);
  --border-retro:    3px double var(--color-border-hi);
  --bevel-light:     #ffffff;
  --bevel-shadow:    #8a7e72;

  /* Misc */
  --max-width:      860px;
  --max-width-wide: 1200px;
}


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

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: 1.7;
  min-height: 100vh;
  /* Linen / woven-paper texture: two overlapping dot grids at slight angles */
  background-image:
    radial-gradient(circle, rgba(0,0,0,0.055) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,0,0,0.03)  1px, transparent 1px);
  background-size: 18px 18px, 11px 11px;
  background-position: 0 0, 9px 9px;
}

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

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.1s;
}

a:hover, a:focus {
  color: var(--color-link-hover);
  outline: 1px dotted var(--color-accent);
  outline-offset: 2px;
}

ul, ol { list-style: none; }

hr {
  border: none;
  border-top: var(--border-thin);
  margin: var(--space-lg) 0;
}


/* ----------------------------------------------------------------
   3. Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-hi);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(0.9rem, 3.5vw, 1.4rem); }
h2 { font-size: clamp(0.65rem, 2vw, 0.9rem); }
h3 { font-size: clamp(0.6rem, 1.8vw, 0.75rem); }

.section-heading {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-sm);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

p { margin-bottom: var(--space-md); }

/* Blinking cursor */
.blink-cursor {
  color: var(--color-accent-2);
  animation: blink 1s step-end infinite;
  font-size: 1.2em;
  vertical-align: middle;
}


/* ----------------------------------------------------------------
   4. Layout Wrappers
   ---------------------------------------------------------------- */
.site-main {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md);
}


/* ----------------------------------------------------------------
   5. Site Header
   ---------------------------------------------------------------- */
.site-header {
  background-color: var(--color-surface);
  border-bottom: var(--border-thin);
  box-shadow:
    inset -1px -1px 0 var(--bevel-shadow),
    inset  1px  1px 0 var(--bevel-light),
    0 2px 6px rgba(0,0,0,0.08);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  text-align: center;
}

.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.site-title-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 4vw, 1.6rem);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  /* Subtle emboss instead of glow */
  text-shadow:
     1px  1px 0 var(--bevel-light),
    -1px -1px 0 rgba(0,0,0,0.15);
}

.site-tagline {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.site-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}


/* ----------------------------------------------------------------
   6. Navigation
   Colorful pill buttons — each link gets its own tint via
   nth-child selectors. Add more colours if you add more links.
   ---------------------------------------------------------------- */
.site-nav {
  background: transparent;
  border: none;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.nav-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Base pill button */
.nav-btn {
  display: inline-block;
  border: 2px solid rgba(0,0,0,0.25);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: 5px 18px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.06em;
  font-weight: bold;
  /* Subtle bevel so they look raised */
  box-shadow:
    inset 0  2px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.15),
         0  2px 3px rgba(0,0,0,0.2);
  transition: filter 0.1s, transform 0.08s, box-shadow 0.08s;
}

.nav-btn:hover,
.nav-btn:focus {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow:
    inset 0  2px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.15),
         0  4px 6px rgba(0,0,0,0.25);
  text-decoration: none;
  outline: none;
  color: #fff;
}

.nav-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.1),
         0  1px 2px rgba(0,0,0,0.2);
}

/* Individual button colours — nth-child matches nav list order.
   EDIT: Change these hex values to retheme the nav colours.   */
.nav-list li:nth-child(1) .nav-btn { background: #7a8c5e; border-color: #5a6a3e; } /* sage green  — home      */
.nav-list li:nth-child(2) .nav-btn { background: #7b9eb8; border-color: #5a7e9a; } /* slate blue  — writing   */
.nav-list li:nth-child(3) .nav-btn { background: #b87b5a; border-color: #8a5a3a; } /* terracotta  — gallery   */
.nav-list li:nth-child(4) .nav-btn { background: #9b7aaa; border-color: #7a5a8a; } /* dusty mauve — guestbook */
.nav-list li:nth-child(5) .nav-btn { background: #6b4c3b; border-color: #4a3028; } /* dark brown  — about     */

/* Active page: slightly darker + underline */
.nav-btn--active {
  filter: brightness(0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ----------------------------------------------------------------
   7. Hero Photo Box (index.html)
      Same dimensions and border as the old ASCII city-viewport box.
      Photo is cropped to fill it, caption strip sits below.
   ---------------------------------------------------------------- */
.hero-box {
  margin-bottom: var(--space-lg);
  border: var(--border-retro);
  box-shadow:
    inset  2px  2px 0 var(--bevel-shadow),
    inset -2px -2px 0 var(--bevel-light);
  overflow: hidden;
  background: var(--color-surface-2);
  /* Grid overlay — same as city-viewport had */
  position: relative;
}

/* Grid lines on top of the photo, like the ASCII box had */
.hero-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.hero-img {
  display: block;
  width: 100%;
  height: 200px;           /* same visual weight as the ASCII block */
  object-fit: cover;
  object-position: center 72%;  /* pulls down to show the road, not just treetops */
  filter: saturate(0.88) brightness(0.96);
  transition: filter 0.3s;
}

.hero-box:hover .hero-img {
  filter: saturate(1) brightness(1);
}

.hero-caption {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-top: var(--border-thin);
  padding: var(--space-xs) var(--space-sm);
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------------------------
   7b. City Viewport — kept for blog.html ASCII skyline
   ---------------------------------------------------------------- */
.city-viewport {
  margin-bottom: var(--space-lg);
  border: var(--border-retro);
  background: var(--color-surface-2);
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-bottom: var(--space-sm);
  box-shadow:
    inset  2px  2px 0 var(--bevel-shadow),
    inset -2px -2px 0 var(--bevel-light);
}

.city-viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}

.city-placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-md);
  width: 100%;
}

.city-placeholder__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  letter-spacing: 0.1em;
}

.ascii-city {
  font-family: var(--font-terminal);
  font-size: clamp(0.75rem, 1.8vw, 1.05rem);
  color: var(--color-accent);
  line-height: 1.35;
  overflow-x: auto;
  text-align: left;
  display: inline-block; /* so it doesn't stretch full width */
}


/* ----------------------------------------------------------------
   8. Post List / Index Table of Contents
   ---------------------------------------------------------------- */
.post-list { padding-top: var(--space-sm); }

.post-entries {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.post-entry {
  background: var(--color-surface);
  border: var(--border-thin);
  border-left: 3px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  transition: border-left-color 0.12s;
  /* Subtle outset bevel */
  box-shadow:
     1px  1px 0 var(--bevel-light),
    -1px -1px 0 var(--bevel-shadow);
}

.post-entry:hover { border-left-color: var(--color-accent); }
.post-entry--photo { border-left-color: var(--color-accent-3); }

.post-entry__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.post-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.post-entry__title {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-md);
  color: var(--color-accent);
  font-weight: bold;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.post-entry__title:hover { color: var(--color-accent-2); }

.post-entry__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}

.post-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}


/* ----------------------------------------------------------------
   9. Badges & Tags
   ---------------------------------------------------------------- */
.badge {
  font-family: var(--font-display);
  font-size: 0.5rem;
  padding: 2px 5px;
  letter-spacing: 0.06em;
  border: 1px solid;
  white-space: nowrap;
  vertical-align: middle;
}

.badge--living {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(26, 107, 60, 0.08);
}

.badge--done {
  border-color: var(--color-text-muted);
  color: var(--color-text-muted);
}

.badge--wip {
  border-color: var(--color-accent-2);
  color: var(--color-accent-2);
  background: rgba(139, 37, 0, 0.08);
}

.badge--photo {
  border-color: var(--color-accent-3);
  color: var(--color-accent-3);
  background: rgba(26, 63, 122, 0.08);
}

.tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 1px var(--space-xs);
}


/* ----------------------------------------------------------------
   10. Gallery Preview Grid
   ---------------------------------------------------------------- */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-border);
  /* Outset bevel */
  box-shadow:  2px 2px 0 var(--bevel-shadow), -1px -1px 0 var(--bevel-light);
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-2);
  text-decoration: none;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 85%;
  transition: filter 0.15s;
}

.gallery-thumb:hover img { filter: brightness(1.08) saturate(1.1); }
.gallery-thumb:hover { border-color: var(--color-accent); }

.gallery-thumb__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(245, 240, 232, 0.92);
  color: var(--color-text-hi);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 3px var(--space-sm);
  letter-spacing: 0.05em;
  transform: translateY(100%);
  transition: transform 0.12s;
  border-top: 1px solid var(--color-border);
}

.gallery-thumb:hover .gallery-thumb__label { transform: translateY(0); }


/* ----------------------------------------------------------------
   11. Footer
   ---------------------------------------------------------------- */
.site-footer {
  border-top: var(--border-retro);
  background: var(--color-surface);
  padding: var(--space-md) var(--space-md);
  margin-top: var(--space-xl);
  text-align: center;
  box-shadow: inset 0 2px 0 var(--bevel-light);
}

.footer-inner { max-width: var(--max-width); margin-inline: auto; }

.footer-line {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.footer-link { color: var(--color-text-muted); font-size: var(--text-xs); }
.footer-link:hover { color: var(--color-accent); }

.footer-ascii {
  font-family: var(--font-terminal);
  font-size: var(--text-lg);
  color: var(--color-border);
  margin-top: var(--space-xs);
  letter-spacing: 0.1em;
}


/* ----------------------------------------------------------------
   12. Blog Page — single-page accordion diary
       Each entry is a <details> element. The <summary> is the
       clickable date + title row; the body expands below.
   ---------------------------------------------------------------- */

/* Year group heading */
.diary-year {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  color: var(--color-text-muted);
  border-bottom: var(--border-thin);
  padding-bottom: var(--space-xs);
  margin: var(--space-lg) 0 var(--space-sm);
  letter-spacing: 0.1em;
}

/* Wrapper for all entries in one year */
.diary-entries { margin-bottom: var(--space-lg); }

/* The collapsible entry */
.diary-entry {
  border: var(--border-thin);
  border-left: 3px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: 4px;
  box-shadow: 1px 1px 0 var(--bevel-light), -1px -1px 0 rgba(0,0,0,0.08);
  transition: border-left-color 0.12s;
}

.diary-entry[open] {
  border-left-color: var(--color-accent);
}

/* The clickable header row */
.diary-entry summary {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  list-style: none; /* hide default triangle in Firefox */
  user-select: none;
}

/* Hide default webkit disclosure arrow */
.diary-entry summary::-webkit-details-marker { display: none; }

/* Custom ▶ / ▼ toggle indicator */
.diary-entry summary::before {
  content: '▶';
  font-size: 0.6em;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 0.15s;
  margin-right: 2px;
}

.diary-entry[open] summary::before {
  transform: rotate(90deg);
}

.diary-entry summary:hover {
  background: var(--color-surface-2);
}

/* Date stamp inside the summary */
.diary-entry__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}

/* Title inside the summary */
.diary-entry__title {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--color-text-hi);
  font-weight: bold;
  flex: 1;
  letter-spacing: 0.02em;
}

.diary-entry summary:hover .diary-entry__title {
  color: var(--color-accent);
}

/* Badges sit inline in the summary */
.diary-entry__badges {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

/* The expanded body */
.diary-entry__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border-top: var(--border-thin);
}

/* Living doc notice inside entries */
.diary-entry__body .living-doc-notice {
  background: rgba(26, 107, 60, 0.06);
  border: 1px solid var(--color-accent);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

/* Changelog at the bottom of an expanded entry */
.diary-entry__changelog {
  margin-top: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-top: var(--border-thin);
  padding-top: var(--space-sm);
}

.diary-entry__changelog summary {
  cursor: pointer;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  font-size: var(--text-xs);
  padding: 0;
  list-style: none;
}
.diary-entry__changelog summary::-webkit-details-marker { display: none; }
.diary-entry__changelog summary::before {
  content: '▶ ';
  font-size: 0.6em;
}
.diary-entry__changelog[open] summary::before { content: '▼ '; }

.diary-entry__changelog ul {
  margin-top: var(--space-xs);
  line-height: 1.8;
}

.diary-entry__changelog li::before {
  content: '› ';
  color: var(--color-accent);
}


/* ----------------------------------------------------------------
   13. Blog entry prose styles
   ---------------------------------------------------------------- */
.prose p {
  font-size: 1rem;
  line-height: 1.85;
  max-width: 68ch;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.prose h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: var(--border-thin);
}

.prose h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
  color: var(--color-accent-2);
}

.prose blockquote {
  border-left: 3px solid var(--color-accent-2);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.prose code {
  font-family: var(--font-mono);
  background: var(--color-surface-2);
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  border: 1px solid var(--color-border);
}

.prose a { color: var(--color-accent); }
.prose a:hover { color: var(--color-accent-2); }

/* Pull-quote */
.pullquote {
  font-family: var(--font-terminal);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--color-accent-2);
  border-top: 2px solid var(--color-accent-2);
  border-bottom: 2px solid var(--color-accent-2);
  padding: var(--space-md) 0;
  margin: var(--space-xl) 0;
  text-align: center;
  line-height: 1.3;
}

/* Back link for inner pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover { color: var(--color-accent); }
.back-link::before { content: '‹ '; }


/* ----------------------------------------------------------------
   14. Photo Essay Page
   ---------------------------------------------------------------- */

/* 14a. Full-width */
.photo-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.photo-full img {
  width: 100%;
  max-height: 90vh;
  object-fit: cover;
}

.photo-block { margin: var(--space-lg) 0; }

/* 14b. Side-by-side */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.photo-pair--thirds { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 600px) {
  .photo-pair,
  .photo-pair--thirds { grid-template-columns: 1fr; }
}

/* 14c. Variable ratio figures */
.photo-figure {
  margin: 0;
  overflow: hidden;
  background: var(--color-surface-2);
  border: var(--border-thin);
}

.photo-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s;
}

.photo-figure img:hover { filter: brightness(1.04); }

.ratio-cinema   { aspect-ratio: 21 / 9; }
.ratio-wide     { aspect-ratio: 16 / 9; }
.ratio-standard { aspect-ratio: 4 / 3; }
.ratio-square   { aspect-ratio: 1 / 1; }
.ratio-portrait { aspect-ratio: 2 / 3; }
.ratio-tall     { aspect-ratio: 3 / 4; }

.photo-caption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  border-left: 2px solid var(--color-border);
  margin-top: var(--space-xs);
  line-height: 1.5;
}

.photo-section-break {
  text-align: center;
  font-family: var(--font-terminal);
  font-size: var(--text-lg);
  color: var(--color-border-hi);
  letter-spacing: 0.3em;
  margin: var(--space-xl) 0;
  user-select: none;
}

/* Hero image */
.photo-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-height: 70vh;
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.photo-hero img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  filter: brightness(0.75);
}

.photo-hero__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(15, 12, 10, 0.85));
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.photo-hero__title {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 5vw, 2.8rem);
  color: #fff;
  font-weight: bold;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.photo-hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.8);
}


/* ----------------------------------------------------------------
   15. About Page
   ---------------------------------------------------------------- */

/* Card that holds the avatar + bio side by side */
.about-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  background: var(--color-surface);
  border: var(--border-thin);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 2px 2px 0 var(--bevel-shadow), -1px -1px 0 var(--bevel-light);
}

.about-avatar {
  flex-shrink: 0;
  width: 120px;
}

.about-avatar img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 2px solid var(--color-border-hi);
  display: block;
  /* Pixel-art rendering for small GIFs/sprites */
  image-rendering: pixelated;
}

.about-avatar__caption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-xs);
  letter-spacing: 0.04em;
}

.about-bio {
  flex: 1;
  min-width: 0;
}

.about-bio h2 {
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.about-bio p {
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

/* Info list (pronouns, location, etc.) */
.about-facts {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  font-size: var(--text-sm);
  line-height: 2;
  color: var(--color-text-muted);
}

.about-facts li::before {
  content: '› ';
  color: var(--color-accent);
}

.about-facts strong {
  color: var(--color-text);
}

/* Section divider on about page */
.about-section {
  margin-bottom: var(--space-lg);
  background: var(--color-surface);
  border: var(--border-thin);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 2px 2px 0 var(--bevel-shadow), -1px -1px 0 var(--bevel-light);
}

.about-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-accent-2);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.1em;
  border-bottom: var(--border-thin);
  padding-bottom: var(--space-xs);
}

.about-section p,
.about-section li {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--color-text);
}

.about-section ul {
  padding-left: var(--space-md);
}

.about-section li::before {
  content: '▸ ';
  color: var(--color-accent);
}

/* Webring / button strip */
.button-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.button-shelf img {
  height: 31px;
  width: 88px;
  image-rendering: pixelated;
  border: 1px solid var(--color-border);
}

/* ── Responsive — stack avatar above bio on narrow screens ────── */
@media (max-width: 540px) {
  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-facts { text-align: left; }
}


/* ----------------------------------------------------------------
   16. Utility Classes  (was 15)
   ---------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-accent   { color: var(--color-accent); }
.text-accent-2 { color: var(--color-accent-2); }
.text-accent-3 { color: var(--color-accent-3); }
.text-muted    { color: var(--color-text-muted); }
.text-center   { text-align: center; }
.mono          { font-family: var(--font-mono); }
.terminal      { font-family: var(--font-terminal); }
.mt-lg         { margin-top: var(--space-lg); }
.mb-lg         { margin-bottom: var(--space-lg); }


/* ----------------------------------------------------------------
   16. Animations
   ---------------------------------------------------------------- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .blink-cursor { animation: none; }
}


/* ----------------------------------------------------------------
   17. Responsive / Mobile
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-list { flex-wrap: wrap; }
  .nav-btn  { font-size: var(--text-xs); }

  .city-viewport { min-height: 120px; }
  .ascii-city    { font-size: 0.75rem; }

  .diary-entry__badges { display: none; } /* hide on small screens */
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1.25rem;
    --space-xl: 2.5rem;
  }

  .site-header { padding: var(--space-md); }
  .site-title  { font-size: 0.85rem; }

  .hero-img { height: 150px; }

  .photo-hero__title   { font-size: 1.3rem; }
  .photo-hero__overlay { padding: var(--space-lg) var(--space-md) var(--space-md); }

  .gallery-preview-grid { grid-template-columns: 1fr 1fr; }

  .diary-entry summary {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }
}
