/* Snap website. Self-contained: no external fonts or scripts. */

@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Inter-400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/Inter-600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/Inter-800ExtraBold.woff2') format('woff2'); }

:root {
  --bg: #0e1116;
  --surface: #141a22;
  --surface-2: #1a222d;
  --line: #232c38;
  --text: #f4f1ea;
  --muted: #8794a3;
  --accent: #27dcc2;          /* teal used for text and links */
  --btn: #12c2a9;             /* teal used for filled buttons */
  --btn-text: #06211c;
  --btn-hover: #27dcc2;
  --focus: #27dcc2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --post-accent: var(--btn);
  color-scheme: dark;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4ee;
    --surface: #ffffff;
    --surface-2: #efece3;
    --line: #e3dfd3;
    --text: #0e1116;
    --muted: #5b6674;
    --accent: #087a69;
    --btn-hover: #1ad3b8;
    --focus: #087a69;
    --shadow: 0 10px 30px rgba(14, 17, 22, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
a:hover { text-decoration-color: var(--accent); }
img { max-width: 100%; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); padding: 0.08em 0.4em; border-radius: 6px; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: 20px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 8px 14px; background: var(--btn); color: var(--btn-text); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header and footer ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 28px; width: auto; display: block; }
.crumb { color: var(--muted); font-size: 0.92rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { margin: 0 8px; opacity: 0.6; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

.foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 36px 48px; color: var(--muted); font-size: 0.9rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; background: var(--btn); color: var(--btn-text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s, border-color 0.15s; }
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }

/* ---------- gallery ---------- */
#app { padding-block: 26px 12px; min-height: 60vh; }
.head { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; }
.head h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.head p { margin: 4px 0 0; color: var(--muted); }
.head .bio { color: var(--text); opacity: 0.9; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); object-fit: cover; flex: none; }
.avatar.ph { display: grid; place-items: center; background: var(--btn); color: var(--btn-text); font-weight: 800; font-size: 1.5rem; line-height: 1; user-select: none; }
.avatar.ph.small { font-size: 0.95rem; }
.avatar.small { width: 36px; height: 36px; }
.tick { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 6px; border-radius: 50%; background: var(--btn); vertical-align: -2px; flex: none; }
.tick svg { width: 11px; height: 11px; fill: none; stroke: var(--btn-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--btn); border-color: var(--btn); color: var(--btn-text); }
.chip small { color: var(--muted); font-weight: 400; }
.chip.on small { color: inherit; opacity: 0.75; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--surface-2); isolation: isolate; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } .tile:hover img { transform: none; } }
.tile .meta { position: absolute; inset: auto 0 0 0; display: flex; gap: 12px; padding: 22px 10px 8px; font-size: 0.82rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.62)); opacity: 0; transition: opacity 0.15s; }
.tile:hover .meta, .tile:focus-visible .meta { opacity: 1; }
@media (hover: none) { .tile .meta { opacity: 1; } }
.tile .meta span { display: inline-flex; align-items: center; gap: 5px; }
.tile .meta svg { width: 14px; height: 14px; fill: currentColor; }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; }

.skeleton i { display: block; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton i { animation: none; } }

.more { display: block; margin: 26px auto 8px; }
.note { text-align: center; padding: 64px 16px; color: var(--muted); }
.note .btn { margin-top: 16px; }
.note b { display: block; color: var(--text); font-size: 1.15rem; margin-bottom: 6px; }

/* single post */
.post { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--post-accent); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post figure { margin: 0; background: #07090c; display: grid; place-items: center; }
.post figure img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.post .side { display: flex; flex-direction: column; min-width: 0; }
.post .by { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.post .by a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.post .by a:hover { text-decoration: underline; }
.post .by .when { color: var(--muted); font-size: 0.85rem; margin-left: auto; white-space: nowrap; }
.post .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post .caption { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.post .stats { display: flex; gap: 16px; color: var(--muted); font-size: 0.9rem; }
.post .stats span { display: inline-flex; align-items: center; gap: 6px; }
.post .stats svg { width: 16px; height: 16px; fill: currentColor; }
.hashtag { color: var(--accent); text-decoration: none; font-weight: 600; }
.hashtag:hover { text-decoration: underline; }
.comments { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.comments li { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.comments li:last-child { border-bottom: 0; }
.comments b { margin-right: 6px; }
.fine-print { color: var(--muted); font-size: 0.82rem; margin: 0; padding: 0 18px 16px; }
@media (min-width: 880px) {
  .post { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
  .post figure img { max-height: 82vh; }
  .post .side { border-left: 1px solid var(--line); }
}

/* ---------- landing ---------- */
.hero { display: grid; gap: 40px; align-items: center; padding-block: 64px 48px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; padding-block: 84px 64px; } }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.hl { color: var(--accent); white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 20px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 16px 0 0; color: var(--muted); font-size: 0.9rem; }
.hero-art img { width: 100%; height: auto; display: block; }

.band { background: var(--surface); border-block: 1px solid var(--line); padding-block: 64px; }
.section { padding-block: 72px; }
.landing h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; margin-bottom: 32px; }
.landing h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
:where(.landing) p { margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.steps p { color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--btn); color: var(--btn-text); font-weight: 800; margin-bottom: 14px; }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } }
.features article { padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.features p { color: var(--muted); font-size: 0.95rem; }
.features b { color: var(--text); }

.cmds { display: grid; gap: 8px 48px; }
@media (min-width: 820px) { .cmds { grid-template-columns: 1fr 1fr; } }
.cmds dl { margin: 0; display: grid; gap: 16px; align-content: start; }
.cmds dl > div { display: grid; gap: 3px; }
.cmds dt { margin: 0; }
.cmds dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 18px; }
.faq a { color: var(--accent); }

.final { text-align: center; padding-block: 40px 56px; }
.final h2 { margin-bottom: 24px; }

/* ---------- legal pages ---------- */
.prose { max-width: 740px; padding-block: 48px 24px; }
.prose h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 6px; }
.prose h2 { font-size: 1.25rem; font-weight: 800; margin: 36px 0 10px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose a { color: var(--accent); }
