/* Gallery -- "Warm Editorial" (locked). Served only on creatrgallery.com.
 *
 * Ground #F2F2F0, cards #FAFAF8, ink #161616, accent seal red #AE1617.
 * Chrome is thin BLACK hairlines only -- no gold, bronze or colored borders.
 * Headlines/wordmark in Cormorant Garamond; UI in Manrope. Pills and cards
 * rounded; imagery is clean rounded photos, never framed. Footer is a dark
 * bar with white text. The seal (wax seal PNG) is never redrawn or recolored.
 */
:root {
  color-scheme: light;
  --ground: #F2F2F0;
  --card: #FAFAF8;
  --ink: #161616;
  --ink-2: #44443F;
  --ink-3: #6A6A64;
  --line: rgba(22, 22, 22, .14);     /* the black hairline */
  --line-strong: rgba(22, 22, 22, .32);
  --accent: #AE1617;                 /* seal red */
  --accent-press: #8F1213;
  --on-accent: #FFFFFF;
  --star: #161616;
  --ok: #2C6E3F;
  --err: #AE1617;
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ui: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --r-card: 20px; --r-img: 14px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(22,22,22,.04), 0 8px 24px rgba(22,22,22,.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--ui); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ── */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.55rem; }
.lede { font-size: 1.05rem; color: var(--ink-2); max-width: 62ch; margin: var(--s3) 0 0; }
.meta { font-size: .82rem; color: var(--ink-3); }
.dot-sep > * + *::before { content: "•"; margin: 0 .45em; color: var(--ink-3); }

/* Section marker: the small red seal before a section title. */
.marker { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s5); }
.marker::before { content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: url("/creator/brand/gallery/apple-touch-icon-180.png") center / cover; }

/* ── Seals (the badge IS the seal; never a pill) ── */
/* Inline badges use the transparent cut-outs (mechanical background
   removals of the real seal assets). The app icon and nav logo keep the
   tiled version. */
.seal { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-left: .3em;
  background: url("/creator/brand/gallery/gallery-seal-transparent-180.png") center / contain no-repeat; flex: none; }
.seal.grey { background-image: url("/creator/brand/gallery/gallery-seal-grey-transparent-180.png"); }

/* ── Layout ── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
main { padding-block: var(--s7) var(--s8); }
.stack > * + * { margin-top: var(--s5); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s5); }
section + section { margin-top: var(--s8); }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: var(--s6); height: 84px; }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 12px; }
.brand span { font-family: var(--display); font-size: 2.6rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.nav-links { display: flex; gap: var(--s6); margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: var(--s5); margin-left: var(--s6); }
.nav-cta a.signin { text-decoration: none; font-weight: 500; }

/* ── Buttons & pills ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5);
  border-radius: var(--r-pill); border: 1px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--card); }
.btn.red { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.red:hover { background: var(--accent-press); border-color: var(--accent-press); }
.btn.sm { min-height: 36px; padding: 0 var(--s4); font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s5); border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--card); text-decoration: none; font-weight: 500; cursor: pointer; }
.pill[aria-pressed="true"], .pill.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip { display: inline-flex; align-items: center; gap: .35em; padding: .3em .75em; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--card); font-size: .8rem; color: var(--ink-2); }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5); box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.photo { border-radius: var(--r-img); object-fit: cover; background: #E4E4E0; width: 100%; }
.avatar { border-radius: 50%; object-fit: cover; background: #E4E4E0; flex: none; }
.initials { display: grid; place-items: center; border-radius: 50%; background: #E4E4E0; color: var(--ink-2); font-weight: 600; flex: none; }
.stars { letter-spacing: .08em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat { text-align: center; padding: var(--s4); border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.stat b { display: block; font-family: var(--ui); font-size: 1.55rem; font-weight: 600; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; }
/* Cormorant's default old-style figures read oddly in data; numbers are always lining sans. */
.num { font-family: var(--ui); font-variant-numeric: lining-nums tabular-nums; }
.stat span { font-size: .85rem; color: var(--ink-2); }

/* Empty / loading states */
.empty { text-align: center; padding: var(--s7) var(--s5); color: var(--ink-2); }
.empty h3 { margin-bottom: var(--s2); }
.skeleton { background: linear-gradient(90deg, #E9E9E5, #F1F1EE, #E9E9E5); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--r-img); }
@keyframes sk { to { background-position: -200% 0; } }

/* Forms */
.field { display: grid; gap: var(--s2); }
.field label, .label { font-size: .85rem; font-weight: 600; }
input[type=text], input[type=email], input[type=search], input[type=number], input[type=password], input[type=date], input[type=tel], select, textarea {
  width: 100%; min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--card); }
textarea { border-radius: 16px; padding: var(--s3) var(--s4); min-height: 110px; }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }

/* ── Footer ── */
.foot { background: var(--ink); color: #FFFFFF; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4); padding-block: var(--s5); font-size: .85rem; }
.foot a { color: #FFFFFF; text-decoration: none; opacity: .9; }
.foot a:hover { opacity: 1; text-decoration: underline; }
.foot .links > * + *::before { content: "•"; margin: 0 .6em; opacity: .6; }
.foot .seal-line { display: flex; align-items: center; gap: var(--s2); }
.foot .seal-line .seal { margin: 0; }

/* ── Mobile: header + floating taskbar ── */
.m-head { display: none; }
.taskbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: 104px; }
  .nav { display: none; }
  .m-head { display: block; position: sticky; top: 0; z-index: 20; padding: var(--s3) var(--gutter) var(--s2); background: color-mix(in srgb, var(--ground) 94%, transparent); backdrop-filter: blur(10px); }
  .m-head-in { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
  .m-head .brand img { width: 40px; height: 40px; border-radius: 10px; }
  .m-head .brand span { font-size: 2rem; }
  .m-head .icons { margin-left: auto; display: flex; gap: var(--s3); }
  .m-head .icons a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
  .m-head .icons a.on { color: var(--accent); }
  .taskbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30;
    justify-content: space-around; padding: 8px 6px; background: #FFFFFF; border-radius: 24px; box-shadow: 0 8px 30px rgba(22,22,22,.16), 0 1px 3px rgba(22,22,22,.08); }
  .taskbar a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 6px 0; text-decoration: none; font-size: .72rem; color: var(--ink-2); }
  .taskbar a svg { width: 24px; height: 24px; }
  .taskbar a[aria-current="page"] { color: var(--accent); font-weight: 600; }
  main { padding-block: var(--s5) var(--s7); }
  section + section { margin-top: var(--s7); }
  .foot-in { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
