All files / src/app globals.css

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
@import 'tailwindcss';
 
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
 
/*
 * `inline` because every token below is var()-backed: the utility gets the
 * var() reference substituted directly, instead of Tailwind emitting a
 * self-referential `--color-x: var(--color-x)` into @layer theme that only
 * resolves because the unlayered :root below outranks it.
 */
@theme inline {
  --color-ground: var(--color-ground);
 
  --color-surface: var(--color-surface);
  --color-surface-raised: var(--color-surface-raised);
 
  --color-hairline: var(--color-hairline);
  --color-track: var(--color-track);
 
  --color-content-soft: var(--color-content-soft);
  --color-content-mid: var(--color-content-mid);
  --color-content-deep: var(--color-content-deep);
  --color-content-deeper: var(--color-content-deeper);
 
  --color-spark: var(--color-spark);
  --color-spark-ink: var(--color-spark-ink);
 
  --color-decor: var(--color-decor);
 
  --color-info: var(--color-info);
  --color-info-soft: var(--color-info-soft);
  --color-info-deep: var(--color-info-deep);
 
  --color-tier-love: var(--color-tier-love);
  --color-tier-like: var(--color-tier-like);
  --color-tier-maybe: var(--color-tier-maybe);
  --color-tier-onward: var(--color-tier-onward);
  --color-tier-love-ink: var(--color-tier-love-ink);
  --color-tier-like-ink: var(--color-tier-like-ink);
  --color-tier-maybe-ink: var(--color-tier-maybe-ink);
  --color-tier-onward-ink: var(--color-tier-onward-ink);
 
  --color-ink: var(--color-ink);
  --color-ink-soft: var(--color-ink-soft);
 
  --color-primary: var(--color-primary);
  --color-primary-ink: var(--color-primary-ink);
  --color-primary-hover: var(--color-primary-hover);
  --color-primary-deep: var(--color-primary-hover);
  --color-primary-soft: var(--color-content-soft);
 
  --color-success: var(--color-success);
  --color-success-soft: var(--color-success-soft);
  --color-success-deep: var(--color-success-deep);
 
  --color-warning: var(--color-warning);
  --color-warning-soft: var(--color-warning-soft);
  --color-warning-deep: var(--color-warning-deep);
 
  --color-error: var(--color-error);
  --color-error-soft: var(--color-error-soft);
  --color-error-deep: var(--color-error-deep);
 
  --font-display: var(--font-playfair), Georgia, serif;
  --font-sans: var(--font-inter), ui-sans-serif, system-ui, sans-serif;
 
  --shadow-lift: var(--shadow-lift);
  --shadow-raised: var(--shadow-raised);
  --shadow-float: var(--shadow-float);
  --shadow-card: var(--shadow-card);
  --shadow-card-hover: var(--shadow-card-hover);
 
  --radius-control: 10px;
  --radius-card: 20px;
 
  --ease-gentle: var(--ease-gentle);
  --color-card: var(--color-card);
  --color-glass: var(--color-glass);
  --color-glass-strong: var(--color-glass-strong);
  --color-rim: var(--color-rim);
  --color-chip: var(--color-chip);
  --color-chip-ink: var(--color-chip-ink);
  --radius-pill: 999px;
}
 
/*
 * Luminous design system tokens (see DESIGN.md).
 * "Adored — The Luminous Gallery." One family, anchored on a single deep teal
 * (#004A67 / #005667). Light is Sea Glass (greener #005667 tints rising to white
 * cards); dark is Sea Glass at Night — the same spine inverted toward black, the
 * raised plane pivoted teal→blue and lifted by a luminous rim + glow (elevation
 * by light, never by a muddy mid-tone). Role-based token names; the expressive
 * palette (teal anchor, cool blues, lone marigold spark, soft violet) carries
 * identity; safety colours are reserved (see "Brand never speaks Danger").
 * Fonts come from next/font in layout.tsx.
 */
:root {
  color-scheme: light;
 
  /* Surfaces — Sea Glass: cool ground recedes, cards rise to white */
  --color-ground: #dbe9ec;
  --color-surface: #e5eef0;
  --color-surface-raised: #ffffff;
  --color-hairline: #c7dade;
  /* track = the edge of a progress line's empty track: >= 3:1 on ground (SC 1.4.11) */
  --color-track: #4f7da0;
  --color-ink: #16242b;
  --color-ink-soft: #434f57;
 
  --color-primary: #004a67;
  --color-primary-ink: #ffffff;
  --color-primary-hover: #003e5b;
 
  /* Cool content — teal tint ramp + indigo analogous. Named by ROLE (soft→deeper),
   * never by hue, so a palette retune can't make the name lie:
   * content-soft = softest fill (curator badge); content-mid = the benign "Not yet"
   * tone (paused chip); content-deep = deep cool; content-deeper = deepest cool /
   * indigo (owner badge). */
  --color-content-soft: #d7dee4;
  --color-content-mid: #b0beca;
  --color-content-deep: #4f7da0;
  --color-content-deeper: #4a5878;
 
  /* Accents — spend rarely. Spark = marigold (the lone most-loved affirmation);
   * decor = soft violet, now used freely (fills, backgrounds, framing). */
  --color-spark: #efcb77;
  --color-spark-ink: #1b1605;
  --color-spark-soft: #f6e1b1;
  --color-decor: #b5aacc;
  --color-decor-soft: #cec6dd;
 
  --color-error: #9b4036;
  --color-error-soft: #f3deda;
  --color-error-deep: #7e2c24;
  --color-warning: #9c6b22;
  --color-warning-soft: #f4e6cc;
  --color-warning-deep: #6e4b16;
  --color-success: #3f5a34;
  --color-success-soft: #dce7d9;
  --color-success-deep: #2c3f26;
  --color-info: #2e4769;
  --color-info-soft: #d9e4ee;
  --color-info-deep: #1f3350;
 
  /* Tiers — a single cool value-ramp: deeper/brighter teal is more loved. */
  --color-tier-love: #004a67;
  --color-tier-like: #2f6e8c;
  --color-tier-maybe: #6fa0b8;
  --color-tier-onward: #b8d4dc;
  --color-tier-love-ink: #ffffff;
  --color-tier-like-ink: #ffffff;
  --color-tier-maybe-ink: #08222b;
  --color-tier-onward-ink: #16242b;
 
  /* Type — resolve to next/font variables, with graceful fallbacks */
  --font-display: var(--font-playfair), Georgia, "Times New Roman", serif;
  --font-body: var(--font-inter), ui-sans-serif, system-ui, -apple-system, sans-serif;
 
  /* Elevation — light: soft, cool shadow; surfaces lift off the sea-glass ground */
  --shadow-lift: 0 1px 2px oklch(0.4 0.05 230 / 0.06),
    0 8px 20px oklch(0.4 0.05 230 / 0.10);
  --shadow-raised: 0 14px 32px oklch(0.4 0.05 230 / 0.16),
    0 20px 48px oklch(0.4 0.05 230 / 0.12);
  --shadow-float: 0 16px 40px oklch(0.4 0.05 230 / 0.18);
  --highlight-top: none;
  --shadow-card: var(--shadow-lift);
  --shadow-card-hover: var(--shadow-raised);
 
  /* Motion — gentle ease-out, 150–280ms */
  --ease-gentle: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-state: 180ms;
  --duration-reveal: 280ms;
 
  /* Frosted shelf (spec 2026-10-01 §5). AA comes from each surface's own opacity,
   * never from what sits behind it. Translucent tokens are rgb()/alpha; each has hex
   * composites (over both ground stops, and black/white for glass-strong) that
   * contrast.test.ts asserts text against and proves against the alpha. */
  /* Option A of the 2026-09-30 brainstorm: aqua at 0.65 and mint at 0.55 over the ground,
   * pre-composited at the blob centres (the darkest points the wash reaches): aqua over the
   * start stop, mint over the end stop it sits on. Blob radii are viewport units so a long page
   * keeps viewport-sized blobs instead of one stretched streak. */
  --color-ground-aqua: #a2d4d9;
  --color-ground-mint: #c0decc;
  --color-ground-mid: #e7f0ee;
  --color-ground-end: #d9e7e2;
  --ground-wash: radial-gradient(60vw 50vh at 10% 0%, var(--color-ground-aqua), transparent 70%),
    radial-gradient(50vw 50vh at 95% 100%, var(--color-ground-mint), transparent 70%),
    linear-gradient(160deg, var(--color-ground), var(--color-ground-mid) 60%, var(--color-ground-end));
  --color-card: #fbfcfc; /* surface-raised @ 0.9 over ground, pre-composited */
  --color-rim: #ffffff;
  --color-chip: #e3eef1;
  --color-chip-ink: #16242b;
  --color-glass: rgb(255 255 255 / 0.52);
  --color-glass-strong: rgb(255 255 255 / 0.88);
  --color-glass-on-aqua: #d2eaed;
  --color-glass-on-mint: #e1efe7;
  --color-glass-strong-on-aqua: #f4fafa;
  --color-glass-strong-on-mint: #f7fbf9;
  --color-glass-strong-on-black: #e0e0e0;
  --color-glass-strong-on-white: #ffffff;
}
 
[data-theme="dark"] {
  color-scheme: dark;
 
  /* Surfaces — Sea Glass at Night: #005667 spine inverted toward black.
   * Raised pivots teal→blue; hairline doubles as the luminous rim. */
  --color-ground: #001b21;
  --color-surface: #103f4a;
  --color-surface-raised: #123a4e;
  --color-hairline: #3f7fa0;
  --color-track: #3f7fa0;
  --color-ink: #ecf2f4;
  --color-ink-soft: #b0c6cb;
 
  --color-primary: #4fb6c7;
  --color-primary-ink: #042026;
  --color-primary-hover: #6bc8d6;
 
  /* Cool content — ascending teal steps on the night spine; indigo stays distinct */
  --color-content-soft: #173f4d;
  --color-content-mid: #2d6377;
  --color-content-deep: #234d66;
  --color-content-deeper: #4a5c84;
 
  --color-spark: #efcb77;
  --color-spark-ink: #1b1605;
  --color-spark-soft: #b89f55;
  --color-decor: #6d5c9b;
  --color-decor-soft: #8a79b3;
 
  /* Semantic — softs lifted clear of the dark surface so chips stay visible */
  --color-error: #c98a82;
  --color-error-soft: #4a241e;
  --color-error-deep: #f3deda;
  --color-warning: #d4a24e;
  --color-warning-soft: #463411;
  --color-warning-deep: #f4e6cc;
  --color-success: #6e9e72;
  --color-success-soft: #25492f;
  --color-success-deep: #dce7d9;
  --color-info: #7e97b8;
  --color-info-soft: #21425a;
  --color-info-deep: #d9e4ee;
 
  --color-tier-love: #bfe6ee;
  --color-tier-like: #79afe0;
  --color-tier-maybe: #5e83a0;
  --color-tier-onward: #334654;
  --color-tier-love-ink: #08222b;
  --color-tier-like-ink: #08222b;
  --color-tier-maybe-ink: #0a1622;
  --color-tier-onward-ink: #d6e2e6;
 
  /* Elevation — dark: inset highlight + hairline rim + cool glow, not warm shadow */
  --shadow-lift: inset 0 1px 0 oklch(1 0 0 / 0.06),
    0 0 0 1px var(--color-hairline),
    0 8px 22px oklch(0 0 0 / 0.5);
  --shadow-raised: inset 0 1px 0 oklch(1 0 0 / 0.08),
    0 0 0 1px var(--color-hairline),
    0 0 22px oklch(0.62 0.08 235 / 0.35),
    0 14px 30px oklch(0 0 0 / 0.55);
  --shadow-float: 0 16px 44px oklch(0 0 0 / 0.6);
  --highlight-top: none;
  --shadow-card: var(--shadow-lift);
  --shadow-card-hover: var(--shadow-raised);
 
  --color-ground-aqua: #022a33;
  --color-ground-mint: #03261f;
  --color-ground-mid: #001b21;
  --color-ground-end: #001b21;
  --color-card: #10374a;
  --color-rim: #3f7fa0;
  --color-chip: #173f4d;
  --color-chip-ink: #ecf2f4;
  /* 0.92, not 0.85: over a white photo 0.85 leaves ink-soft under AA. */
  --color-glass: rgb(16 63 74 / 0.5);
  --color-glass-strong: rgb(16 63 74 / 0.92);
  --color-glass-on-aqua: #09353f;
  --color-glass-on-mint: #0a3335;
  --color-glass-strong-on-aqua: #0f3d48;
  --color-glass-strong-on-mint: #0f3d47;
  --color-glass-strong-on-black: #0f3a44;
  --color-glass-strong-on-white: #234e58;
}
 
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root, [data-theme="dark"] {
    --color-glass: var(--color-surface);
    --color-glass-strong: var(--color-surface-raised);
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root, [data-theme="dark"] {
    --color-glass: var(--color-surface);
    --color-glass-strong: var(--color-surface-raised);
  }
}
 
/*
 * App base styles. Under tailwind v4, utilities live in @layer utilities and
 * ANY unlayered rule beats ANY layered one — so these element rules must sit
 * in @layer base (below utilities) to preserve the v3 cascade, where .px-4
 * beat the universal reset by specificity. Unlayered author CLASS rules (like
 * .prose-measure below) deliberately stay outside: they beat utilities in v3
 * by source order and keep that power unlayered. (purses-9oxh.6 root cause.)
 */
@layer base {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
 
  /* The ground wash is painted on <body> and propagates to the canvas, which is sized by
   * <html>: html must grow with its content (min-height, not height), or the gradient is
   * sized to one viewport and tiles with a seam on long pages. */
  html {
    min-height: 100%;
  }
 
  body {
    min-height: 100dvh;
  }
 
  body {
    font-family: var(--font-body);
    font-size: 1.0625rem; /* 17px — unhurried, 40+-friendly reading */
    background: var(--ground-wash);
    color: var(--color-ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    font-optical-sizing: auto;
  }
 
  /*
   * Type scale (see DESIGN.md). Playfair Display for display moments; Inter for
   * everything functional. Headings are neutral ink — never teal.
   */
  h1,
  h2,
  h3,
  h4 {
    font-family: var(--font-display);
    color: var(--color-ink);
    text-wrap: balance;
  }
 
  h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }
 
  h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.005em;
  }
 
  h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
  }
 
  /* Functional title role uses the body sans, not the serif */
  h4 {
    font-family: var(--font-body);
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.35;
  }
 
  p {
    text-wrap: pretty;
  }
 
  a {
    color: var(--color-primary);
    text-underline-offset: 2px;
    transition: color var(--duration-state) var(--ease-gentle);
  }
 
  a:hover {
    color: var(--color-primary-hover);
  }
 
  button,
  input,
  textarea,
  select {
    font-family: inherit;
  }
 
  ::placeholder {
    color: var(--color-ink-soft);
    opacity: 1;
  }
 
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  textarea:-webkit-autofill,
  select:-webkit-autofill {
    -webkit-text-fill-color: var(--color-ink);
    -webkit-box-shadow: 0 0 0 100px var(--color-surface) inset;
    box-shadow: 0 0 0 100px var(--color-surface) inset;
    caret-color: var(--color-ink);
    transition: background-color 100000s ease-in-out 0s;
  }
 
  ::selection {
    background: var(--color-primary);
    color: var(--color-primary-ink);
  }
 
  :focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
  }
}
 
.prose-measure {
  max-width: 68ch;
}
 
 
/* Reduced motion is not optional (PRODUCT.md a11y) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
 
/* ActionBar is fixed on phones: keep keyboard-focused / scrolled-to content above it.
   9rem matches AppLayout's reserveActionBar (pb-36). */
@media (width < 48rem) and (min-height: 501px) {
  html:has([data-action-bar]) {
    scroll-padding-bottom: 9rem;
  }
}
 
/* PoolActionBar (the pool's selection bar) is fixed at EVERY width while photos are selected —
   unlike ActionBar it never becomes an inline row — and on phone it carries a count row and a
   2×2 button grid (plus the over-cap line when shown). Reserve that height below the page's end
   and as scroll padding so the last tile, the footer and a focused tile clear it. A short
   viewport (browser zoom) keeps the bar static, so nothing is reserved. */
@media (min-height: 501px) {
  html:has([data-selection-bar]) {
    scroll-padding-bottom: 14rem;
  }
  [data-app-shell]:has([data-selection-bar]) {
    padding-bottom: 14rem;
  }
}
@media (width >= 40rem) and (min-height: 501px) {
  html:has([data-selection-bar]) {
    scroll-padding-bottom: 9rem;
  }
  [data-app-shell]:has([data-selection-bar]) {
    padding-bottom: 9rem;
  }
}