/* heyloura-pirate — placeholder scaffold styles.
   Design (waves, mast, sails, ship) is intentionally stubbed;
   this file exists to prove the skeleton renders and to host
   the palette tokens that real styles will build on. */

:root {
  --sky: #bfe3ec;
  --sea: #3a7d8c;
  --sail: #f4e7c8;
  --rope: #8b6f47;
  --ink: #2b1d10;
  --accent: #d4a017;
  --foam: #f4f9fb;
  --sea-distant: var(--sky);  /* reference color for distant-wave atmospheric shift */

  --font-display: "Pirata One", system-ui, serif;
  --font-body: "IM Fell English", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky: #0f1a2b;
    --sea: #0a2230;
    --sail: #2d2518;
    --rope: #8b6f47;
    --ink: #ede2cc;
    --accent: #f4c542;
    --foam: #4a6478;
    --sea-distant: var(--foam);  /* sky ≈ sea in dark mode, so use foam for atmospheric contrast */
  }
}

html[data-theme="light"] {
  --sky: #bfe3ec; --sea: #3a7d8c; --sail: #f4e7c8;
  --rope: #8b6f47; --ink: #2b1d10; --accent: #d4a017; --foam: #f4f9fb;
  --sea-distant: var(--sky);
}
html[data-theme="dark"] {
  --sky: #0f1a2b; --sea: #0a2230; --sail: #2d2518;
  --rope: #8b6f47; --ink: #ede2cc; --accent: #f4c542; --foam: #4a6478;
  --sea-distant: var(--foam);
}

* { box-sizing: border-box; }

/* --- Accessibility: skip link (visible only when keyboard-focused) --- */
.skip-link {
  position: absolute;
  top: -44px;
  left: 0.5rem;
  z-index: 9999;
  background: var(--accent);
  color: #2b1d10;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: top 160ms ease-out;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0.5rem;
  outline: none;
}

/* Main landing target for skip link — keep the focus ring suppressed since it's a shell, not a control */
#main:focus,
#main:focus-visible {
  outline: none;
}

/* Consistent, high-contrast keyboard focus ring across the theme */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Tighter offset for the circular theme toggle and round portholes so the ring hugs the shape */
.theme-toggle:focus-visible,
.porthole:focus-visible,
.deck-wheel:focus-visible {
  outline-offset: 4px;
}
/* Suppress focus on the mast stub and decorative anchors that shouldn't attract it */
.mast, .sky-layer { outline: none; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Clip horizontal overflow — negative-margin yards and the closed dialog
     can otherwise trigger a side-scroll at narrow viewports */
  overflow-x: clip;
  /* Smooth sunrise/sunset color transitions when toggling theme */
  transition: background-color 0.7s ease, color 0.7s ease;
}
html { overflow-x: clip; }

/* Belt-and-suspenders: a closed <dialog> must never contribute to layout */
dialog.reply-modal:not([open]) { display: none; }

/* Sea, sails, and stitching transition smoothly with theme toggle */
.sea-wave-fill, .sea-wave-crest { transition: fill 0.7s ease, stroke 0.7s ease; }
.sail, .tagline-scroll, .compass-nav, .archive, .photos { transition: background-color 0.7s ease, color 0.7s ease; }
.sail::after, .tagline-scroll::after, .compass-nav::after { transition: border-color 0.7s ease; }

h1, h2, .nest-sign, .page-title {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: 0.02em;
}

a { color: var(--accent); }

/* --- Scaffold block placeholders (real design lands next phase) --- */

.site-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 0.5rem;
  gap: 0.5rem;
}
/* --- Theme toggle: sky-window in light mode (sun visible),
   transforms into the moon itself in dark mode (cream face with craters). --- */
.theme-toggle {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  background: var(--sky);
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 0.7s ease, box-shadow 0.7s ease, transform 0.18s ease;
}

/* Dark mode: button BECOMES the moon — cream surface with a soft glow */
html[data-theme="dark"] .theme-toggle {
  background: #f4e7c8;
  box-shadow: 0 0 14px rgba(244, 231, 200, 0.4);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle {
    background: #f4e7c8;
    box-shadow: 0 0 14px rgba(244, 231, 200, 0.4);
  }
}

.theme-toggle:hover {
  transform: scale(1.06);
}
html[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 0 18px rgba(244, 231, 200, 0.6);
}
.theme-toggle:active { transform: scale(0.96); }

.toggle-sun, .toggle-moon {
  position: absolute;
  left: 50%;
  width: 78%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transition: top 0.9s cubic-bezier(0.35, 0.05, 0.3, 1.08);
}

/* Light mode (default): sun centered, moon waiting above the night sky */
.toggle-sun  { top: 50%; }
.toggle-moon { top: -55%; }

/* Dark mode: sun has set beneath, moon is at its zenith */
html[data-theme="dark"] .toggle-sun  { top: 155%; }
html[data-theme="dark"] .toggle-moon { top: 50%; }

/* Auto: follow system preference when no explicit theme is set */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .toggle-sun  { top: 155%; }
  html:not([data-theme="light"]) .toggle-moon { top: 50%; }
}

/* Slow rotation on the sun's rays while visible — gives it life */
.sun-rays {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: sun-rays-spin 30s linear infinite;
}
@keyframes sun-rays-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* --- Crow's nest --- */
.crows-nest {
  position: relative;
  width: min(340px, 80vw);
}
.nest-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}
.nest-sign {
  position: absolute;
  top: 71%;          /* centered on the nameplate plank (viewBox is now 240 tall) */
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #f4e7c8;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}
.nest-sign:hover { color: var(--accent); }

/* RSS pennant — attached to the flagpole tip in the SVG */
.flag-pennant {
  position: absolute;
  top: 19%;          /* aligns with pole tip at SVG (285, 55) */
  left: 94%;
  background: var(--accent);
  color: #2b1d10;
  padding: 0.2rem 0.9rem 0.2rem 0.4rem;
  clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%);
  font-size: 0.7rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform-origin: left center;
  animation: pennant-flutter 3.4s ease-in-out infinite;
}
@keyframes pennant-flutter {
  0%, 100% { transform: rotate(-3deg) scaleY(0.95); }
  50%      { transform: rotate(2deg) scaleY(1); }
}

/* Header mast — extends from below the crow's nest to the bottom of the header,
   sits behind the tagline (and mobile nav) so the mast spine appears continuous.
   Flat ends (no border-radius) to match the SVG stub's rect shape. */
.header-mast {
  position: absolute;
  left: 50%;
  top: calc(min(340px, 80vw) * 0.8 - 4px);
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, var(--rope), #6a5436, var(--rope));
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.tagline-scroll {
  position: relative;
  z-index: 2;
  background-color: var(--sail);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  color: var(--ink);
  padding: 0.75rem 2.5rem 0.9rem;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: fit-content;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
}
.tagline-scroll::after {
  content: '';
  position: absolute;
  inset: 6px 10px;
  border: 1px dashed var(--rope);
  opacity: 0.45;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}

/* --- Compass rose primary nav --- */
.compass-rose {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 280px;
  height: 190px;
}
.compass-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}
.compass-nav {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.compass-nav li {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.compass-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}
.compass-nav a:hover { color: var(--accent); }

/* Each label sits 12px from the dial edge (dial radius 55px) */
.compass-n { transform: translate(-50%, calc(-67px - 100%)); }
.compass-e { transform: translate(67px, -50%); }
.compass-s { transform: translate(-50%, 67px); }
.compass-w { transform: translate(calc(-67px - 100%), -50%); }

.compass-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--rope);
  color: var(--sail);
  cursor: pointer;
  font-weight: bold;
  font-size: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.compass-center:hover { background: var(--accent); color: var(--ink); }

.compass-needle {
  transform-origin: 60px 60px;
  animation: needle-drift 8s ease-in-out infinite;
}
@keyframes needle-drift {
  0%, 100% { transform: rotate(-12deg); }
  50%      { transform: rotate(12deg); }
}

.mast-wrapper {
  position: relative;
  max-width: min(720px, 100%);
  margin: 0 auto;
  padding: 2rem 1rem 6rem;
  min-width: 0;
  /* Clip any internal overflow (e.g., negative-margin yards extending past
     the frame) instead of letting it push the viewport wider */
  overflow-x: clip;
}
.mast {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 8px;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--rope), #6a5436, var(--rope));
  z-index: 0;
}

/* --- Post sails: trapezoid canvas hung from a wooden yard --- */

.sail-frame {
  position: relative;
  z-index: 1;
  max-width: min(560px, 100%);
  margin: 2rem auto;
  min-width: 0;
}
.sail {
  max-width: 100%;
  min-width: 0;
}

/* Wooden yard — extends slightly beyond sail on left/right so ends peek out */
.sail-yard {
  position: absolute;
  top: 0;
  left: -16px;
  right: -16px;
  height: 7px;
  background: linear-gradient(to bottom, #a3825a 0%, #6a5436 50%, #4a3818 100%);
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

/* Small sail variant — shorter yard, no max-width on frame */
.sail-frame--small {
  max-width: none;
  margin: 0;
  display: inline-block;
}
.sail-frame--small .sail-yard {
  height: 5px;
  left: -10px;
  right: -10px;
}

/* Tagline wrapper — centered by flex parent .site-header */
.sail-frame--tagline {
  margin-top: 0.4rem;
}

/* Nav wrapper — invisible on desktop (compass-nav positions within .compass-rose) */
.sail-frame--nav {
  display: contents;
}
.sail-frame--nav .sail-yard {
  display: none;
}

.sail {
  position: relative;
  z-index: 2;
  padding: 1.75rem 2rem 2rem;
  background-color: var(--sail);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.18));
}

/* Inner stitching — dashed rope-colored trapezoid mirroring the sail edge */
.sail::after {
  content: '';
  position: absolute;
  inset: 10px 20px;
  border: 1px dashed var(--rope);
  opacity: 0.4;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.sail-title { margin-top: 0; }
.sail-date { font-size: 0.85em; opacity: 0.7; }

/* --- Archive page: years as furled/unfurled sails --- */
.archive {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 2rem auto 4rem;
}

/* Title + lede sit on a small sail banner above the year list */
.archive-header {
  margin: 0 auto 2rem;
  display: block;
}
.archive-header-sail {
  position: relative;
  z-index: 2;
  background-color: var(--sail);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 1px,
    transparent 1px, transparent 4px
  );
  color: var(--ink);
  padding: 0.9rem 2rem 1.1rem;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.15));
}
.archive-header-sail::after {
  content: '';
  position: absolute;
  inset: 8px 16px;
  border: 1px dashed var(--rope);
  opacity: 0.4;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}
.archive-page-title {
  margin: 0;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  color: var(--ink);
}
.archive-header .page-lede {
  margin: 0.2rem 0 0;
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.8;
}

.archive-years {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Each year wraps a <details> element */
.archive-year {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

/* The summary is a wooden yard — click/keyboard-toggle to furl/unfurl */
.archive-yard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  margin: 0 -14px;
  background: linear-gradient(to bottom, #a3825a 0%, #6a5436 55%, #4a3818 100%);
  color: #f4e7c8;
  font-family: var(--font-display);
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.22);
}
.archive-yard::-webkit-details-marker { display: none; }
.archive-yard::marker { content: ''; }

/* Custom disclosure indicator rotates 90° when open */
.archive-yard::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0.7rem;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #f4e7c8;
  transition: transform 260ms ease;
}
.archive-year[open] > .archive-yard::before {
  transform: rotate(90deg);
}

.archive-year-label { letter-spacing: 0.05em; }
.archive-year-count {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.85;
}

/* Furled sail bundle under the yard (visible when closed). Matches the unfurled
   sail's width so the overall block looks the same footprint in both states. */
.archive-yard::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 14px;   /* matches the yard's -14px peek, so the bundle is sail-width */
  right: 14px;
  height: 10px;
  background-color: var(--sail);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.14) 0px,
    rgba(0, 0, 0, 0.14) 1px,
    transparent 1px,
    transparent 3px
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
  transition: opacity 300ms ease, transform 300ms ease;
}
.archive-year[open] > .archive-yard::after {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
}

/* The unfurled sail — trapezoidal canvas with the entry list */
.archive-sail {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 1.1rem 2rem 1.5rem;
  background-color: var(--sail);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.15));
}
.archive-sail::after {
  content: '';
  position: absolute;
  inset: 10px 20px;
  border: 1px dashed var(--rope);
  opacity: 0.4;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.archive-entry {
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--rope);
}
.archive-entry:last-child { border-bottom: 0; }

.archive-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}
.archive-link:hover .archive-title,
.archive-link:hover .archive-excerpt { color: var(--accent); }

.archive-link time {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
  font-size: 0.85em;
  font-family: var(--font-body);
  margin-right: 0.7rem;
  min-width: 3.5em;
}
.archive-title {
  font-family: var(--font-display);
  font-size: 1.05em;
  letter-spacing: 0.01em;
}
.archive-excerpt {
  display: block;
  margin-top: 0.2rem;
  margin-left: 4.2em;  /* align under the title, past the date */
  font-family: var(--font-body);
  font-size: 0.9em;
  font-weight: normal;
  opacity: 0.8;
  line-height: 1.4;
}
/* When the entry has no title, the excerpt is the content — show it inline beside the date */
.archive-link > .archive-excerpt:first-of-type:last-child,
.archive-link > time + .archive-excerpt:last-child {
  display: inline;
  margin-left: 0;
}

/* Smooth unfurl/furl animation via ::details-content (modern browsers)
   Falls back to instant toggle in older browsers. */
.archive-year { interpolate-size: allow-keywords; }
.archive-year::details-content {
  overflow: hidden;
  block-size: 0;
  transition: block-size 450ms ease, content-visibility 450ms allow-discrete;
}
.archive-year[open]::details-content {
  block-size: auto;
}

/* --- Photos page: burnt polaroids pinned to year sails ---------------- */

.photos {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 2rem auto 4rem;
}
/* Reuse archive header sail sizing but widen to match the photos container */
.photos .archive-header { margin: 0 auto 2rem; }

.photos-years {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.photos-year {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  interpolate-size: allow-keywords;
}

/* The unfurled sail holding the masonry grid */
.photos-sail {
  position: relative;
  padding: 1.25rem 1.5rem 1.6rem;
  background-color: var(--sail);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 1px,
    transparent 1px, transparent 4px
  );
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.15));
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem 0.75rem;
  align-items: start;
}
.photos-sail::after {
  content: '';
  position: absolute;
  inset: 10px 22px;
  border: 1px dashed var(--rope);
  opacity: 0.4;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  /* Span all grid columns so the stitching border isn't confined to one cell */
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

/* Photo tile — outer holds rotation + dagger (unclipped so the pommel
   can escape above the tile), inner holds the burnt frame clip. */
.photo-tile {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 0.9rem;
  transition: transform 200ms ease, filter 200ms ease;
}
.photo-tile-frame {
  display: block;
  padding: 6px 7px 14px;
  background:
    radial-gradient(ellipse at 50% 45%, #efdcab 55%, #b08a4a 82%, #3a2010 100%);
  clip-path: polygon(
    3% 1%, 12% 3%, 22% 0, 34% 2%, 46% 0, 58% 3%, 70% 1%, 82% 2%, 93% 0, 99% 4%,
    100% 18%, 98% 32%, 100% 48%, 97% 62%, 100% 76%, 98% 90%,
    95% 99%, 84% 97%, 72% 100%, 60% 98%, 48% 100%, 36% 97%, 24% 100%, 12% 98%, 2% 100%,
    0 86%, 3% 70%, 0 54%, 2% 38%, 0 22%, 2% 8%
  );
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.photo-tile img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 0 0 1px rgba(58, 32, 16, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}
/* Subtle varied rotation so they look tacked up rather than gridded */
.photo-tile:nth-child(3n+1) { transform: rotate(-1.5deg); }
.photo-tile:nth-child(3n+2) { transform: rotate(1deg); }
.photo-tile:nth-child(3n+3) { transform: rotate(-0.4deg); }
.photo-tile:nth-child(5n)   { transform: rotate(2deg); }
.photo-tile:hover {
  transform: rotate(0) scale(1.03);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  z-index: 2;
}
.photo-tile:focus-visible {
  transform: rotate(0);
  outline-offset: 6px;
}

/* Small dagger stabbed into the top-center of the polaroid —
   pommel pokes above the tile edge, blade buried in the photo */
.photo-dagger {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  pointer-events: none;
  filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.55));
  z-index: 2;
}

/* Empty-state message when a year has no photos (unlikely but safe) */
.photos-sail:empty::before {
  content: 'No photos from this voyage';
  font-style: italic;
  opacity: 0.6;
  column-span: all;
}

/* Keep the legacy .photo-grid / .photo-tile img class usable if referenced elsewhere */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}

.archive-list { list-style: none; padding: 0; }
.archive-entry { display: flex; gap: 1rem; padding: 0.25rem 0; border-bottom: 1px dotted var(--rope); }
.archive-entry time { font-variant-numeric: tabular-nums; opacity: 0.7; min-width: 8ch; }

.site-footer {
  position: relative;
  margin-top: auto;  /* flex column body pushes footer to bottom when content is short */
  padding: 0;
  overflow: visible;
}

/* Static junction basket — hides the seam between the rigid body mast
   and the swaying ship mast. Does NOT animate. */
.mast-junction {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 36px;
  z-index: 3;
  pointer-events: none;
}
.mast-junction svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.ship-scene {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  animation: ship-sway 9s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes ship-sway {
  0%, 100% { transform: translateX(-2px) rotate(-0.3deg); }
  50%      { transform: translateX(2px)  rotate(0.3deg); }
}

.ship-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

/* Deck items positioned absolutely over the ship SVG.
   Coordinates are percentages of the 600x420 viewBox. */
.deck-items {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deck-item {
  position: absolute;
  pointer-events: auto;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease-out;
}
.deck-item:hover { transform: scale(1.08); }
.deck-item svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Parrot — perched on the yard, left side of mast */
.deck-parrot {
  top: 0%;
  left: 34%;
  width: 9%;
  height: auto;
  aspect-ratio: 1;
  transform-origin: bottom center;
}

/* Three portholes on left side of hull, stepped diagonally outward as they go down */
.porthole {
  position: absolute;
  width: 5.5%;
  aspect-ratio: 1;
  pointer-events: auto;
  transition: transform 200ms ease-out;
  z-index: 2;
  transform: translate(-50%, -50%);
}
.porthole:hover { transform: translate(-50%, -50%) scale(1.12); }
.porthole svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

/* Follow hull's left curve: each porthole further from center as y increases */
.porthole-prev { top: 55%; left: 21%; }
.porthole-ring { top: 55%; left: 31%; }
.porthole-next { top: 55%; left: 41%; }

/* Wheel — front-center of deck, sits on the deck surface */
.deck-wheel {
  top: 40%;
  left: 45.5%;
  width: 10%;
  aspect-ratio: 1;
}
.deck-wheel:hover { transform: rotate(45deg) scale(1.05); }

/* Cannon — left of wheel on deck, mirrors the chest. Click fires a cannonball. */
.deck-cannon {
  top: 28%;
  left: 28%;
  width: 16%;
  aspect-ratio: 1.5;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.deck-cannon svg { width: 100%; height: 100%; display: block; }

/* Cannonball — dark iron ball that arcs off the port side on fire */
.cannonball {
  position: absolute;
  top: 38%;
  left: 6%;
  width: 13%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, #4a4a4a 0%, #1d1610 60%, #0a0804 100%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.deck-cannon.firing .cannonball {
  animation: cannonball-arc 1.4s cubic-bezier(0.3, 0, 0.7, 1) forwards;
}
@keyframes cannonball-arc {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.8); }
  8%   { opacity: 1; transform: translate(-10px, -6px) scale(1); }
  40%  { transform: translate(-160px, -80px) scale(1); }
  70%  { opacity: 1; transform: translate(-300px, -40px) scale(1); }
  100% { opacity: 0; transform: translate(-440px, 120px) scale(0.9); }
}

/* Cannon barrel recoil + pitch-up on fire. Pivots on the trunnion band in SVG coords. */
.cannon-barrel {
  transform-box: fill-box;
  transform-origin: 53% 50%;  /* trunnion center within the barrel assembly's bounding box */
}
.deck-cannon.firing .cannon-barrel {
  animation: cannon-recoil 1s ease-out forwards;
}
@keyframes cannon-recoil {
  0%   { transform: rotate(0deg) translateX(0); }
  8%   { transform: rotate(18deg) translateX(5px); }
  40%  { transform: rotate(10deg) translateX(2px); }
  100% { transform: rotate(0deg) translateX(0); }
}

/* Cannon smoke puff at the muzzle */
.cannon-smoke {
  position: absolute;
  top: 28%;
  left: 0%;
  width: 30%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(220, 220, 220, 0.9) 0%, rgba(180, 180, 180, 0.4) 50%, transparent 75%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
  z-index: 4;
}
.deck-cannon.firing .cannon-smoke {
  animation: cannon-smoke 1s ease-out forwards;
}
@keyframes cannon-smoke {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.3); }
  15%  { opacity: 0.9; transform: translate(-20%, -5%) scale(1); }
  100% { opacity: 0; transform: translate(-80%, -20%) scale(2.2); }
}

/* Parrot speech bubble — rotates phrases on hover/focus */
.parrot-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -6px) scale(0.9);
  transform-origin: bottom center;
  background: var(--sail);
  color: var(--ink);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--rope);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-style: italic;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  z-index: 5;
}
.parrot-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: var(--sail);
  margin-top: -1px;
}
.deck-parrot:hover .parrot-bubble,
.deck-parrot:focus .parrot-bubble,
.deck-parrot:focus-visible .parrot-bubble {
  opacity: 1;
  transform: translate(-50%, -6px) scale(1);
}

/* Wheel spin on click */
.deck-wheel.spinning svg { animation: wheel-spin 0.7s ease-out; }
@keyframes wheel-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- Sky decorations (seagulls in light, stars in dark) --- */
.sky-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Seagulls — three drifting silhouettes at different speeds/positions */
.seagulls { position: absolute; inset: 0; }
.seagull {
  position: absolute;
  width: 34px;
  color: var(--ink);
  opacity: 0.6;
  pointer-events: none;
  will-change: transform;
}
.seagull svg { width: 100%; height: auto; display: block; }

.seagull-1 {
  top: 8%;
  width: 36px;
  animation: gull-drift-right 42s linear infinite;
}
.seagull-2 {
  top: 17%;
  width: 30px;
  opacity: 0.5;
  animation: gull-drift-left 56s linear infinite;
  animation-delay: -22s;
}
.seagull-3 {
  top: 24%;
  width: 26px;
  opacity: 0.45;
  animation: gull-drift-right 38s linear infinite;
  animation-delay: -14s;
}
@keyframes gull-drift-right {
  from { transform: translateX(-60px); }
  to   { transform: translateX(100vw); }
}
@keyframes gull-drift-left {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-60px); }
}

/* Stars */
.stars { position: absolute; inset: 0; display: none; }
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--foam);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(244, 249, 251, 0.8);
  animation: star-twinkle 4s ease-in-out infinite;
}
@keyframes star-twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.7); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* Day/night visibility */
@media (prefers-color-scheme: dark) {
  .seagulls { display: none; }
  .stars    { display: block; }
}
html[data-theme="light"] .seagulls { display: block; }
html[data-theme="light"] .stars    { display: none; }
html[data-theme="dark"]  .seagulls { display: none; }
html[data-theme="dark"]  .stars    { display: block; }

@media (prefers-reduced-motion: reduce) {
  .seagull-1, .seagull-2, .seagull-3, .star { animation: none; }
}

/* --- Kraken easter egg (Konami code → sea monster attack on both sides) ---
   Default state has no transform — the element sits at bottom:0 of ship-scene
   (inside its bounds) so it doesn't extend document scroll. The 105% translateY
   only applies during the animation keyframes. */
.sea-monster {
  position: absolute;
  bottom: 0;
  width: 22%;
  aspect-ratio: 0.5;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform-origin: bottom center;
}
.sea-monster svg { width: 100%; height: 100%; display: block; }

.sea-monster-left  { left: -6%; }
.sea-monster-right { right: -6%; }
.sea-monster-right svg { transform: scaleX(-1); }

body.sea-monster-attacks .sea-monster-left {
  animation: tentacle-attack-left 4.5s ease-in-out forwards;
}
body.sea-monster-attacks .sea-monster-right {
  animation: tentacle-attack-right 4.5s ease-in-out 0.3s forwards;
}

@keyframes tentacle-attack-left {
  0%   { transform: translateY(105%) rotate(-4deg);  opacity: 0.3; }
  8%   { transform: translateY(50%)  rotate(-8deg);  opacity: 1; }
  20%  { transform: translateY(0%)   rotate(6deg); }
  35%  { transform: translateY(0%)   rotate(-12deg); }
  50%  { transform: translateY(0%)   rotate(8deg); }
  65%  { transform: translateY(5%)   rotate(-3deg); }
  78%  { transform: translateY(0%)   rotate(5deg); }
  90%  { transform: translateY(40%)  rotate(0deg);   opacity: 1; }
  100% { transform: translateY(105%) rotate(0deg);   opacity: 0; }
}

@keyframes tentacle-attack-right {
  0%   { transform: translateY(105%) rotate(4deg);  opacity: 0.3; }
  10%  { transform: translateY(55%)  rotate(10deg); opacity: 1; }
  22%  { transform: translateY(5%)   rotate(-5deg); }
  38%  { transform: translateY(0%)   rotate(12deg); }
  52%  { transform: translateY(3%)   rotate(-8deg); }
  68%  { transform: translateY(0%)   rotate(6deg); }
  82%  { transform: translateY(10%)  rotate(-4deg); }
  92%  { transform: translateY(45%)  rotate(0deg);   opacity: 1; }
  100% { transform: translateY(105%) rotate(0deg);   opacity: 0; }
}

/* Ship shakes violently while under attack (overrides the gentle sway) */
body.sea-monster-attacks .ship-scene {
  animation: ship-shake 0.12s linear infinite;
}
@keyframes ship-shake {
  0%   { transform: translateX(-4px) rotate(-1.5deg); }
  25%  { transform: translateX(5px)  rotate(1.8deg); }
  50%  { transform: translateX(-5px) rotate(-1deg); }
  75%  { transform: translateX(4px)  rotate(2deg); }
  100% { transform: translateX(-3px) rotate(-0.8deg); }
}

@media (prefers-reduced-motion: reduce) {
  body.sea-monster-attacks .sea-monster,
  body.sea-monster-attacks .ship-scene { animation: none; }
  .toggle-sun, .toggle-moon { transition: none; }
  .sun-rays { animation: none; }
}

/* --- Reduced motion: the user has asked not to see motion anywhere. Collapse all
   decorative animations and transitions to near-instant. Essential functional
   transitions still complete immediately. --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* Chest — right of wheel on deck, with gold count label */
.deck-chest {
  top: 31%;
  left: 57%;
  width: 11%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.deck-chest svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1.2;
}
.gold-count {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--ink);
  margin-top: -110%;
  white-space: nowrap;
}

/* Bottle — bobbing in waves, right of ship */
.deck-bottle {
  top: 85%;
  left: 82%;
  width: 8%;
  aspect-ratio: 1;
  animation: bottle-bob 4s ease-in-out infinite;
}
@keyframes bottle-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-4px) rotate(5deg); }
}
.deck-bottle:hover { animation-play-state: paused; transform: scale(1.1); }

/* Copyright + powered-by text sits inside the SVG via <textPath> so it curves with the plank.
   Font sizes are in SVG user units; bumped up so they stay readable when the ship scales down on mobile. */
.plank-copyright {
  font-family: var(--font-display);
  font-size: 19px;
  fill: #2b1d10;
}
.plank-powered {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  fill: #2b1d10;
}
.plank-powered-link text { text-decoration: underline; }

/* Foreground wave — ship breaks through here */
.ship-waves-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28%;
  z-index: 3;
  pointer-events: none;
  animation: front-wave-drift 6s ease-in-out infinite alternate;
}
@keyframes front-wave-drift {
  from { transform: translateX(-1.5%); }
  to   { transform: translateX(1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .ship-scene, .deck-bottle, .ship-waves-front { animation: none; }
}

/* --- Background sea: three layered animated waves, fixed to viewport --- */

.sea-layer {
  position: fixed;
  inset: auto 0 0 0;
  height: 40vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sea-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  will-change: transform;
  animation: wave-slide linear infinite;
}

.sea-wave-fill { fill: var(--sea); }

/* Atmospheric perspective: distant waves shift toward --sea-distant
   (sky in light mode, foam in dark mode where sky ≈ sea) */
.sea-wave--back .sea-wave-fill { fill: color-mix(in oklch, var(--sea), var(--sea-distant) 30%); }
.sea-wave--mid  .sea-wave-fill { fill: color-mix(in oklch, var(--sea), var(--sea-distant) 12%); }
.sea-wave-crest {
  fill: none;
  stroke: var(--foam);
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.sea-wave--back {
  bottom: 0;
  height: 36vh;
  opacity: 0.45;
  animation-duration: 32s;
}
.sea-wave--mid {
  bottom: 0;
  height: 30vh;
  opacity: 0.75;
  animation-duration: 22s;
  animation-direction: reverse;
}
.sea-wave--front {
  bottom: 0;
  height: 26vh;
  opacity: 1;
  animation-duration: 14s;
}

/* No foam on the back layer (reads as distance); thicker on front */
.sea-wave--back  .sea-wave-crest { display: none; }
.sea-wave--mid   .sea-wave-crest { stroke-width: 3; }
.sea-wave--front .sea-wave-crest { stroke-width: 5; }

@keyframes wave-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Push body content above the sea layer (sea is z-index: 0) */
.site-header, .mast-wrapper, .site-footer { position: relative; z-index: 1; }

.sky-layer, .waves-front {
  /* reserved for sky parallax + foreground footer waves */
}

/* --- Single post layout ---------------------------------------------- */

.sail-frame--single { max-width: min(620px, 100%); }
.sail--single { padding: 2rem 2.5rem 2.5rem; }
.sail--single::after {
  content: '';
  position: absolute;
  inset: 12px 24px;
  border: 1px dashed var(--rope);
  opacity: 0.4;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}
.sail--single .sail-title {
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 0.3rem;
}
.sail--note { padding: 1.6rem 2.2rem 2rem; }
.sail-permalink {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.sail-permalink:hover .sail-date { color: var(--accent); }
.sail--single .sail-date {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  opacity: 0.75;
}
.sail--note .sail-date {
  display: block;
  text-align: center;
  margin-bottom: 0.6rem;
}
.sail--single .sail-body { margin-top: 1.1rem; }
.sail--single .sail-body p:first-child { margin-top: 0; }

/* Category "flag chips" — tiny pennants strung under the title/date */
.post-flags {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}
.sail--note .post-flags { justify-content: center; }
.post-flag a {
  display: inline-block;
  padding: 0.12rem 0.7rem 0.12rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  /* Locked to cream, not var(--sail), since dark-mode sail is brown-on-brown */
  color: #f4e7c8;
  background: linear-gradient(to bottom, #a3825a 0%, #6a5436 55%, #4a3818 100%);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.post-flag a:hover { filter: brightness(1.15); }

/* --- Kudos banner: "hoist the colors" -------------------------------- */

.kudos-banner {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin: 1.2rem auto 1.8rem;
  text-align: center;
}
.kudos-pole {
  width: 3px;
  height: 34px;
  margin: 0 auto -2px;
  background: linear-gradient(to bottom, #a3825a, #6a5436 60%, #4a3818);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.kudos-pole::before {
  /* little gold ball on top of the pole */
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: -4px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f4c542, #8b6f10);
  box-shadow: 0 0 3px rgba(212, 160, 23, 0.6);
}
.kudos-control {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

/* Tinylytics kudos element — restyle the injected button as a flag-shaped chip */
.tinylytics_kudos {
  display: inline-block;
}
.tinylytics_kudos button,
.tinylytics_kudos .tinylytics_kudos_button, .tinylytics_kudos, .tinylytics_kudos_button,
button.tinylytics_kudos_button {
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.05em;
  /* Dark ink both modes — var(--ink) flips to cream in dark and disappears on yellow */
  color: #2b1d10 !important;
  background-color: var(--accent) !important;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 1px,
    transparent 1px, transparent 4px
  ) !important;
  border: 1px solid var(--rope) !important;
  padding: 0.35rem 1.1rem 0.35rem 0.85rem !important;
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
  cursor: pointer;
  transition: transform 200ms ease;
}
.tinylytics_kudos button:hover { transform: translateY(-2px) rotate(-1deg); }
.tinylytics_kudos button:active { transform: translateY(0); }
/* Small parchment sail behind the label so it reads against the sky/mast */
.kudos-label {
  position: relative;
  margin: 0.1rem 0 0;
  padding: 0.25rem 1.1rem 0.35rem;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink);
  background-color: var(--sail);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 1px,
    transparent 1px, transparent 4px
  );
  clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}
.kudos-label::after {
  content: '';
  position: absolute;
  inset: 3px 10px;
  border: 1px dashed var(--rope);
  opacity: 0.4;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

/* --- Dispatches from the fleet: comments section --------------------- */

.comments-section {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 2rem auto 3rem;
}
.comments-header {
  margin: 0 auto 1.4rem;
  display: block;
  text-align: center;
}
.comments-header-sail {
  position: relative;
  z-index: 2;
  background-color: var(--sail);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 1px,
    transparent 1px, transparent 4px
  );
  color: var(--ink);
  padding: 0.7rem 1.8rem 0.9rem;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.15));
}
.comments-header-sail::after {
  content: '';
  position: absolute;
  inset: 6px 14px;
  border: 1px dashed var(--rope);
  opacity: 0.4;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}
.comments-page-title {
  margin: 0;
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  color: var(--ink);
}
.comments-header-sail .page-lede {
  margin: 0.15rem 0 0;
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Furled yard summary — mirrors .archive-yard */
.comments-furl {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  interpolate-size: allow-keywords;
}
.comments-yard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  margin: 0 -14px;
  background: linear-gradient(to bottom, #a3825a 0%, #6a5436 55%, #4a3818 100%);
  color: #f4e7c8;
  font-family: var(--font-display);
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.22);
}
.comments-yard::-webkit-details-marker { display: none; }
.comments-yard::marker { content: ''; }
.comments-yard::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.55rem;
  font-size: 0.7em;
  transition: transform 200ms ease;
  color: var(--accent);
}
.comments-furl[open] > .comments-yard::before { transform: rotate(90deg); }
.comments-furl-count::before {
  content: attr(data-count);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0;
  opacity: 0.8;
}
.comments-furl-count:empty::before { content: ''; }

/* Furled-sail bundle visible when closed (copied from .archive-yard::after) */
.comments-yard::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 14px;
  right: 14px;
  height: 14px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      var(--sail) 0px, var(--sail) 14px,
      rgba(0,0,0,0.08) 14px, rgba(0,0,0,0.08) 16px
    );
  border-radius: 0 0 60% 60% / 0 0 100% 100%;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
  transition: opacity 200ms ease, transform 300ms ease;
  transform-origin: top;
}
.comments-furl[open] > .comments-yard::after {
  opacity: 0;
  transform: scaleY(0);
}

.comments-sail {
  position: relative;
  padding: 1.2rem 1.8rem 1.8rem;
  background-color: var(--sail);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 1px,
    transparent 1px, transparent 4px
  );
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.15));
}
.comments-sail::after {
  content: '';
  position: absolute;
  inset: 10px 20px;
  border: 1px dashed var(--rope);
  opacity: 0.4;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}
.comments-furl::details-content {
  overflow: hidden;
  block-size: 0;
  transition: block-size 450ms ease, content-visibility 450ms allow-discrete;
}
.comments-furl[open]::details-content {
  block-size: auto;
}

/* "Send a message in a bottle" button */
.message-bottle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  /* Dark ink both modes — yellow background stays bright, cream ink disappears on it */
  color: #2b1d10;
  background-color: var(--accent);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 1px,
    transparent 1px, transparent 4px
  );
  border: 1px solid var(--rope);
  padding: 0.4rem 1rem 0.45rem;
  margin: 0 auto 1rem;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease;
}
.message-bottle-btn:hover { transform: translateY(-1px) rotate(-0.5deg); }

/* --- Micro.blog conversation: porthole avatars, flag-ish posts -------- */

.microblog_conversation {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.microblog_post {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.7rem;
  padding: 0.6rem 0.2rem;
  border-bottom: 1px dotted var(--rope);
}
.microblog_post:last-of-type { border-bottom: 0; }
.microblog_user {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  align-items: flex-start;
  padding-top: 0.15rem;
  flex-direction: column;
}

/* Porthole avatar — rope ring around circular image */
.microblog_avatar {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
  background: linear-gradient(135deg, #a3825a 0%, #6a5436 55%, #4a3818 100%);
  box-shadow:
    0 0 0 2px var(--sail),
    0 0 0 3px var(--rope),
    inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.microblog_fullname {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  align-self: center;
}
.microblog_fullname:empty { display: none; }
.microblog_text {
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}
.microblog_text p { margin: 0.15rem 0; }
.microblog_text a { color: var(--accent); }
.microblog_time {
  grid-column: 2;
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.7;
  margin-top: 0.2rem;
}
.microblog_time a { color: inherit; text-decoration: none; }
.microblog_time a:hover { text-decoration: underline; }

/* Hide MB's inline reply form by default — it gets moved into the modal */
.microblog_reply_form {
  display: none;
}
.reply-modal .microblog_reply_form {
  display: block;
}

/* --- Reply modal: burnt parchment + treasure map --------------------- */

.reply-modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: 560px;
  width: calc(100% - 2rem);
}
.reply-modal::backdrop {
  background: rgba(10, 34, 48, 0.55);
  backdrop-filter: blur(2px);
}
.reply-modal[open] { animation: reply-modal-in 260ms ease; }
@keyframes reply-modal-in {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.reply-modal-paper {
  position: relative;
  padding: 2rem 2.2rem 2.4rem;
  color: #3a2a14;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(74,56,24,0.25), transparent 55%),
    linear-gradient(135deg, #efdcab 0%, #d9bf7f 50%, #b08a4a 100%);
  /* Torn/burnt edges via jagged polygon clip-path */
  clip-path: polygon(
    2% 0, 8% 2%, 14% 0, 22% 3%, 30% 1%, 40% 4%, 50% 1%, 60% 3%, 70% 0, 80% 3%, 88% 1%, 96% 2%, 100% 5%,
    98% 14%, 100% 24%, 97% 34%, 100% 46%, 98% 58%, 100% 70%, 97% 82%, 100% 92%,
    94% 98%, 84% 100%, 74% 97%, 64% 100%, 54% 98%, 44% 100%, 34% 97%, 24% 100%, 14% 98%, 6% 100%, 0 95%,
    3% 86%, 0 76%, 2% 66%, 0 54%, 3% 42%, 0 30%, 2% 18%, 0 8%
  );
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
/* Scorched edge tint */
.reply-modal-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(80, 40, 10, 0.35) 85%,
    rgba(40, 20, 5, 0.6) 100%
  );
  mix-blend-mode: multiply;
}
/* Faded treasure map — decorative SVG backdrop at low opacity */
.reply-modal-map {
  position: absolute;
  inset: 14px;
  opacity: 0.12;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 360'><g fill='none' stroke='%233a2a14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 260 Q60 230 100 250 T200 260 Q260 240 320 255 T460 250'/><path d='M30 280 Q90 260 150 275 T300 280 Q360 270 420 278'/><path d='M60 60 q20 -20 50 -10 q30 10 60 0 q30 -10 60 10 q30 20 60 0 q30 -20 70 -5 q30 10 60 5' /><circle cx='120' cy='120' r='8'/><circle cx='380' cy='90' r='10'/><path d='M200 140 q30 -30 70 -20 q40 10 80 -10 q30 -15 60 0'/><path d='M90 180 q40 -10 70 10 q40 30 90 10 q40 -20 90 0 q40 20 80 0'/></g><g fill='%233a2a14' font-family='Pirata One, serif' font-size='22'><text x='150' y='210' transform='rotate(-8 150 210)'>Here be dragons</text><text x='340' y='170' transform='rotate(6 340 170)'>Isla del Code</text></g><g stroke='%23a02020' stroke-width='4' fill='none'><line x1='290' y1='200' x2='310' y2='220'/><line x1='310' y1='200' x2='290' y2='220'/></g><g fill='none' stroke='%233a2a14' stroke-width='1.5' stroke-dasharray='4 4'><path d='M70 300 Q150 240 250 260 T430 220'/></g></svg>");
}
.reply-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(58, 42, 20, 0.5);
  background: rgba(255, 246, 220, 0.6);
  color: #3a2a14;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}
.reply-modal-close:hover { background: rgba(255, 246, 220, 0.95); }
.reply-modal-title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #3a2a14;
  text-align: center;
}
.reply-modal-sub {
  position: relative;
  z-index: 1;
  margin: 0 0 1.1rem;
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
}
.reply-modal-form-slot {
  position: relative;
  z-index: 1;
}

/* Restyle the MB form inside the modal */
.reply-modal .microblog_reply_signin {
  font-size: 0.85rem;
  margin: 0 0 0.8rem;
  text-align: center;
  color: #3a2a14;
}
.reply-modal .microblog_reply_signin a {
  color: #7a4a10;
  font-weight: bold;
}
.reply-modal .microblog_reply_textarea textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #3a2a14;
  background: rgba(255, 248, 220, 0.55);
  border: 1px dashed rgba(58, 42, 20, 0.6);
  border-radius: 2px;
  resize: vertical;
  box-sizing: border-box;
}
.reply-modal .microblog_reply_textarea textarea:focus {
  outline: 2px solid var(--accent);
  background: rgba(255, 248, 220, 0.85);
}
.reply-modal .microblog_reply_button {
  margin: 0.8rem 0 0;
  text-align: center;
}
.reply-modal .microblog_reply_button input[type="submit"] {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #fff4d8;
  background: radial-gradient(circle at 40% 35%, #b0242a 0%, #7a1618 60%, #4a0c0c 100%);
  border: 2px solid #3a0a0a;
  padding: 0.5rem 1.6rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transition: transform 180ms ease;
}
.reply-modal .microblog_reply_button input[type="submit"]:hover:not([disabled]) {
  transform: translateY(-1px) scale(1.02);
}
.reply-modal .microblog_reply_button input[type="submit"][disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Sail body content ------------------------------------------------
   Styling for markdown-generated content inside any sail (single post,
   summary cards, etc). Each element gets a subtle nautical treatment. */

.sail-body > *:first-child { margin-top: 0; }
.sail-body > *:last-child { margin-bottom: 0; }
.sail-body {
  line-height: 1.6;
  /* Keep runaway URLs / long tokens from forcing the sail wider */
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Every direct child stays within the sail's inner width */
.sail-body > * { max-width: 100%; }

.sail-body h1,
.sail-body h2,
.sail-body h3,
.sail-body h4,
.sail-body h5,
.sail-body h6 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  margin: 1.4em 0 0.4em;
  color: var(--ink);
  line-height: 1.2;
}
.sail-body h2 { font-size: 1.5rem; }
.sail-body h3 { font-size: 1.2rem; }
.sail-body h4 { font-size: 1.05rem; font-style: italic; }

.sail-body p { margin: 0.8em 0; }
.sail-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(212, 160, 23, 0.55);
  text-underline-offset: 2px;
}
.sail-body a:hover { text-decoration-color: var(--accent); }

/* Inline code — small parchment chip (not applied inside <pre>) */
.sail-body :not(pre) > code {
  padding: 0.05em 0.35em;
  font-size: 0.9em;
  background: rgba(139, 111, 71, 0.18);
  border: 1px solid rgba(139, 111, 71, 0.4);
  border-radius: 3px;
  font-family: "Courier New", ui-monospace, monospace;
}

/* Code block — weathered dark scroll with an accent rope at the edge */
.sail-body pre {
  position: relative;
  margin: 1.1em 0;
  padding: 0.9rem 1rem;
  background: rgba(25, 18, 10, 0.92);
  color: #f4e7c8;
  border: 1px solid var(--rope);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  max-width: 100%;
  overflow-x: auto;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: inset 0 0 0 1px rgba(139, 111, 71, 0.25);
  /* Preserve code formatting but don't force the sail wider */
  white-space: pre;
}
.sail-body pre code { white-space: inherit; word-break: normal; overflow-wrap: normal; }
.sail-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Blockquote — rope edge + decorative quote glyph */
.sail-body blockquote {
  position: relative;
  margin: 1em 0;
  padding: 0.35rem 1rem 0.45rem 1.6rem;
  border-left: 4px solid var(--rope);
  background: rgba(139, 111, 71, 0.08);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05em;
  color: var(--ink);
}
.sail-body blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.05em;
  left: 0.4rem;
  font-family: var(--font-display);
  font-size: 2.2em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.7;
}
.sail-body blockquote p { margin: 0.3em 0; }
.sail-body blockquote cite { font-style: normal; opacity: 0.8; }

/* Lists — anchor marker for ul, display-font numerals for ol */
.sail-body ul,
.sail-body ol { margin: 0.8em 0; padding-left: 1.5rem; }
.sail-body ul { list-style: none; padding-left: 1.3rem; }
.sail-body ul li { position: relative; padding-left: 0.4rem; }
.sail-body ul li::before {
  content: '\2693'; /* anchor */
  position: absolute;
  left: -1.15rem;
  top: 0.05rem;
  color: var(--accent);
  font-size: 0.85em;
  opacity: 0.85;
}
.sail-body ul ul li::before { content: '\2022'; font-size: 1em; }
.sail-body ol {
  list-style: none;
  counter-reset: sail-ol;
  padding-left: 2rem;
}
.sail-body ol > li {
  position: relative;
  counter-increment: sail-ol;
}
.sail-body ol > li::before {
  content: counter(sail-ol) ".";
  position: absolute;
  left: -1.7rem;
  top: 0;
  font-family: var(--font-display);
  color: var(--accent);
  letter-spacing: 0.05em;
}
.sail-body li { margin: 0.2em 0; }

/* Tables — parchment ledger with rope rules.
   display:block + overflow-x:auto lets wide tables scroll inside the sail
   rather than stretching it past the viewport on mobile. */
.sail-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.1em 0;
  font-size: 0.95em;
}
.sail-body th,
.sail-body td {
  padding: 0.45rem 0.7rem;
  text-align: left;
  border-bottom: 1px dotted var(--rope);
}
.sail-body th {
  font-family: var(--font-display);
  font-weight: normal;
  font-size: 1em;
  border-bottom: 2px solid var(--rope);
  letter-spacing: 0.03em;
}
.sail-body tbody tr:nth-child(even) td {
  background: rgba(139, 111, 71, 0.07);
}

/* Horizontal rule — dashed rope with faded ends */
.sail-body hr {
  margin: 1.8em 0;
  border: 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--rope) 0px, var(--rope) 6px,
    transparent 6px, transparent 10px
  );
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* Inline media inside sails */
.sail-body img,
.sail-body iframe,
.sail-body embed,
.sail-body object {
  max-width: 100%;
  height: auto;
}
.sail-body video {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 1.2em auto;
  border: 1px solid var(--rope);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.sail-body audio {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 1.2em auto;
  border: 1px solid var(--rope);
  border-radius: 30px;
  background: rgba(139, 111, 71, 0.14);
  box-shadow: inset 0 0 0 1px rgba(139, 111, 71, 0.3);
}

/* Polaroid figure — markdown images get this via the render hook.
   Outer figure carries rotation + dagger (unclipped); inner .polaroid-frame
   carries the burnt clip. Caption sits below on the sail paper. */
.sail-body .polaroid {
  position: relative;
  display: block;
  margin: 1.4em auto;
  max-width: min(420px, 100%);
  transform: rotate(-1deg);
}
.sail-body .polaroid-frame {
  display: block;
  padding: 8px 10px 14px;
  background:
    radial-gradient(ellipse at 50% 45%, #efdcab 55%, #b08a4a 82%, #3a2010 100%);
  clip-path: polygon(
    3% 1%, 12% 3%, 22% 0, 34% 2%, 46% 0, 58% 3%, 70% 1%, 82% 2%, 93% 0, 99% 4%,
    100% 18%, 98% 32%, 100% 48%, 97% 62%, 100% 76%, 98% 90%,
    95% 99%, 84% 97%, 72% 100%, 60% 98%, 48% 100%, 36% 97%, 24% 100%, 12% 98%, 2% 100%,
    0 86%, 3% 70%, 0 54%, 2% 38%, 0 22%, 2% 8%
  );
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
}
.sail-body .polaroid img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 0 0 1px rgba(58, 32, 16, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}
.sail-body .polaroid figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85em;
  text-align: center;
  color: var(--ink);
  opacity: 0.8;
}
.sail-body .polaroid .photo-dagger {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  pointer-events: none;
  filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.55));
  z-index: 2;
}

/* --- End single post -------------------------------------------------- */

@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  /* Compass rose collapses on mobile: hide the dial, show a simple horizontal nav below the nest */
  .compass-rose {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 0.5rem;
  }
  .compass-svg,
  .compass-center {
    display: none;
  }
  /* Nav wrapper becomes the visible sail container on mobile */
  .sail-frame--nav {
    display: inline-block;
    max-width: fit-content;
    margin: 0.5rem auto 0;
  }
  .sail-frame--nav .sail-yard {
    display: block;
  }
  .compass-rose {
    text-align: center;
  }

  .compass-nav {
    position: relative;
    z-index: 2;
    inset: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    background-color: var(--sail);
    background-image: repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
    color: var(--ink);
    padding: 0.75rem 2rem 0.9rem;
    margin: 0;
    clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
  }
  .compass-nav::after {
    content: '';
    position: absolute;
    inset: 6px 10px;
    border: 1px dashed var(--rope);
    opacity: 0.45;
    pointer-events: none;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
  }
  .compass-nav a { color: var(--ink); }

  /* Mobile: shorter yard peekout for main post sails */
  .sail-frame .sail-yard {
    left: -8px;
    right: -8px;
  }
  .compass-nav li {
    position: static;
    transform: none;
  }

  /* Photos page tightens on small screens */
  .photos-sail {
    padding: 1rem 1rem 1.2rem;
    gap: 0.7rem 0.6rem;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .photo-tile { padding: 5px 5px 10px; margin-bottom: 0.7rem; }
  .photo-dagger { width: 20px; height: 20px; top: -8px; }

  /* Sail body tightens on small screens */
  .sail-body .polaroid { max-width: 100%; }
  .sail-body pre { font-size: 0.82rem; padding: 0.7rem 0.8rem; }
  .sail-body table { font-size: 0.9em; }
  .sail-body th, .sail-body td { padding: 0.35rem 0.45rem; }

  /* Single post tightens on small screens */
  .sail--single { padding: 1.5rem 1.3rem 1.8rem; }
  .sail--single::after { inset: 10px 16px; }
  .reply-modal-paper { padding: 1.8rem 1.4rem 2rem; }
  .microblog_post { grid-template-columns: 36px 1fr; column-gap: 0.55rem; }
  .microblog_avatar {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
