

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Zilla+Slab:ital,wght@0,400;0,500;0,600;1,400&family=Caveat:wght@400;600&family=Source+Code+Pro:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --parchment:       #f5efe0;
  --parchment-dark:  #e8ddc8;
  --parchment-deep:  #d4c4a0;
  --ink:             #2c2416;
  --ink-light:       #5a4a30;
  --ink-faint:       #8a7a60;
  --moss:            #4a6741;
  --moss-light:      #6b8f62;
  --moss-pale:       #c8d9c0;
  --terracotta:      #a0522d;
  --terracotta-pale: #d4a47a;
  --amber:           #c8860a;
  --amber-pale:      #f0d080;
  --rust:            #7a3520;
  --cream:           #faf7f0;
  --cream-border:    #c8b898;

  --font-body:    'Crimson Pro', Georgia, serif;
  --font-header:  'Zilla Slab', Georgia, serif;
  --font-hand:    'Caveat', cursive;
  --font-mono:    'Source Code Pro', monospace;

  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  18px;

  --shadow-sm:  2px 3px 8px rgba(44, 36, 22, 0.12);
  --shadow-md:  4px 6px 18px rgba(44, 36, 22, 0.18);
  --shadow-lg:  6px 10px 30px rgba(44, 36, 22, 0.22);

  --border:     1px solid var(--cream-border);
  --border-dark:1px solid var(--parchment-deep);

  --page-width: 1100px;
  --nav-height: 60px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--parchment);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  min-height: 100vh;
}

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

a {
  color: var(--moss);
  text-decoration: underline;
  text-decoration-color: var(--moss-pale);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  color: var(--terracotta);
  text-decoration-color: var(--terracotta-pale);
}

/* ── Skip Link (Accessibility) ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--moss);
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* ── Layout Wrapper ────────────────────────────────────────── */
.site-wrapper {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--parchment-dark);
  border-bottom: 2px solid var(--parchment-deep);
  box-shadow: 0 2px 12px rgba(44,36,22,0.10);
}

.nav-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--moss);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover {
  color: var(--terracotta);
  text-decoration: none;
}

.nav-logo .nav-logo-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-faint);
  display: block;
  line-height: 1;
  margin-top: -4px;
  font-family: var(--font-body);
  font-style: italic;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-light);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--moss-pale);
  color: var(--moss);
  border-color: var(--cream-border);
}

/* ── Page Header / Hero ────────────────────────────────────── */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: var(--border-dark);
  margin-bottom: 2.5rem;
  position: relative;
}

.page-hero::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--moss) 0%, var(--amber) 50%, var(--terracotta) 100%);
  border-radius: 2px;
  margin-top: 2.5rem;
  max-width: 200px;
}

.page-hero h1 {
  font-family: var(--font-header);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page-hero .hero-sub {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--ink-faint);
  margin-top: 0.4rem;
}

/* ── Typography: Headers ───────────────────────────────────── */

/* H1: Page titles */
h1 {
  font-family: var(--font-header);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* H2: Major section (e.g. Order / Family grouping) */
h2 {
  font-family: var(--font-header);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 500;
  color: var(--moss);
  line-height: 1.25;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--moss-pale);
}

/* H3: Subsection (e.g. Genus grouping) */
h3 {
  font-family: var(--font-header);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--terracotta);
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.4rem;
}

/* H4: Species-level heading */
h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-light);
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

/* H5: Common name / variety label */
h5 {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: 0.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

/* H6: Inline label / annotation */
h6 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
}

/* ── Body Text ─────────────────────────────────────────────── */
p {
  margin-bottom: 1.1rem;
  max-width: 70ch;
}

strong { color: var(--ink); font-weight: 600; }
em { color: var(--ink-light); }

/* Scientific name inline style */
.sci-name {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-light);
}

/* Handwritten annotation */
.annotation {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--ink-faint);
}

/* ── Classification Taxonomy Labels ────────────────────────── */
.taxon-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--parchment-dark);
  border: var(--border);
  color: var(--ink-faint);
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.taxon-label.order   { background: #d6e8d0; border-color: #b0c8a8; color: #3a5e32; }
.taxon-label.family  { background: #e8d8c0; border-color: #c8b090; color: #7a4e20; }
.taxon-label.genus   { background: #dde0e8; border-color: #b8bcc8; color: #404868; }
.taxon-label.species { background: #faf0e0; border-color: #d0c0a0; color: #6a5030; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--parchment-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-hand);
  font-size: 1rem;
}

/* img placeholder when no photo yet */
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--parchment-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-hand);
  font-size: 1.1rem;
  border-bottom: var(--border);
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.card-body h4 { margin-top: 0; }

.card-body p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  max-width: none;
}

/* ── Grid Layouts ───────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

/* ── Gallery ────────────────────────────────────────────────── */
/* Masonry-style gallery using CSS columns */
.gallery {
  columns: 3;
  column-gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 800px) { .gallery { columns: 2; } }
@media (max-width: 500px) { .gallery { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--parchment-dark);
  border: var(--border);
  transition: box-shadow 0.2s;
}

.gallery-item:hover { box-shadow: var(--shadow-md); }

.gallery-item img {
  width: 100%;
  display: block;
  transition: opacity 0.2s;
}

.gallery-item figcaption {
  padding: 0.4rem 0.7rem 0.5rem;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--ink-faint);
  border-top: var(--border);
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,15,5,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 85vh;
  max-width: 90vw;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.lightbox-close:hover { opacity: 1; }

/* ── Species Entry Block ────────────────────────────────────── */
.species-entry {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 620px) {
  .species-entry {
    grid-template-columns: 1fr;
  }
}

.species-entry .species-photos {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.species-entry .species-photos img {
  border-radius: var(--radius-sm);
  width: 100%;
  object-fit: cover;
  border: var(--border);
}

.species-entry .species-info h4 { margin-top: 0; }

/* ── Stat / Tag Chips ───────────────────────────────────────── */
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  border: 1px solid;
  margin: 0.15rem 0.15rem 0.15rem 0;
  vertical-align: middle;
}

.chip-green  { background: #d6ecd0; border-color: #9ac090; color: #2e5c28; }
.chip-amber  { background: #faefd0; border-color: #d4b060; color: #7a5000; }
.chip-red    { background: #f0d8d0; border-color: #c09080; color: #6a2818; }
.chip-blue   { background: #d8e4f0; border-color: #90a8c8; color: #283a58; }
.chip-neutral{ background: var(--parchment-dark); border-color: var(--cream-border); color: var(--ink-faint); }

/* ── Info Table ─────────────────────────────────────────────── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--parchment-deep);
  vertical-align: top;
}

.info-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  width: 38%;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tr:nth-child(even) {
  background: var(--parchment-dark);
}

/* ── Selling / Availability Cards ──────────────────────────── */
.for-sale-card {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.for-sale-card .sale-img-wrap {
  aspect-ratio: 4/3;
  background: var(--parchment-dark);
  border-bottom: var(--border);
  overflow: hidden;
  position: relative;
}

.for-sale-card .sale-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.for-sale-card .sale-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--ink-faint);
}

.for-sale-card .availability-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--cream);
  border: var(--border);
  border-radius: 100px;
  padding: 0.15rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
}

.for-sale-card .availability-badge.sold-out {
  color: var(--ink-faint);
}

.for-sale-card .sale-body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.for-sale-card .sale-price {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--moss);
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.7rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 2px solid;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--moss);
  color: var(--cream);
  border-color: var(--moss);
}
.btn-primary:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--cream);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--moss);
  border-color: var(--moss-pale);
}
.btn-outline:hover {
  background: var(--moss-pale);
  color: var(--ink);
  text-decoration: none;
}

/* ── Callout / Notice Boxes ─────────────────────────────────── */
.callout {
  border-left: 4px solid var(--moss);
  background: #eef4ec;
  padding: 0.9rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-size: 0.97rem;
}
.callout p { max-width: none; margin-bottom: 0; }
.callout.warning { border-color: var(--amber); background: #faf3d8; }
.callout.note    { border-color: var(--terracotta); background: #f5ebe4; }

/* ── Q&A / FAQ ──────────────────────────────────────────────── */
.faq-list { margin: 1.5rem 0; }

details.faq-item {
  border: var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  background: var(--cream);
  overflow: hidden;
  transition: box-shadow 0.18s;
}

details.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

details.faq-item summary {
  padding: 0.8rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: '+';
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--moss);
  flex-shrink: 0;
  transition: transform 0.18s;
}

details.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0.1rem 1.1rem 1rem;
  border-top: var(--border);
  font-size: 0.97rem;
}

.faq-answer p:last-child { margin-bottom: 0; }

/* ── Section Divider ────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 2px dashed var(--parchment-deep);
  margin: 2.5rem 0;
}

.divider-leaf {
  text-align: center;
  border: none;
  margin: 2.5rem 0;
  position: relative;
  color: var(--moss-pale);
  font-size: 1.2rem;
}
.divider-leaf::before,
.divider-leaf::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 35%;
  height: 1px;
  background: var(--parchment-deep);
  margin: 0 0.7rem;
}

/* ── Sidebar Layout ─────────────────────────────────────────── */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .layout-sidebar { grid-template-columns: 1fr; }
}

.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.sidebar-box {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-box h6 { margin-top: 0; }

.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box ul li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--parchment-dark);
  font-size: 0.95rem;
}
.sidebar-box ul li:last-child { border-bottom: none; }

/* ── Hero / Landing Banner ──────────────────────────────────── */
.home-hero {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 700px) {
  .home-hero { grid-template-columns: 1fr; padding: 2.5rem 0 2rem; }
}

.home-hero-text h1 {
  margin-bottom: 0.5rem;
}

.home-hero-text .tagline {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

.home-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--parchment-deep);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--parchment-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-hand);
  font-size: 1.1rem;
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Homepage Feature Cards ─────────────────────────────────── */
.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 2.5rem 0;
}

.feature-card {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.2rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: block;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--moss-pale);
  text-decoration: none;
  color: var(--ink);
}

.feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-style: normal;
  color: var(--ink);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 0;
  max-width: none;
}

/* ── Update Log ─────────────────────────────────────────────── */
.update-log {
  list-style: none;
  padding: 0;
  margin: 0;
}

.update-log li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--parchment-deep);
  font-size: 0.95rem;
  align-items: baseline;
}

.update-log li:last-child { border-bottom: none; }

.update-log .update-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── About Page ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.about-portrait {
  border-radius: var(--radius-md);
  border: 3px solid var(--parchment-deep);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--parchment-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-hand);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: 4rem;
  border-top: 2px solid var(--parchment-deep);
  background: var(--parchment-dark);
  padding: 2rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--moss);
  font-weight: 600;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.2rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--ink-light);
}

.footer-copy {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--parchment-deep);
}

/* ── Utility Classes ────────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.text-faint  { color: var(--ink-faint); }
.text-hand   { font-family: var(--font-hand); }
.text-mono   { font-family: var(--font-mono); font-size: 0.85em; }
.text-italic { font-style: italic; }
.text-small  { font-size: 0.88rem; }
.text-center { text-align: center; }

.full-width  { max-width: none; }

/* ── Responsive Helpers ─────────────────────────────────────── */
.main-content {
  padding-bottom: 3rem;
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .home-features { grid-template-columns: 1fr; }
}

/* ── Smooth fade-in on load ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-hero,
.main-content > * {
  animation: fadeUp 0.45s ease both;
}

.main-content > *:nth-child(2) { animation-delay: 0.06s; }
.main-content > *:nth-child(3) { animation-delay: 0.12s; }
.main-content > *:nth-child(4) { animation-delay: 0.18s; }