/* Swatches: Gina's blog on ginawilt.bio. Same type and paper as the home page:
   Ms Madi for her name and the blog name, Young Serif headlines, Figtree reading text, Kalam captions. Each post has its own swatch color (--sw). */
:root {
  --ground: #FFF7FA; --raise: #FFFFFF; --ink: #2B1D2E; --muted: #5C4A58; --line: rgba(43, 29, 46, 0.16);
  --accent: #9A2D5A; --on-accent: #FFFFFF; --focus: #9A2D5A; --bar: #FFF7FA;
  --band: #E4D7F2; --band-ink: #2B1D2E; --band-muted: #4B3B5E;
  --f: "Figtree", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-head: "Young Serif", Georgia, "Times New Roman", serif;
  --f-hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  --f-script: "Ms Madi", "Segoe Script", "Brush Script MT", cursive;
  --max: 1120px; --measure: 40rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #17111B; --raise: #241B28; --ink: #F7EEF3; --muted: #CBBCC8; --line: rgba(247, 238, 243, 0.14);
    --accent: #F6B7CD; --on-accent: #17111B; --focus: #F6B7CD; --bar: #17111B;
    --band: #261E2C; --band-ink: #F7EEF3; --band-muted: #D8CCE6; --band-glow: #CDB8F0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #17111B; --raise: #241B28; --ink: #F7EEF3; --muted: #CBBCC8; --line: rgba(247, 238, 243, 0.14);
  --accent: #F6B7CD; --on-accent: #17111B; --focus: #F6B7CD; --bar: #17111B;
  --band: #261E2C; --band-ink: #F7EEF3; --band-muted: #D8CCE6; --band-glow: #CDB8F0; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--f); font-size: 1.125rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { max-width: calc(var(--max) + 32px); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bar) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.mark { font-family: var(--f-script); font-size: 1.875rem; line-height: 1; text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 20px; font-size: 0.9375rem; font-weight: 600; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.theme { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.theme svg { width: 18px; height: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 800; font-size: 0.9375rem; text-decoration: none; background: var(--accent); color: var(--on-accent); }

.band { background: var(--band); color: var(--band-ink); box-shadow: inset 0 4px 0 var(--band-glow, transparent); }
.band h1 { color: var(--band-glow, inherit); }
.band .wrap { padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px); display: grid; gap: 16px; }
.tag { justify-self: start; display: inline-flex; align-items: center; gap: 9px; font-size: 0.8125rem; font-weight: 800; line-height: 1; padding: 7px 14px 7px 8px; border-radius: 999px; background: #FFFFFF; color: #2B1D2E; text-decoration: none; }
.sw { width: 16px; height: 16px; border-radius: 5px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(43, 29, 46, 0.2); flex: none; }
.band h1 { font-family: var(--f-head); font-weight: 400; font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.012em; max-width: 18ch; text-wrap: balance; }
.band h1.hand { font-family: var(--f-script); font-size: clamp(3.75rem, 9vw, 6.5rem); line-height: 1.05; letter-spacing: 0; }
.dek { font-size: clamp(1.1875rem, 2.2vw, 1.5rem); line-height: 1.4; max-width: 36ch; color: var(--band-muted); }
.byline { font-size: 0.9375rem; font-weight: 700; color: var(--band-muted); }

/* A post */
.post .wrap { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.post-body { max-width: var(--measure); margin: 0 auto; display: grid; gap: 22px; }
.post-body h2 { font-family: var(--f-head); font-weight: 400; font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.15; margin-top: 18px; }
.post-body .ps { font-size: 1rem; color: var(--muted); padding-top: 18px; border-top: 2px dashed var(--line); }
.snap { position: relative; background: #FFFFFF; color: #2B1D2E; padding: 12px 12px 16px; box-shadow: 0 10px 22px rgba(43, 29, 46, 0.16); transform: rotate(var(--tilt, -1.5deg)); display: grid; gap: 10px; margin: 18px auto; width: min(100%, 22rem); }
.snap::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: rgba(247, 197, 72, 0.78); transform: rotate(3deg); }
.snap img { width: 100%; height: auto; }
.snap figcaption { font-family: var(--f-hand); font-weight: 700; font-size: 1.3125rem; line-height: 1.2; }
.snap-lead { width: min(100%, 28rem); --tilt: 1.2deg; }
.snap-left { --tilt: -2deg; }
.snap-right { --tilt: 1.8deg; }
.try { background: #FFF3B0; color: #2B1D2E; padding: 20px 22px 22px; transform: rotate(-0.8deg); box-shadow: 0 10px 22px rgba(43, 29, 46, 0.16); display: grid; gap: 10px; margin: 12px 0; }
.try-title { font-family: var(--f-hand); font-weight: 700; font-size: 1.625rem; line-height: 1.1; }
.try p { font-size: 1.0625rem; }
.try-done { justify-self: start; font: inherit; font-size: 0.9375rem; font-weight: 800; color: #FFFFFF; background: #9A2D5A; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.try-done[aria-pressed="true"] { background: #1A7270; }
.after { max-width: var(--measure); margin: clamp(36px, 5vw, 56px) auto 0; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-weight: 800; font-size: 1rem; }
.after a { text-underline-offset: 4px; }

/* The list of posts */
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: start; padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.swatches > li { height: 100%; }
.post-chip { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; height: 100%; background: #FFFFFF; color: #2B1D2E; border-radius: 14px; overflow: hidden; text-decoration: none; box-shadow: 0 1px 0 rgba(43, 29, 46, 0.08), 0 12px 26px rgba(43, 29, 46, 0.12); transition: transform .25s var(--ease); }
.post-chip:hover { transform: translateY(-4px) rotate(-0.6deg); }
.post-chip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; }
.post-chip-body { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 20px; }
.post-sw { margin: 0 -20px 6px; padding: 10px 20px; background: var(--sw); font-size: 0.8125rem; font-weight: 800; color: #2B1D2E; }
.post-chip h2 { font-family: var(--f-head); font-weight: 400; font-size: clamp(1.25rem, 0.95rem + 0.7vw, 1.5rem); line-height: 1.15; text-wrap: balance; }
.post-chip p { font-size: 0.9375rem; line-height: 1.55; color: #4B3B5E; }
.post-go { margin-top: auto; font-weight: 800; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 4px; }
.swatches > li.sw-next { height: auto; padding: 22px 6px 0; }
.next-note { background: #FFF3B0; color: #2B1D2E; padding: 20px 22px 26px; transform: rotate(2deg); box-shadow: 0 10px 22px rgba(43, 29, 46, 0.16); font-family: var(--f-hand); font-weight: 700; }
.next-note .next-title { font-family: var(--f-hand); font-weight: 700; font-size: 1.75rem; line-height: 1.1; margin-bottom: 12px; color: #2B1D2E; }
.next-note ul { display: grid; gap: 10px; font-size: 1.25rem; line-height: 1.25; list-style: none; padding: 0; margin: 0; }
.next-note li { padding-left: 22px; position: relative; text-wrap: pretty; }
.next-note li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: #5B3A86; }

.foot { background: #2B1D2E; color: #D9C8D3; }
:root[data-theme="dark"] .foot { background: #0E0A10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0E0A10; } }
.foot .wrap { display: grid; gap: 14px; padding-block: 36px 30px; font-size: 0.8125rem; line-height: 1.6; }
.credit { font-size: 1rem; color: #F7EEF3; max-width: 64ch; }
.credit a { text-underline-offset: 4px; }
.foot :focus-visible { outline-color: #F7C548; }

/* Swatch No. 2 (ruby): band color, the trip list, photo pairs, the photo grid, and the Color Factory circles */
.ruby { --band: #F6DCE1; --band-muted: #5B2E3A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ruby { --band: #2B1A20; --band-muted: #E7C6CE; --band-glow: #F2A0B3; } }
:root[data-theme="dark"] .ruby { --band: #2B1A20; --band-muted: #E7C6CE; --band-glow: #F2A0B3; }
.packed { display: grid; gap: 8px; }
.packed li { position: relative; padding-left: 26px; }
.packed li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 12px; height: 12px; border-radius: 3px; background: #9B1B30; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; align-items: start; padding-top: 8px; }
.snap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; padding: 14px 0 6px; }
.snap-grid .snap { padding: 8px 8px 10px; }
.snap-grid .snap::before { width: 54px; height: 18px; margin-left: -27px; top: -9px; }
.snap-grid .snap img { aspect-ratio: 1; object-fit: cover; }
.snap-grid .snap figcaption { font-size: 1rem; line-height: 1.2; padding-top: 6px; }
.snap-grid .snap:nth-child(3n+1) { --tilt: -1.6deg; }
.snap-grid .snap:nth-child(3n+2) { --tilt: 1.2deg; }
.snap-grid .snap:nth-child(3n) { --tilt: -0.6deg; }
.circles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.circles figure { display: grid; gap: 6px; justify-items: center; align-content: start; text-align: center; }
.circles img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 8px 18px rgba(43, 29, 46, 0.18); }
.circles figcaption { font-family: var(--f-hand); font-weight: 700; font-size: 1rem; line-height: 1.2; }

@media (max-width: 760px) {
  .nav { display: none; }
  .snap-grid, .circles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair { gap: 22px 14px; }
  .swatches { grid-template-columns: minmax(0, 1fr); }
  .post-chip { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-rows: none; }
  .post-chip img { height: 100%; min-height: 168px; aspect-ratio: auto; }
  .post-chip-body { padding: 0 16px 16px; }
  .post-sw { margin: 0 -16px 4px; padding: 8px 16px; }
  .post-chip h2 { font-size: 1.1875rem; }
  .swatches > li.sw-next { padding: 8px 4px 0; max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) { .post-chip { transition: none; } .post-chip:hover { transform: none; } }
@media print {
  .bar, .foot, .after, .theme { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .band { background: #fff; color: #111; }
  .snap { box-shadow: none; transform: none; border: 1px solid #ccc; break-inside: avoid; }
  .snap-grid, .circles, .pair { break-inside: auto; }
}
