﻿/* Self-hosted fonts (Baloo 2 + Plus Jakarta Sans, variable woff2, latin subsets). */
/* latin-ext */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/baloo2-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/baloo2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/assets/fonts/jakarta-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/assets/fonts/jakarta-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Arjayone Gallery - "Pastel Playground" design system
   Soft clay + pastel, playful but disciplined. Light is the default;
   a deep-plum dark variant keeps the existing theme toggle honest.
   ========================================================================== */

:root {
  --bg:            #FDF7FB;
  --bg-2:          #F6ECF7;
  --surface:       #FFFFFF;
  --surface-2:     #F4EEF8;
  --line:          rgba(58, 46, 77, .12);
  --line-soft:     rgba(58, 46, 77, .07);
  --text:          #3A2E4D;
  --muted:         #6B5E80;
  --faint:         #9C8FAF;
  --accent:        #FF6B8A;
  --accent-bright: #FF85A1;
  --accent-ink:    #FFFFFF;
  --danger:        #D94A6D;

  /* Pastel set */
  --peach:  #FFD9C4;
  --mint:   #C6EFD8;
  --sky:    #CFE8FB;
  --lilac:  #E5DBF7;
  --blush:  #FBD7E4;
  --butter: #FCEFC0;

  /* Typography */
  --font-display: 'Baloo 2', 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  /* Fluid modular scale, ratio 1.25 */
  --step--1: clamp(0.75rem, 0.71rem + 0.20vw, 0.83rem);
  --step-0:  clamp(0.94rem, 0.88rem + 0.29vw, 1.06rem);
  --step-1:  clamp(1.13rem, 1.05rem + 0.41vw, 1.33rem);
  --step-2:  clamp(1.35rem, 1.24rem + 0.56vw, 1.66rem);
  --step-3:  clamp(1.62rem, 1.47rem + 0.75vw, 2.08rem);
  --step-4:  clamp(1.94rem, 1.73rem + 1.02vw, 2.60rem);
  --step-5:  clamp(2.33rem, 2.04rem + 1.38vw, 3.25rem);
  --step-6:  clamp(2.79rem, 2.38rem + 1.83vw, 4.07rem);

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --measure: 68ch;
  --radius:      14px;
  --radius-tile: 20px;
  --radius-pill: 999px;

  /* Clay: soft lift + top highlight + bottom edge */
  --shadow-1: 0 2px 6px rgba(58, 46, 77, .08);
  --clay: 0 10px 22px -10px rgba(58, 46, 77, .35),
          inset 0 2px 0 rgba(255, 255, 255, .85),
          inset 0 -3px 0 rgba(58, 46, 77, .07);
  --clay-lg: 0 22px 44px -18px rgba(58, 46, 77, .42),
             inset 0 2px 0 rgba(255, 255, 255, .85),
             inset 0 -3px 0 rgba(58, 46, 77, .07);

  --nav-h: 64px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --transition: 200ms var(--spring);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fixed pastel blobs - the only background decoration, costs two gradients. */
body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
}
body::before {
  width: 46vw; height: 46vw;
  top: -16vw; right: -12vw;
  background: var(--blush);
}
body::after {
  width: 40vw; height: 40vw;
  bottom: -14vw; left: -10vw;
  background: var(--sky);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { max-width: var(--measure); }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--s-4); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Themed scrollbars - lilac thumb, track transparent. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--lilac) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--peach), var(--accent), var(--lilac));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}

/* ==========================================================================
   Layout shell
   ========================================================================== */

.shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* ==========================================================================
   Nav - floating gumdrop pill
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: clamp(8px, 1.2vw, 12px) 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.nav.is-stuck { border-bottom-color: var(--line-soft); }

.nav-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  flex-shrink: 0;
  z-index: 1;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--accent);
  filter: drop-shadow(0 3px 6px rgba(58, 46, 77, .18));
  transition: transform 400ms var(--spring);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--faint);
  margin-top: 0.18rem;
}

.brand-name-mobile { display: none; }

/* The pill that swallows links + search + actions. */
.gum {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 5px 6px;
  box-shadow: var(--clay);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current='page'] {
  color: var(--accent-ink);
  background: var(--accent);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  transition: border-color var(--transition), background var(--transition);
}

.nav-search:focus-within { border-color: var(--accent); background: var(--surface); }

.nav-search svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
  flex-shrink: 0;
}

.nav-search input {
  background: none;
  border: 0;
  outline: 0;
  width: 150px;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text);
}
.nav-search input::placeholder { color: var(--faint); }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.icon-btn:hover { color: var(--accent); transform: rotate(-12deg); }
.icon-btn svg { width: 17px; height: 17px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition),
              color var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}

.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px color-mix(in srgb, var(--accent) 75%, transparent);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow-1);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: var(--step--1);
  padding: 0.5rem 1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Hero - sticker, big display type, collage of recent photos
   ========================================================================== */

.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy { max-width: 36rem; }

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--butter);
  color: #6B4E12;
  font-size: var(--step--1);
  font-weight: 800;
  padding: 0.4rem 0.95rem 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--s-5);
  box-shadow: var(--clay);
  transform: rotate(-2deg);
}

.sticker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: var(--step-6);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: var(--s-4);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 0.28em;
  background: var(--blush);
  border-radius: var(--radius-pill);
  z-index: -1;
  transform: rotate(-1deg);
}

.hero-sub {
  font-size: var(--step-1);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--s-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.hero-stats {
  margin-top: var(--s-7);
  display: flex;
  gap: var(--s-3);
}

.hero-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: var(--s-4) var(--s-4) calc(var(--s-4) - 2px);
  border-radius: var(--radius-tile);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--clay);
  transition: transform 400ms var(--spring);
}
.hero-stat:nth-child(1) { background: var(--peach); }
.hero-stat:nth-child(2) { background: var(--mint); }
.hero-stat:nth-child(3) { background: var(--sky); }

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.hero-stat span {
  font-size: var(--step--1);
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

/* Collage of recent photos - layered, rotated clay frames. */
.hero-collage {
  position: relative;
  height: clamp(340px, 42vw, 500px);
}

.hero-collage a {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-tile);
  background: var(--surface-2);
  border: 4px solid var(--surface);
  box-shadow: var(--clay-lg);
  display: block;
  transition: transform 500ms var(--spring), z-index 0s;
}

.hero-collage a:nth-child(1) {
  left: 2%;  top: 6%;
  width: 52%; height: 62%;
  transform: rotate(-5deg);
  z-index: 2;
}
.hero-collage a:nth-child(2) {
  right: 0;  top: 0;
  width: 47%; height: 54%;
  transform: rotate(4deg);
  z-index: 1;
}
.hero-collage a:nth-child(3) {
  right: 6%; bottom: 0;
  width: 45%; height: 48%;
  transform: rotate(-2deg);
  z-index: 3;
}

.hero-collage a:hover { transform: rotate(0deg) scale(1.03); z-index: 5; }

.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--spring);
}
.hero-collage a:hover img { transform: scale(1.05); }

.hero-collage figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 0.9rem 0.6rem;
  background: linear-gradient(to top, rgba(36, 29, 51, .82), transparent);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--transition);
}
.hero-collage a:hover figcaption,
.hero-collage a:focus-visible figcaption { opacity: 1; }

/* Decorative dots around the collage. */
.hero-collage::before,
.hero-collage::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hero-collage::before {
  width: 54px; height: 54px;
  left: -6px; bottom: 14%;
  background: var(--butter);
}
.hero-collage::after {
  width: 30px; height: 30px;
  left: 40%; top: -8px;
  background: var(--mint);
}

/* Empty state before first sync */
.hero-empty {
  border: 2px dashed var(--line);
  border-radius: var(--radius-tile);
  background: var(--surface);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  justify-content: center;
  height: 100%;
  min-height: 320px;
}
.hero-empty svg { width: 34px; height: 34px; color: var(--accent); }
.hero-empty p { color: var(--muted); font-size: var(--step-0); }

/* ==========================================================================
   Section headers
   ========================================================================== */

.section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: var(--step-4);
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  font-size: var(--step-0);
  margin-top: 0.4rem;
}

.section-head .link-quiet {
  flex-shrink: 0;
  font-size: var(--step-0);
  font-weight: 800;
  color: var(--accent);
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 2px;
  transition: border-color var(--transition), transform var(--transition);
}
.section-head .link-quiet:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-1px);
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ==========================================================================
   Album rail - horizontal scroll-snap row
   ========================================================================== */

.rail {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 2px var(--s-5);
  scrollbar-width: thin;
}
.rail.is-draggable { cursor: grab; }
.rail.is-grabbing {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}
.rail.is-grabbing img { pointer-events: none; }

.rail-card {
  scroll-snap-align: start;
  flex: 0 0 264px;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.rail-card .album-frame {
  aspect-ratio: 4 / 3;
  border: 4px solid var(--surface);
  box-shadow: var(--clay);
  transition: transform 400ms var(--spring), box-shadow 400ms var(--spring);
}
.rail-card:nth-child(3n+2) .album-frame { background: var(--lilac); }
.rail-card:nth-child(3n+3) .album-frame { background: var(--mint); }
.rail-card:nth-child(3n+1) .album-frame { background: var(--peach); }

.rail-card:hover .album-frame {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--clay-lg);
}

/* ==========================================================================
   Filter rail
   ========================================================================== */

.filters {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-tile);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--clay);
  margin-bottom: var(--s-6);
}

.chips {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.chip {
  scroll-snap-align: start;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover { color: var(--text); transform: translateY(-1px); }
.chip[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 70%, transparent);
}

.field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--faint);
}

select {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.45rem 2.2rem 0.45rem 1rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C8FAF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 14px;
  transition: border-color var(--transition);
}
select:hover { border-color: var(--line); }

.filters-count {
  margin-left: auto;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--faint);
  flex-shrink: 0;
}

/* ==========================================================================
   Album grid - clay frames, featured tile
   ========================================================================== */

.album-grid {
  columns: 4;
  column-gap: var(--s-5);
}

.album {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.album-grid .album {
  break-inside: avoid;
  margin-bottom: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-tile);
  padding: var(--s-3);
  box-shadow: var(--shadow-1);
  transition: transform 400ms var(--spring), box-shadow 400ms var(--spring);
}
.album-grid .album:hover,
.album-grid .album:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--clay-lg);
}
.album-grid .album:hover .album-frame,
.album-grid .album:focus-within .album-frame { transform: none; }

.album-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-tile);
  background: var(--surface-2);
  border: 4px solid var(--surface);
  box-shadow: var(--clay);
  display: block;
  transition: transform 400ms var(--spring), box-shadow 400ms var(--spring);
}

.album:hover .album-frame,
.album:focus-within .album-frame {
  transform: translateY(-5px) rotate(-.6deg);
  box-shadow: var(--clay-lg);
}

.album-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--spring);
}

.album:hover .album-frame img,
.album:focus-within .album-frame img { transform: scale(1.05); }

/* Rotating pastel frames - the grid gets the same playful ring as the rail */
.album-grid .album:nth-child(6n+1) .album-frame { background: var(--peach); }
.album-grid .album:nth-child(6n+2) .album-frame { background: var(--mint); }
.album-grid .album:nth-child(6n+3) .album-frame { background: var(--sky); }
.album-grid .album:nth-child(6n+4) .album-frame { background: var(--lilac); }
.album-grid .album:nth-child(6n+5) .album-frame { background: var(--blush); }
.album-grid .album:nth-child(6n+6) .album-frame { background: var(--butter); }

/* Varied frame ratios give the columns a staggered masonry rhythm */
.album-grid .album:nth-child(4n+1) .album-frame { aspect-ratio: 4 / 3; }
.album-grid .album:nth-child(4n+2) .album-frame { aspect-ratio: 5 / 6; }
.album-grid .album:nth-child(4n+3) .album-frame { aspect-ratio: 16 / 11; }
.album-grid .album:nth-child(4n+4) .album-frame { aspect-ratio: 1 / 1; }

.album-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: var(--step--2);
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-1);
  transform: rotate(2deg);
  transition: transform 300ms var(--spring);
}
.album:hover .album-badge { transform: rotate(-2deg) scale(1.06); }
.album-grid .album:nth-child(6n+1) .album-badge { background: var(--lilac); }
.album-grid .album:nth-child(6n+2) .album-badge { background: var(--blush); }
.album-grid .album:nth-child(6n+3) .album-badge { background: var(--butter); }
.album-grid .album:nth-child(6n+4) .album-badge { background: var(--peach); }
.album-grid .album:nth-child(6n+5) .album-badge { background: var(--mint); }
.album-grid .album:nth-child(6n+6) .album-badge { background: var(--sky); }


.album-meta { display: flex; flex-direction: column; gap: 0.2rem; }

.album-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: color var(--transition);
}
.album:hover .album-name { color: var(--accent); }

/* Rail cards are a fixed width - clamp names to two lines so one long
   album can't stretch its card taller than its siblings. */
.rail-card .album-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-sub {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.album-sub .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
  flex-shrink: 0;
}

.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.source-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--src, var(--accent));
  flex-shrink: 0;
}

/* ==========================================================================
   Masonry - CSS columns, zero JS layout
   ========================================================================== */

.masonry {
  columns: 3;
  column-gap: var(--s-4);
}

.masonry .photo {
  break-inside: avoid;
  margin-bottom: var(--s-4);
  position: relative;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-tile);
  background: var(--surface-2);
  border: 4px solid var(--surface);
  box-shadow: var(--clay);
  display: block;
  width: 100%;
  transition: transform 400ms var(--spring), box-shadow 400ms var(--spring);
}
.photo-frame:hover,
.photo-frame:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--clay-lg);
}

.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 500ms var(--spring);
}

/* Homepage wall - one uniform ratio instead of each photo's natural shape */
[data-wall] .photo-frame { aspect-ratio: 4 / 3; }
[data-wall] .photo-frame img { height: 100%; object-fit: cover; }

.photo-frame:hover img,
.photo-frame:focus-visible img { transform: scale(1.04); }

.photo-frame figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 0.9rem 0.65rem;
  background: linear-gradient(to top, rgba(36, 29, 51, .82), transparent);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--transition);
}
.photo-frame:hover figcaption,
.photo-frame:focus-visible figcaption { opacity: 1; }

/* ==========================================================================
   Load more
   ========================================================================== */

.load-more {
  display: flex;
  justify-content: center;
  padding-top: var(--s-6);
}

/* ==========================================================================
   Album detail header
   ========================================================================== */

.album-hero {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: var(--s-6);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  font-weight: 800;
  color: var(--faint);
  margin-bottom: var(--s-5);
  padding: 0.35rem 0.9rem 0.35rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-1);
  transition: color var(--transition), transform var(--transition);
}
.back-link:hover { color: var(--accent); transform: translateX(-3px); }
.back-link svg { width: 14px; height: 14px; }

.album-hero h1 {
  font-size: var(--step-5);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: var(--s-4);
  max-width: 22ch;
}

.album-hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--muted);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.album-hero-meta strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
}

.album-description {
  margin-top: var(--s-4);
  color: var(--muted);
  font-size: var(--step-1);
}

/* ==========================================================================
   Search page
   ========================================================================== */

.search-hero {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: var(--s-6);
}

.search-hero h1 {
  font-size: var(--step-5);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-5);
}

.search-box {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--surface);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 0.7rem 0.85rem 0.7rem 1.2rem;
  max-width: 42rem;
  box-shadow: var(--clay);
  transition: border-color var(--transition), transform var(--transition);
}
.search-box:focus-within {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.search-box svg {
  width: 17px;
  height: 17px;
  color: var(--faint);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--text);
  min-width: 0;
}
.search-box input::placeholder { color: var(--faint); }

.empty-state {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: left;
  max-width: 42rem;
}
.empty-state svg { width: 36px; height: 36px; color: var(--accent); margin-bottom: var(--s-4); }
.empty-state h2 { font-size: var(--step-3); margin-bottom: var(--s-3); }
.empty-state p { color: var(--muted); margin-bottom: var(--s-5); }

/* ==========================================================================
   Lightbox - the one choreographed moment
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: color-mix(in srgb, #241D33 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 220ms ease;
}

.lightbox[data-open='true'] { opacity: 1; }

.lightbox[hidden] { display: none; }

.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox-figure {
  max-width: min(100%, 100vw);
  max-height: min(82vh, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}

.lightbox-figure img {
  max-width: 100%;
  max-height: min(78vh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-tile);
  border: 4px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
}

.lightbox-caption {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: var(--step--1);
  color: rgba(243, 237, 249, .7);
  max-width: 60rem;
}

.lightbox-caption strong {
  color: #F3EDF9;
  font-weight: 700;
  font-size: var(--step-0);
}

.lightbox-caption .link-quiet { color: var(--accent-bright); border-bottom-color: color-mix(in srgb, var(--accent-bright) 40%, transparent); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(243, 237, 249, .1);
  border: 1px solid rgba(243, 237, 249, .2);
  border-radius: var(--radius-pill);
  color: #F3EDF9;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.lightbox-nav:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-50%) scale(1.08); }
.lightbox-nav svg { width: 19px; height: 19px; }
.lightbox-nav[data-dir='prev'] { left: clamp(0.75rem, 3vw, 2rem); }
.lightbox-nav[data-dir='next'] { right: clamp(0.75rem, 3vw, 2rem); }
.lightbox-nav[disabled] { opacity: 0.3; cursor: not-allowed; }

.lightbox-top {
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  display: flex;
  gap: var(--s-2);
}

.lightbox .icon-btn {
  background: rgba(243, 237, 249, .1);
  border-color: rgba(243, 237, 249, .2);
  color: #F3EDF9;
  backdrop-filter: blur(6px);
}
.lightbox .icon-btn:hover { background: var(--accent); color: var(--accent-ink); }

.lightbox-counter {
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--step--1);
  font-weight: 700;
  color: rgba(243, 237, 249, .6);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: var(--s-7) 0 var(--s-6);
}

.footer-card {
  background: var(--lilac);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--clay);
  position: relative;
  overflow: hidden;
}
.footer-card::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  right: -60px; top: -90px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blush) 75%, transparent);
  pointer-events: none;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
  position: relative;
}

.footer p {
  font-size: var(--step--1);
  font-weight: 500;
  color: color-mix(in srgb, var(--text) 75%, transparent);
  margin-top: var(--s-3);
  max-width: 40ch;
}

.footer-links {
  display: flex;
  gap: var(--s-2);
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.footer-links a:hover { color: var(--accent); background: var(--surface); transform: translateY(-2px); }

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 75%, transparent);
  margin-top: var(--s-4);
}
.sync-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2FA876;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, #2FA876 25%, transparent);
}

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}

.stat {
  padding: var(--s-5);
  border-radius: var(--radius-tile);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--clay);
}
.stat:nth-child(4n+1) { background: var(--peach); }
.stat:nth-child(4n+2) { background: var(--mint); }
.stat:nth-child(4n+3) { background: var(--sky); }
.stat:nth-child(4n)   { background: var(--butter); }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.stat span {
  font-size: var(--step--1);
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}

.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-tile);
  overflow-x: auto;
  background: var(--surface);
  box-shadow: var(--clay);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
th {
  color: var(--faint);
  font-weight: 800;
  font-size: var(--step--1);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--step--1);
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.ok { color: #1E7A58; border-color: color-mix(in srgb, #2FA876 50%, transparent); background: color-mix(in srgb, #2FA876 12%, transparent); }
.pill.err { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 12%, transparent); }

.mono { font-variant-numeric: tabular-nums; }

.admin-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
}

/* ==========================================================================
   Error page
   ========================================================================== */

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-9) 0;
  max-width: 42rem;
}
.error-page h1 {
  font-size: var(--step-5);
  margin-bottom: var(--s-4);
}
.error-page p { color: var(--muted); margin-bottom: var(--s-6); }
.error-code {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: var(--s-4);
  transform: rotate(-3deg);
  display: inline-block;
}

/* ==========================================================================
   Skeleton - shape-matched loading state
   ========================================================================== */

.skeleton {
  border-radius: var(--radius-tile);
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 8%, transparent), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ==========================================================================
   Reveal - progressive: JS adds .rv, IntersectionObserver adds .in.
   No-JS keeps everything visible.
   ========================================================================== */

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms cubic-bezier(.2, .7, .2, 1),
              transform 600ms cubic-bezier(.2, .7, .2, 1);
}
.rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   Confetti - the one orchestrated moment on CTA tap
   ========================================================================== */

.confetti-bit {
  position: fixed;
  z-index: 80;
  width: 9px;
  height: 13px;
  border-radius: 3px;
  pointer-events: none;
  animation: confetti 900ms cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes confetti {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 1024px) {
  :root { --nav-h: 68px; }
  .brand-text { font-size: 1.32rem; }
  .nav-links a { font-size: 0.9rem; padding: 0.5rem 1rem; }
  .gum { padding: 6px 8px; }
}

@media (max-width: 1024px) {
  .album-grid { columns: 3; }
  .masonry { columns: 3; }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
  .hero h1 { font-size: var(--step-5); }
  .hero-collage { height: 260px; }
  .hero-collage a:nth-child(1) { width: 46%; height: 100%; left: 0; top: 0; }
  .hero-collage a:nth-child(2) { width: 44%; height: 78%; right: 4%; top: 4%; }
  .hero-collage a:nth-child(3) {
    width: 38%; height: 60%; right: 24%; bottom: -6%; left: auto;
    top: auto;
  }
}

@media (max-width: 720px) {
  .nav-inner { gap: var(--s-3); }
  .nav-links a[href='/'] { display: none; }
  .nav-search { display: none; }
  .album-grid { columns: 2; column-gap: var(--s-4); }
  .album-grid .album { margin-bottom: var(--s-4); }
  /* Mobile: seragamkan semua thumbnail (bukan ratio acak seperti desktop).
     Pakai :nth-child(n) supaya specificity-nya menyamai aturan ratio variatif
     di atas (0,4,0) - dan menang karena dideklarasikan lebih akhir. */
  .album-grid .album:nth-child(n) .album-frame { aspect-ratio: 4 / 3; }
  .masonry { columns: 2; column-gap: var(--s-3); }
  .masonry .photo { margin-bottom: var(--s-3); }
  .photo-frame, .album-frame { border-width: 3px; }
  .nav-search input { width: 100px; }
  .hero-stats { gap: var(--s-2); }
  .hero-stat { padding: var(--s-3); }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-figure img { max-height: 70vh; }
  .brand-text small { display: none; }
  .brand-name-desktop { display: none; }
  .brand-name-mobile { display: inline; }
  .filters-count { margin-left: 0; width: 100%; }
  .rail-card { flex: 0 0 216px; }
  .footer-card { border-radius: 22px; }
}

@media (max-width: 420px) {
  .album-grid { columns: 1; }
  .hero-stat strong { font-size: var(--step-2); }
}

/* ==========================================================================
   Reduced motion - the lightbox still opens, nothing else moves
   ========================================================================== */

/* Admin notifications: toast cards replacing native alert() */
.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}
.toast {
  position: relative;
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + 3px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--clay);
  color: var(--text);
  font-family: var(--font-body);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .28s ease, transform .28s var(--spring, ease);
  pointer-events: auto;
  overflow: hidden;
}
.toast.is-shown { opacity: 1; transform: none; }
.toast.is-err { border-left-color: var(--danger); }
.toast-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toast-title { font-size: var(--step-0); font-weight: 700; }
.toast-detail { color: var(--muted); font-size: var(--step--1); }
.toast-list {
  margin: 4px 0 0;
  padding-left: 1.05em;
  color: var(--danger);
  font-size: var(--step--1);
  max-height: 8em;
  overflow-y: auto;
  word-break: break-word;
}
.toast-close {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.toast-close:hover { color: var(--accent); }
.toast::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: toast-bar var(--ttl, 6s) linear forwards paused;
}
.toast.is-shown::after { animation-play-state: running; }
.toast.is-err::after { background: var(--danger); }
@keyframes toast-bar { to { transform: scaleX(0); } }

@media (max-width: 640px) {
  .toast-stack { top: auto; right: 12px; left: 12px; bottom: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .lightbox { transition: none; }
  .rv { opacity: 1; transform: none; }
  .album-frame img,
  .photo-frame img,
  .hero-collage img { transform: none !important; }
}
