/* tokens: warm dark phone-UI chrome around the found photos, sampled off the cat/room/carrier */
:root{
  --bg: #15130f;
  --bar: #1d1a15;
  --cream: #f3ecdf;
  --cream-soft: rgba(243,236,223,0.6);
  --muted: #8f8676;
  --gold: #d8a65e;
  --gold-dim: #8a6a3a;
  --line: rgba(243,236,223,0.1);
}

*{ box-sizing: border-box; }

@font-face{
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Chivo Mono";
  src: url("assets/fonts/chivo-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Chivo Mono";
  src: url("assets/fonts/chivo-mono-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

html, body{
  height: 100%;
  margin: 0;
  background: var(--bg);
  overflow: hidden;
}

body{
  font-family: "Hanken Grotesk", ui-sans-serif, "Segoe UI", sans-serif;
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.phone{
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(10px, 2.2vh, 20px) clamp(12px, 4vw, 28px) 0;
  gap: clamp(6px, 1.4vh, 12px);
}

.statusbar{
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sb-label{ font-weight: 600; }

.sb-clock{
  font-family: "Chivo Mono", ui-monospace, monospace;
  color: var(--cream-soft);
  font-variant-numeric: tabular-nums;
}

.deck-line{
  margin: 0;
  text-align: center;
  font-size: clamp(13px, 3vw, 15px);
  color: var(--cream-soft);
  max-width: 32ch;
}

.deck{
  position: relative;
  width: min(72vh, 78vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  flex-shrink: 1;
}

.frame{
  position: relative;
  width: 100%;
  height: 100%;
}

.shot{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
}

.shot.active{
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.tap-prev, .tap-next{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.tap-prev{ left: 0; }
.tap-next{ right: 0; }

.caption{
  margin: 0;
  text-align: center;
  font-size: clamp(12px, 2.8vw, 14px);
  color: var(--cream);
  max-width: 34ch;
  min-height: 2.6em;
}

.dots{
  display: flex;
  gap: 8px;
}

.dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.dot.active{ background: var(--gold); }

.bar{
  width: 100%;
  background: var(--bar);
  border-top: 1px solid var(--line);
  padding: 12px clamp(12px, 4vw, 28px);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "Chivo Mono", ui-monospace, monospace;
  font-size: 11px;
}

.tk{
  color: var(--gold);
  letter-spacing: 0.03em;
  font-weight: 700;
}

.sep{ color: var(--muted); }

.ca{
  font-family: "Chivo Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--cream);
  background: #0000;
  border: 1px solid var(--line);
  padding: 5px 9px;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.ca:hover{ border-color: var(--gold-dim); }

.links{
  display: flex;
  gap: 12px;
  margin-left: 6px;
}
.links a{
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
}
.links a:hover{ color: var(--cream); }

@media (prefers-reduced-motion: reduce){
  .shot{ transition: none; }
}

@media (max-height: 700px){
  .deck{ width: min(58vh, 72vw, 340px); }
  .deck-line{ font-size: 12px; }
}

@media (max-height: 620px){
  .phone{ padding-top: 8px; gap: 4px; }
  .deck{ width: min(48vh, 66vw, 300px); }
  .caption{ min-height: 2.2em; }
}

@media (max-width: 380px){
  .statusbar{ font-size: 10px; }
  .bar{ font-size: 10px; }
}
