@font-face {
  font-family: "ITC Avant Garde Gothic Std";
  src: url("/fonts/ITCAvantGardeGothic-BookCondensed.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "ITC Avant Garde Gothic Std", "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --bg: #000;
  --rose: #d2af8c;
  --rose-deep: #c6a07f;
  --champagne: #e1c09c;
  --champagne-hi: #f7edca;
  --blush: #fae4d6;
  --line: #ccb9ab;
  --blue: #74add8;
  --violet: #b297ba;
  --teal: #add5cb;
  --pink: #bf9db5;
  --text: #e8d3be;
  --text-dim: rgba(225, 192, 156, 0.76);
  --holo: linear-gradient(
    115deg,
    #e1c09c 0%,
    #d2af8c 16%,
    #fae4d6 28%,
    #bf9db5 42%,
    #b297ba 52%,
    #74add8 66%,
    #add5cb 78%,
    #f7edca 90%,
    #d2af8c 100%
  );
  background: #000;
  color: var(--text);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #000; }
body {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}
h1, h2, h3, strong, b, button, a, label, summary { font-weight: 400; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; font-weight: 400; color: inherit; }
textarea, input[type="text"], input[type="search"], input[type="number"] { text-transform: none; letter-spacing: 0.04em; }

.holo, h1, h2, .success, .closed {
  background-image: var(--holo);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .holo, h1, h2, .success, .closed { animation: holo-shift 22s ease-in-out infinite; }
}
@keyframes holo-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.site { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: #000; }
.mast, .foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  align-items: center;
}
.mast { padding: 20px 7vw 16px; }
.foot { padding: 18px 7vw 28px; font-size: 11px; letter-spacing: 0.2em; color: var(--text-dim); }
.mast::after, .foot::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background-image: var(--holo);
  background-size: 220% 100%;
  opacity: 0.88;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .mast::after, .foot::before { animation: holo-shift 22s ease-in-out infinite; }
}
.mast::after { bottom: 0; }
.foot::before { top: 0; }
.mast a.word {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--champagne);
  min-width: 0;
}
.mast a.word .mark { display: block; flex: none; height: 42px; width: auto; line-height: 0; }
.mast a.word .mark img { display: block; height: 42px; width: auto; }
.credit {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--rose);
}
.frame { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 72px; flex: 1; }

.hero { text-align: center; margin-bottom: 32px; }
.kicker {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--rose);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 11vw, 72px);
  line-height: 0.94;
  letter-spacing: 0.12em;
}
.lede {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.16em;
}

.box { margin-bottom: 64px; }
.confess-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .optional summary, .check strong, .pill, .toggle span, .wall-max span {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
}
.field em, .check em {
  font-style: normal;
  color: rgba(225, 192, 156, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.confess-form input, .confess-form textarea, .filters input, .wall-max input {
  width: 100%;
  appearance: none;
  border: 1px solid transparent;
  background-image: linear-gradient(#050505, #050505), var(--holo);
  background-origin: border-box, border-box;
  background-clip: padding-box, border-box;
  color: var(--text);
  font-size: 16px;
  padding: 14px;
  border-radius: 0;
  min-height: 48px;
}
.confess-form textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.confess-form input:focus, .confess-form textarea:focus, .filters input:focus, .wall-max input:focus {
  outline: none;
  background-image: linear-gradient(#0a0806, #0a0806), var(--holo);
}
.count { justify-self: end; font-size: 10px; letter-spacing: 0.18em; color: var(--text-dim); }
.optional summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; color: var(--rose); }
.optional summary::-webkit-details-marker { display: none; }
.optional[open] { display: grid; gap: 16px; }
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-transform: uppercase;
}
.check input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--rose); flex: none; }
.check span { display: grid; gap: 6px; }
.check strong { color: var(--champagne); font-size: 12px; letter-spacing: 0.16em; }
.check em { font-size: 11px; line-height: 1.5; text-transform: none; letter-spacing: 0.04em; }
.turnstile-slot { min-height: 0; }
.line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(210, 175, 140, 0.1), rgba(178, 151, 186, 0.08)), linear-gradient(#000, #000), var(--holo);
  background-origin: padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, border-box;
  color: var(--blush);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  justify-self: start;
  max-width: 100%;
}
.line-btn:hover { color: #fff; }
.line-btn:disabled { opacity: 0.55; cursor: wait; }
.line-btn.ghost {
  background-image: linear-gradient(#000, #000), var(--holo);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  color: var(--rose);
}
.privacy, .form-error {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--text-dim);
  text-transform: none;
}
.form-error { color: #e6b3a0; }
.success, .closed {
  margin: 12px 0 0;
  padding: 22px 0;
  letter-spacing: 0.18em;
  font-size: 16px;
  text-align: center;
}
.closed { font-size: clamp(28px, 8vw, 48px); letter-spacing: 0.14em; }

/* Wall: one card (two on wide desktop), holographic like portfolio work cards */
.wall h2 {
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-align: center;
}
.wall-stage {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  min-height: 280px;
}
.wall-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 860px) {
  .wall-track { grid-template-columns: 1fr 1fr; }
  .wall-stage { padding: 0 56px; }
  .frame { width: min(920px, calc(100% - 64px)); }
}
.say-card {
  margin: 0;
  min-height: 260px;
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  background-image: linear-gradient(#000, #000), var(--holo);
  background-origin: border-box, border-box;
  background-clip: padding-box, border-box;
  background-size: auto, 220% 100%;
  animation: card-in 0.7s ease both;
}
@media (prefers-reduced-motion: no-preference) {
  .say-card { background-image: linear-gradient(#000, #000), var(--holo); }
  .say-card { animation: card-in 0.7s ease both, holo-shift 22s ease-in-out infinite; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}
.say-card.is-leave { animation: card-out 0.45s ease both; }
@keyframes card-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateX(-18px); }
}
.say-body {
  flex: 1;
  margin: 0;
  font-size: clamp(18px, 4.4vw, 26px);
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--blush);
  overflow-wrap: anywhere;
}
.say-caption {
  min-height: 1.6em;
  margin: 18px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
.say-credit {
  margin: 10px 0 0;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--rose);
}
.wall-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  background-image: linear-gradient(#000, #000), var(--holo);
  background-origin: border-box, border-box;
  background-clip: padding-box, border-box;
  color: var(--rose);
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
}
.wall-nav.prev { left: 0; }
.wall-nav.next { right: 0; }
.wall-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; min-height: 12px; }
.wall-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%;
  border: 1px solid var(--rose);
  background: transparent;
  cursor: pointer;
}
.wall-dots button.on { background: var(--rose); }
.wall-empty { text-align: center; color: var(--text-dim); letter-spacing: 0.16em; }

/* Inbox */
.inbox-frame { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 80px; flex: 1; }
.toolbar { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-bottom: 24px; }
.toggle, .wall-max { display: inline-flex; align-items: center; gap: 10px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--rose); }
.wall-max input { width: 72px; min-height: 44px; text-align: center; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stats article {
  padding: 16px 14px;
  border: 1px solid transparent;
  background-image: linear-gradient(#050505, #050505), var(--holo);
  background-origin: border-box, border-box;
  background-clip: padding-box, border-box;
}
.stats span { display: block; font-size: 28px; letter-spacing: 0.08em; color: var(--champagne); }
.stats em { font-style: normal; font-size: 10px; letter-spacing: 0.2em; color: var(--text-dim); }
.chart {
  margin: 0 0 24px;
  height: 88px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: end;
  gap: 4px;
  padding: 8px 0 0;
}
.chart i {
  display: block;
  min-height: 2px;
  background-image: var(--holo);
  background-size: 220% 100%;
  opacity: 0.9;
}
.filters { display: grid; gap: 12px; margin-bottom: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  background-image: linear-gradient(#000, #000), var(--holo);
  background-origin: border-box, border-box;
  background-clip: padding-box, border-box;
  color: var(--rose);
  cursor: pointer;
  letter-spacing: 0.16em;
}
.pill.on { color: var(--blush); background-image: linear-gradient(rgba(210, 175, 140, 0.16), rgba(178, 151, 186, 0.1)), linear-gradient(#000, #000), var(--holo); background-origin: padding-box, padding-box, border-box; background-clip: padding-box, padding-box, border-box; }
.messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.msg {
  margin: 0;
  padding: 18px 16px 16px;
  border: 1px solid transparent;
  background-image: linear-gradient(#080808, #080808), var(--holo);
  background-origin: border-box, border-box;
  background-clip: padding-box, border-box;
}
.msg.unread { background-image: linear-gradient(#100c0a, #100c0a), var(--holo); }
.msg-time { margin: 0 0 10px; font-size: 10px; letter-spacing: 0.2em; color: var(--text-dim); }
.msg-body { margin: 0; text-transform: none; letter-spacing: 0.04em; line-height: 1.55; font-size: 16px; color: var(--blush); overflow-wrap: anywhere; }
.msg-meta { margin: 12px 0 0; display: grid; gap: 4px; font-size: 11px; letter-spacing: 0.1em; color: var(--champagne); text-transform: none; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.msg-actions button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  background-image: linear-gradient(#000, #000), var(--holo);
  background-origin: border-box, border-box;
  background-clip: padding-box, border-box;
  color: var(--rose);
  letter-spacing: 0.14em;
  font-size: 10px;
  cursor: pointer;
}
.msg-actions button.on { color: var(--blush); }
.msg-actions button:disabled { opacity: 0.35; cursor: not-allowed; }
.msg-actions button.danger { color: #e6b3a0; }
.list-status { color: var(--text-dim); letter-spacing: 0.16em; text-align: center; }

@media (max-width: 720px) {
  .mast { padding: 14px 16px 12px; }
  .foot { padding: 16px 16px 24px; }
  .mast a.word { font-size: 11px; letter-spacing: 0.14em; gap: 8px; }
  .mast a.word .mark, .mast a.word .mark img { height: 34px; }
  .wall-nav { display: none; }
  .inbox-frame { width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .holo, h1, h2, .success, .closed, .mast::after, .foot::before, .say-card { animation: none; }
  .line-btn { transition: none; }
}
