/* shoutsecrets.com — secrets under the streetlamp.
   A violet night wall lit by one warm sodium lamp. Text confessions are
   warm bone postcards pinned to the dark; photos and video sit in dark
   frames. Two materials, one light source. */

:root {
  --night: #131019;
  --dusk: #1c1824;
  --veil: #2b2536;
  --veil-soft: #241f30;
  --bone: #f4efe4;
  --bone-dim: #e7e0d0;
  --ink: #262033;
  --text: #efeaf4;
  --dim: #a49bb4;
  --faint: #6f6683;
  --lamp: #ffb454;
  --lamp-deep: #b96e14;
  --danger: #ff5470;

  --r-card: 14px;
  --r-pill: 999px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 44px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--text);
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--lamp); }
::selection { background: var(--lamp); color: var(--night); }

.mono {
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.25rem);
  background: rgba(19, 16, 25, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--veil);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--bone);
  text-decoration: none;
}
.wordmark em { font-style: italic; color: var(--lamp); }
.wordmark .tld {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.topbar-right { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.who { display: flex; align-items: center; gap: 0.7rem; }
.who .whoami { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.who .whoami:hover { color: var(--lamp); }

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--veil-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
              color 0.16s var(--ease), transform 0.12s var(--ease);
}
.btn:hover { background: var(--veil); }
.btn:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.btn-lamp { background: var(--lamp); color: #241505; font-weight: 700; }
.btn-lamp:hover { background: #ffc677; }

.btn-outline { background: transparent; border-color: var(--veil); color: var(--dim); }
.btn-outline:hover { border-color: var(--lamp); color: var(--lamp); background: rgba(255, 180, 84, 0.06); }

.btn-quiet { background: transparent; color: var(--dim); padding: 0.5rem 0.7rem; }
.btn-quiet:hover { color: var(--text); background: transparent; }

.btn-sm { padding: 0.38rem 0.85rem; font-size: 0.84rem; }
.btn-block { width: 100%; padding: 0.8rem 1rem; font-size: 1rem; }

input[type='text'], input[type='password'], textarea, select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--veil);
  border-radius: 10px;
  background: var(--night);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--lamp);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.14);
}
select option { background: var(--dusk); }

.field { margin-bottom: 1.1rem; }
.field > label, .field-head {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.optional { color: var(--faint); font-weight: 400; }
.counter { display: block; margin-top: 0.35rem; font-size: 0.76rem; color: var(--faint); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 7rem) 1.25rem 0;
  text-align: center;
  overflow: hidden;
}
/* the streetlamp */
.hero::before {
  content: '';
  position: absolute;
  top: -32vh;
  left: 50%;
  width: min(60rem, 120vw);
  height: 64vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 180, 84, 0.16) 0%,
    rgba(255, 180, 84, 0.05) 42%,
    transparent 70%);
  pointer-events: none;
}

.hero-kicker {
  position: relative;
  margin: 0 0 1.25rem;
  color: var(--lamp);
}

.hero-title {
  position: relative;
  margin: 0 auto;
  max-width: 17ch;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.7rem, 7.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--lamp);
}

.hero-sub {
  position: relative;
  margin: 1.4rem auto 0;
  max-width: 44ch;
  font-size: 1.08rem;
  color: var(--dim);
}

.hero-count { position: relative; margin: 1.6rem 0 0; color: var(--faint); }
.hero-count b { color: var(--lamp); font-weight: 400; }

/* ---------- toolbar: filters + search ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 82rem;
  margin: 2.5rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2.25rem);
}

.tabs {
  display: flex;
  gap: 0.2rem;
  padding: 0.22rem;
  border: 1px solid var(--veil);
  border-radius: var(--r-pill);
  background: var(--dusk);
}
.tab {
  padding: 0.42rem 0.95rem;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--dim);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { background: var(--bone); color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }

.searchbar { flex: 1 1 16rem; max-width: 24rem; }
.searchbar input {
  width: 100%;
  padding: 0.62rem 1.1rem;
  border: 1px solid var(--veil);
  border-radius: var(--r-pill);
  background: var(--dusk);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}
.searchbar input:focus {
  outline: none;
  border-color: var(--lamp);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.14);
}

/* ---------- wall ---------- */

main { padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 4vw, 2.25rem) 6rem; }

.wall {
  max-width: 82rem;
  margin: 0 auto;
  column-count: 4;
  column-gap: 1.1rem;
}
@media (max-width: 1200px) { .wall { column-count: 3; } }
@media (max-width: 860px)  { .wall { column-count: 2; } }
@media (max-width: 560px)  { .wall { column-count: 1; } }

/* ---------- cards: shared bones ---------- */

.post {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1.1rem;
  border-radius: var(--r-card);
  break-inside: avoid;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  animation: rise 0.4s var(--ease) both;
}
.post:hover, .post:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); outline: none; }
.post:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* media posts: dark frames */
.post-frame {
  padding: 0.6rem 0.6rem 0;
  border: 1px solid var(--veil);
  border-radius: var(--r-card);
  background: var(--dusk);
}
.post-media { overflow: hidden; border-radius: 9px; background: var(--veil-soft); }
.post-media img, .post-media video { width: 100%; height: auto; }
.post-caption { margin: 0.65rem 0.2rem 0; font-size: 0.94rem; color: var(--text); overflow-wrap: anywhere; }

.post-play {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.18rem 0.5rem;
  border-radius: var(--r-pill);
  background: rgba(19, 16, 25, 0.8);
  color: var(--bone);
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* text posts: the postcards — the signature */
.post-card {
  padding: 1.3rem 1.2rem 0;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: var(--r-card);
  background:
    linear-gradient(160deg, var(--bone) 0%, var(--bone-dim) 100%);
  color: var(--ink);
}
.post-card::before {
  /* the pinhole of lamplight along the top edge */
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: linear-gradient(90deg, transparent, var(--lamp), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.post-card:hover::before { opacity: 0.9; }

.shout {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.shout::before { content: '\201C'; color: var(--lamp-deep); margin-right: 0.05em; }
.shout::after  { content: '\201D'; color: var(--lamp-deep); margin-left: 0.05em; }
.shout.v-loud  { font-size: 1.7rem; }
.shout.v-mid   { font-size: 1.35rem; }
.shout.v-quiet { font-size: 1.12rem; }
.shout.v-mutter { font-size: 1rem; line-height: 1.5; }

/* meta row — shared, adapts to card material */
.post-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding: 0.55rem 0.1rem 0.65rem;
  border-top: 1px solid var(--veil);
  font-size: 0.78rem;
  color: var(--faint);
}
.post-frame .post-foot { margin-top: 0.65rem; }
.post-card .post-foot { border-top-color: rgba(38, 32, 51, 0.14); color: rgba(38, 32, 51, 0.55); }

.post-foot .by { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-card .post-foot .by { color: var(--ink); }
.post-foot .by a { color: inherit; text-decoration: none; }
.post-foot .by a:hover { color: var(--lamp); }
.post-card .post-foot .by a:hover { color: var(--lamp-deep); }
.post-foot .anon { font-weight: 400; font-style: italic; color: inherit; }

.post-foot .when {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.heart {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, transform 0.12s;
}
.heart:hover { color: var(--danger); background: rgba(255, 84, 112, 0.09); }
.heart:active { transform: scale(0.92); }
.heart .h-ic { font-size: 0.9rem; line-height: 1; }
.heart[data-on='1'] { color: var(--danger); }
.heart:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }

.tag-kept {
  padding: 0.08rem 0.5rem;
  border-radius: var(--r-pill);
  background: rgba(255, 180, 84, 0.14);
  color: var(--lamp);
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-card .tag-kept { background: rgba(185, 110, 20, 0.14); color: var(--lamp-deep); }

/* ---------- empty / load more ---------- */

.notice {
  max-width: 28rem;
  margin: 3rem auto;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--veil);
  border-radius: var(--r-card);
  text-align: center;
  color: var(--dim);
}
.notice p { margin: 0 0 0.5rem; }
.notice .big {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--bone);
}
.notice .btn { margin-top: 0.75rem; }

.more-row { text-align: center; margin-top: 2.25rem; }

/* ---------- modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 8, 14, 0.7);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.modal[hidden] { display: none; }

.sheet {
  width: min(33rem, 100%);
  margin: auto;
  border: 1px solid var(--veil);
  border-radius: 18px;
  background: var(--dusk);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.sheet-narrow { width: min(24rem, 100%); }

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem 0.5rem;
}
.sheet-head h2 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.sheet-close {
  border: none;
  background: none;
  color: var(--faint);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.sheet-close:hover { color: var(--bone); }
.sheet-body { padding: 0.6rem 1.35rem 1.35rem; }

/* compose */

.dropzone {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 1.5px dashed var(--veil);
  border-radius: var(--r-card);
  background: var(--night);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--lamp); background: rgba(255, 180, 84, 0.05); }
.dz-plus { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--lamp); }
.dz-text { display: block; font-weight: 500; color: var(--text); }
.dz-hint { display: block; margin-top: 0.3rem; font-size: 0.76rem; color: var(--faint); }
.dz-preview { max-height: 15rem; width: auto; margin: 0 auto; border-radius: 9px; }

.seg {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.6rem;
  padding: 0.22rem;
  border: 1px solid var(--veil);
  border-radius: var(--r-pill);
  background: var(--night);
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-pill);
  text-align: center;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dim);
  transition: background 0.16s, color 0.16s;
}
.seg label:hover { color: var(--text); }
.seg input:checked + label { background: var(--bone); color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--lamp); outline-offset: 2px; }
.seg-note { margin: 0 0 1.1rem 0.25rem; font-size: 0.79rem; color: var(--faint); }

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.4rem 0 1.1rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--night);
  font-size: 0.84rem;
  color: var(--dim);
}
.check input { margin-top: 0.2rem; accent-color: var(--lamp); }

.form-error {
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 9px;
  background: rgba(255, 84, 112, 0.12);
  color: #ff8ba0;
  font-size: 0.88rem;
}
.sheet-alt { margin: 0.9rem 0 0; text-align: center; font-size: 0.88rem; color: var(--dim); }
.sheet-alt button { border: none; background: none; color: var(--lamp); font-weight: 600; cursor: pointer; }

.keybox {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: 10px;
  background: rgba(255, 180, 84, 0.07);
  color: var(--bone);
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  word-break: break-all;
}
.keybox b { color: var(--lamp); font-weight: 700; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(10, 8, 14, 0.82);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.lightbox[hidden] { display: none; }

.lb-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--veil);
  border-radius: var(--r-pill);
  background: var(--dusk);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.lb-close:hover { border-color: var(--lamp); color: var(--lamp); }

.lb-inner {
  width: min(48rem, 100%);
  margin: auto;
  padding: 1.1rem;
  border: 1px solid var(--veil);
  border-radius: 18px;
  background: var(--dusk);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}
.lb-inner.is-text {
  background: linear-gradient(160deg, var(--bone) 0%, var(--bone-dim) 100%);
  border-color: rgba(0, 0, 0, 0.3);
}
.lb-stage { display: grid; place-items: center; }
.lb-stage img, .lb-stage video { max-height: 66vh; width: auto; max-width: 100%; border-radius: 11px; }
.lb-shout {
  margin: 0;
  padding: clamp(2rem, 6vw, 3.5rem) 1rem;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.lb-shout::before { content: '\201C'; color: var(--lamp-deep); }
.lb-shout::after  { content: '\201D'; color: var(--lamp-deep); }

.lb-body { margin: 0.9rem 0.25rem 0; font-size: 1rem; color: var(--text); overflow-wrap: anywhere; }
.lb-inner.is-text .lb-body { color: var(--ink); }

.lb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--veil);
  font-size: 0.85rem;
  color: var(--faint);
}
.lb-inner.is-text .lb-meta { border-top-color: rgba(38, 32, 51, 0.16); color: rgba(38, 32, 51, 0.55); }
.lb-meta .lb-by { font-weight: 600; color: var(--text); }
.lb-inner.is-text .lb-meta .lb-by { color: var(--ink); }
.lb-meta .lb-by a { color: inherit; text-decoration: none; }
.lb-meta .lb-by a:hover { color: var(--lamp); }
.lb-when { font-family: 'Spline Sans Mono', monospace; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

.lb-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-left: auto; }
.lb-actions .btn { border: 1px solid var(--veil); background: transparent; color: var(--dim); }
.lb-inner.is-text .lb-actions .btn { border-color: rgba(38, 32, 51, 0.22); color: rgba(38, 32, 51, 0.65); }
.lb-actions .btn:hover { border-color: var(--lamp); color: var(--lamp); }
.lb-actions .heart { margin-left: 0; border: 1px solid var(--veil); padding: 0.38rem 0.85rem; }
.lb-inner.is-text .lb-actions .heart { border-color: rgba(38, 32, 51, 0.22); }
#lb-delete:hover { border-color: var(--danger); color: var(--danger); }

/* ---------- profile ---------- */

.profile-head {
  position: relative;
  padding: clamp(2.75rem, 8vw, 5rem) 1.25rem 0;
  text-align: center;
  overflow: hidden;
}
.profile-head::before {
  content: '';
  position: absolute;
  top: -30vh;
  left: 50%;
  width: min(50rem, 110vw);
  height: 55vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 180, 84, 0.13) 0%, transparent 70%);
  pointer-events: none;
}
.profile-name {
  position: relative;
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.profile-handle { position: relative; margin: 0.7rem 0 0; color: var(--faint); }
.profile-bio { position: relative; margin: 1rem auto 0; max-width: 44ch; font-size: 1.05rem; color: var(--dim); }
.profile-tools { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

.owner-note {
  max-width: 82rem;
  margin: 0 auto 1.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 180, 84, 0.25);
  border-radius: 10px;
  background: rgba(255, 180, 84, 0.06);
  color: var(--dim);
  font-size: 0.87rem;
}

/* ---------- footer / toast ---------- */

.sitefoot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  padding: 2.25rem 1.5rem 3rem;
  border-top: 1px solid var(--veil);
  color: var(--faint);
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align: center;
}
.sitefoot a { color: var(--faint); }
.sitefoot a:hover { color: var(--lamp); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 90;
  transform: translateX(-50%);
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--veil);
  border-radius: var(--r-pill);
  background: var(--dusk);
  color: var(--bone);
  font-size: 0.9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.toast[hidden] { display: none; }

@media (max-width: 640px) {
  .topbar { gap: 0.5rem; padding: 0.8rem 1rem; }
  .btn { padding: 0.5rem 0.9rem; font-size: 0.88rem; }
  .toolbar { gap: 0.6rem; }
  .searchbar { flex-basis: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- word gate: photos and video need a story ---------- */

.wordgate {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.6rem;
}
.wordgate-bar {
  flex: 1;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--veil);
  overflow: hidden;
}
.wordgate-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--lamp);
  transition: width 0.25s var(--ease);
}
.wordgate-text {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.wordgate[data-done='1'] .wordgate-text { color: var(--lamp); }

/* ---------- hashtags ---------- */

.tagchip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.16rem 0.6rem;
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: var(--r-pill);
  background: rgba(255, 180, 84, 0.08);
  color: var(--lamp);
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tagchip:hover { background: rgba(255, 180, 84, 0.18); border-color: var(--lamp); }
.tagchip:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }

/* a tag someone else put there reads quieter than the author's own */
.tagchip-guest {
  border-color: var(--veil);
  background: transparent;
  color: var(--dim);
}
.tagchip-guest:hover { border-color: var(--dim); background: rgba(255, 255, 255, 0.04); color: var(--text); }

.tagchip-active {
  border-color: var(--lamp);
  background: var(--lamp);
  color: #241505;
  font-weight: 700;
}
.tagchip-active:hover { background: #ffc677; }

.tagchip-label { border: none; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.tagchip-x {
  border: none;
  background: none;
  color: inherit;
  font-size: 0.62rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  padding: 0 0 0 0.1rem;
}
.tagchip-x:hover { opacity: 1; color: var(--danger); }

/* tags on a card */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.7rem 0.2rem 0; }
.post-card .post-tags .tagchip {
  border-color: rgba(185, 110, 20, 0.35);
  background: rgba(185, 110, 20, 0.09);
  color: var(--lamp-deep);
}
.post-card .post-tags .tagchip-guest {
  border-color: rgba(38, 32, 51, 0.2);
  background: transparent;
  color: rgba(38, 32, 51, 0.6);
}

/* tags in the lightbox */
.lb-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }
.lb-tags:empty { display: none; }
.lb-inner.is-text .lb-tags .tagchip {
  border-color: rgba(185, 110, 20, 0.35);
  background: rgba(185, 110, 20, 0.09);
  color: var(--lamp-deep);
}
.lb-inner.is-text .lb-tags .tagchip-guest {
  border-color: rgba(38, 32, 51, 0.2);
  background: transparent;
  color: rgba(38, 32, 51, 0.6);
}

.lb-tagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.lb-tagbar input {
  width: 10rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
}
.lb-inner.is-text .lb-tagbar input {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(38, 32, 51, 0.22);
  color: var(--ink);
}
.lb-inner.is-text .lb-tagbar .btn { border-color: rgba(38, 32, 51, 0.22); color: rgba(38, 32, 51, 0.7); }
.tag-note {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.lb-inner.is-text .tag-note { color: rgba(38, 32, 51, 0.5); }

/* the owner-only "this one is yours" marker */
.tag-anon {
  padding: 0.08rem 0.5rem;
  border: 1px dashed rgba(255, 180, 84, 0.45);
  border-radius: var(--r-pill);
  color: var(--lamp);
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-card .tag-anon { border-color: rgba(185, 110, 20, 0.45); color: var(--lamp-deep); }

/* ---------- media processing states ---------- */

.post-media.is-processing {
  display: grid;
  place-items: center;
  min-height: 9rem;
  background:
    repeating-linear-gradient(-45deg,
      var(--veil-soft) 0 10px,
      var(--veil) 10px 20px);
}
.proc-note {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  animation: pulse 1.6s ease-in-out infinite;
}
.proc-big { padding: 4rem 1rem; font-size: 0.8rem; }
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

.dz-note {
  margin: -0.6rem 0 0.4rem;
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lamp);
}

/* ---------- adult wall ---------- */

.tag-adult {
  padding: 0.08rem 0.5rem;
  border-radius: var(--r-pill);
  background: rgba(255, 84, 112, 0.16);
  color: var(--danger);
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-card .tag-adult { background: rgba(217, 45, 75, 0.12); color: #b02a45; }

#lb-adult:hover { border-color: var(--danger); color: var(--danger); }

/* the door */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--night);
}
.gate[hidden] { display: none; }
.gate::before {
  content: '';
  position: absolute;
  top: -30vh;
  left: 50%;
  width: min(50rem, 120vw);
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 84, 112, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.gate-card {
  position: relative;
  width: min(30rem, 100%);
  padding: 2rem;
  border: 1px solid var(--veil);
  border-radius: 18px;
  background: var(--dusk);
  text-align: center;
}
.gate-kicker { margin: 0 0 1rem; color: var(--danger); }
.gate-title {
  margin: 0 0 0.9rem;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
  color: var(--bone);
}
.gate-body { margin: 0 0 1.5rem; color: var(--dim); }
.gate-acts { display: flex; flex-direction: column; gap: 0.6rem; }
.gate-fine {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--veil);
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.5;
}

/* ---------- footer ---------- */

.sitefoot {
  display: block;
  padding: 2.5rem clamp(1rem, 4vw, 2.25rem) 3rem;
  border-top: 1px solid var(--veil);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  max-width: 62rem;
  margin: 0 auto;
}
.foot-mark {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--dim);
}
.foot-mark .tld { font-family: 'Spline Sans Mono', monospace; font-size: 0.7rem; color: var(--faint); }

.foot-adult {
  padding: 0.15rem 0.7rem;
  border: 1px solid rgba(255, 84, 112, 0.4);
  border-radius: var(--r-pill);
  color: var(--danger);
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.foot-adult:hover { background: var(--danger); color: #fff; }
.foot-adult.foot-back {
  border-color: var(--veil);
  color: var(--dim);
  text-transform: none;
  letter-spacing: 0.04em;
}
.foot-adult.foot-back:hover { background: var(--veil); color: var(--text); }

.foot-note {
  margin-top: 1rem;
  color: var(--faint);
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.68rem;
  text-align: center;
}

.foot-kin {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--veil);
  font-size: 0.8rem;
}
.foot-kin-label {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.foot-kin a { color: var(--dim); text-decoration: none; font-weight: 600; }
.foot-kin a:hover { color: var(--lamp); }
.foot-kin a em { font-style: normal; font-weight: 400; color: var(--faint); }

.dz-kin {
  margin: -0.4rem 0 0.9rem;
  font-size: 0.8rem;
  color: var(--faint);
}
.dz-kin a { color: var(--lamp); text-decoration: none; font-weight: 600; }
.dz-kin a:hover { text-decoration: underline; }

/* the line that used to be the headline — still the voice of the place,
   just no longer the thing search engines read first */
.hero-line {
  position: relative;
  margin: 1.1rem auto 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--bone);
}
