/* Callus Labs — shared styles */
:root {
  --ink: #16151a;
  --muted: #8a8790;
  --pink: #ff2e8f;
  --paper: #ffffff;
  --serif: "Times New Roman", Times, "Liberation Serif", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: var(--pink); color: #fff; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 56px) 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- masthead ---------- */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}

/* ---------- varsity chenille patch letters ---------- */
.ransom {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  font-size: min(8.6vw, 100px);
  line-height: 1;
  font-weight: normal;
  padding: 0.2em 0;
}
.ransom .word { display: inline-flex; align-items: center; margin-right: 0.5em; }
.ransom .group { display: inline-flex; flex-wrap: nowrap; align-items: center; }
.ransom .hi { margin-right: 0.5em; }

/* each letter is its own patch: stitched dark border → satin outline → chenille fill */
.ransom .p {
  --outer: #1c1b20;
  --mid: var(--outer);
  position: relative;
  display: inline-block;
  isolation: isolate;
  margin: 0 0.04em;
  font-family: "Alfa Slab One", "Rockwell", "Superclarendon", Impact, serif;
  font-size: var(--s, 1em);
  text-transform: uppercase;
  color: var(--fill);
  -webkit-text-stroke: 0.012em rgba(0,0,0,.25);
  paint-order: stroke fill;
  filter: url(#chenille);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.ransom .p::before,
.ransom .p::after {
  content: attr(data-l);
  position: absolute;
  inset: 0;
  paint-order: stroke fill;
}
/* outer embroidered border */
.ransom .p::before {
  z-index: -2;
  color: var(--outer);
  -webkit-text-stroke: 0.28em var(--outer);
  filter: url(#satin) drop-shadow(0 0.04em 0.05em rgba(0,0,0,.35));
}
/* inner satin outline */
.ransom .p::after {
  z-index: -1;
  color: var(--mid);
  -webkit-text-stroke: 0.11em var(--mid);
  filter: url(#satin);
}
.ransom .p:hover { transform: rotate(calc(var(--r, 0deg) * -1.5)) scale(1.08); z-index: 2; }

/* colourways — mismatched on purpose */
.ransom .v1 { --fill: #b39af0; }                              /* lavender / black */
.ransom .v2 { --fill: #e0262f; --mid: #fbfaf6; }               /* red / white / black */
.ransom .v3 { --fill: #ff2e8f; --mid: #fbfaf6; }               /* pink / white / black */
.ransom .v4 { --fill: #f4ecda; --mid: #ff2e8f; }               /* cream / pink / black */
.ransom .v5 { --fill: #f2c230; }                              /* gold / black */
.ransom .v6 { --fill: #2f6b3f; --mid: #f4ecda; }               /* green / cream / black */
.ransom .v7 { --fill: #fbfaf6; --mid: #1c1b20; --outer: #ff2e8f; } /* white / black / pink */


/* ---------- die-cut sticker logo ---------- */
.sticker {
  display: block;
  width: clamp(220px, 36vw, 400px);
  transform: rotate(-5deg);
  filter:
    drop-shadow(0 0 0.5px rgba(0,0,0,.25))
    drop-shadow(0 2px 2px rgba(0,0,0,.10))
    drop-shadow(0 10px 18px rgba(0,0,0,.14));
  transition: transform .35s cubic-bezier(.3,1.6,.5,1), filter .35s;
}
.sticker img { display: block; width: 100%; height: auto; }
.sticker:hover {
  transform: rotate(-2deg) translateY(-6px) scale(1.02);
  filter:
    drop-shadow(0 0 0.5px rgba(0,0,0,.25))
    drop-shadow(0 4px 4px rgba(0,0,0,.10))
    drop-shadow(0 22px 26px rgba(0,0,0,.16));
}

/* ---------- belief statement ---------- */
.belief {
  margin: clamp(64px, 11vw, 128px) 0 0;
  font-size: min(2.9vw, 36px);
  line-height: 1.6;
  white-space: nowrap;
  text-align: center;
  font-weight: normal;
  letter-spacing: -0.005em;
}

/* handwritten "good friction", set inline in the sentence */
.hand-inline {
  display: inline-block;
  height: 1.12em;
  width: auto;
  vertical-align: -0.2em;
  margin: 0 0.08em;
}

/* ---------- what we're up to ---------- */
.upto { margin-top: clamp(72px, 11vw, 140px); }

.upto h2 {
  margin: 0 0 clamp(20px, 3vw, 36px);
  font-weight: normal;
  text-align: center;
}
.upto h2 img {
  display: inline-block;
  height: clamp(30px, 4.4vw, 52px);
  width: auto;
}


.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}
.links a {
  display: block;
  padding: 18px 8px 22px;
  text-decoration: none;
}
.links .label {
  font-size: clamp(30px, 4.4vw, 48px);
  font-style: normal;
  position: relative;
}
.links .label::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.32em;
  background: var(--pink);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.links a:hover .label::after,
.links a:focus-visible .label::after { transform: scaleX(1); }

.links .desc {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- footer ---------- */
footer {
  margin-top: auto;
  padding-top: 72px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 4px;
}
footer p { margin: 14px 0 0; }

/* ---------- about page ---------- */
.about-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.about-head .sticker { width: clamp(120px, 18vw, 180px); }
.back { font-size: 18px; text-decoration: none; }
.back:hover { text-decoration: underline; }
.about-body { max-width: 680px; margin: clamp(48px, 8vw, 96px) auto 0; text-align: center; }
.about-body .ransom { font-size: min(9vw, 84px); margin: 0 0 clamp(32px, 5vw, 56px); }
.about-body p { font-size: clamp(19px, 2vw, 23px); line-height: 1.6; margin: 0 0 1.1em; }

.about-body .contact { margin-top: clamp(28px, 4vw, 44px); }
.contact a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.contact a:hover { text-decoration-color: var(--pink); }

/* ---------- irl + social pages ---------- */
.events { list-style: none; margin: clamp(24px, 4vw, 40px) auto; padding: 0; max-width: 680px; text-align: left; }
.events li { display: grid; grid-template-columns: 9em 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--ink); font-size: clamp(18px, 2vw, 22px); }
.events li:last-child { border-bottom: 1px solid var(--ink); }
.event-date, .event-place { color: var(--muted); font-size: 0.85em; }
.event-name { text-decoration: none; }
.event-name:hover { text-decoration: underline; }
.socials { margin: clamp(32px, 5vw, 56px) 0; }

/* ---------- Photo Booth window ---------- */
.about-body { max-width: 860px; }
.about-body p { max-width: 680px; margin-left: auto; margin-right: auto; }
.booth {
  --chrome: #ececec;
  margin: 0 auto clamp(40px, 6vw, 72px);
  width: min(100%, 860px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--chrome);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,.28), 0 22px 60px rgba(0,0,0,.22), 0 6px 16px rgba(0,0,0,.10);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  transform: rotate(-0.6deg);
}
.booth-titlebar {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(#f6f6f6, #ececec);
  border-bottom: 1px solid #d4d4d4;
}
.booth-lights { display: flex; gap: 8px; }
.booth-lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.18); }
.booth-lights i:nth-child(1) { background: #ff5f57; }
.booth-lights i:nth-child(2) { background: #febc2e; }
.booth-lights i:nth-child(3) { background: #28c840; }
.booth-title { margin-left: 12px; font-size: 13px; font-weight: 600; color: #3b3b3b; }

.booth-stage { position: relative; aspect-ratio: 3 / 2; background: #000; }
.booth-stage video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.booth-bigplay {
  position: absolute; left: 50%; top: 50%;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border: 0; border-radius: 50%;
  background: rgba(20,20,22,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.booth-bigplay svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.booth-bigplay:hover { transform: scale(1.06); }
.booth.is-playing .booth-bigplay { opacity: 0; pointer-events: none; }
.booth-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); }
.booth-progress span { display: block; height: 100%; width: 0; background: #ff3b30; }

.booth-strip {
  height: 72px;
  background: linear-gradient(90deg, #dcdde0 0%, #d3d5d9 45%, #c9ccd1 100%);
  border-top: 1px solid #c4c6ca;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}
.booth-thumbs { display: flex; gap: 2px; padding: 4px 4px 4px 0; }
.thumb {
  position: relative; padding: 0; border: 0; cursor: pointer;
  height: 64px; aspect-ratio: 3 / 2;
  background: #000;
  outline: 2px solid transparent; outline-offset: -2px;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { outline-color: #0a84ff; }
.thumb-meta {
  position: absolute; left: 4px; right: 4px; bottom: 3px;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.thumb-meta svg { width: 14px; height: 9px; fill: #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }

.booth-toolbar {
  position: relative;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  background: #e8e8e8;
  border-top: 1px solid #d0d0d0;
}
.booth-modes { display: flex; background: #dadada; border-radius: 7px; padding: 2px; gap: 2px; }
.booth-modes span { width: 30px; height: 24px; display: grid; place-items: center; border-radius: 5px; }
.booth-modes svg { width: 18px; height: 14px; fill: none; stroke: #555; stroke-width: 1.4; }
.booth-modes .is-on { background: #0a84ff; }
.booth-modes .is-on svg { stroke: #fff; }
.booth-shutter {
  position: absolute; left: 50%; top: 50%;
  width: 50px; height: 50px; margin: -25px 0 0 -25px;
  border: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #ff4a3d, #e0190d);
  box-shadow: 0 1px 2px rgba(0,0,0,.25), inset 0 -1px 2px rgba(0,0,0,.15);
  display: grid; place-items: center;
  cursor: pointer;
}
.booth-shutter svg { grid-area: 1 / 1; width: 24px; height: 24px; fill: #fff; }
.booth-shutter .ico-stop { display: none; }
.booth.is-playing .ico-cam { display: none; }
.booth.is-playing .ico-stop { display: block; }
.booth-shutter:active { transform: scale(.95); }
.booth-effects {
  font-size: 13px; color: #333;
  background: #dadada; border-radius: 6px; padding: 5px 16px;
}

@media (max-width: 640px) {
  .events li { grid-template-columns: 1fr; gap: 4px; }
  .booth { transform: none; border-radius: 10px; }
  .booth-strip { height: 52px; }
  .thumb { height: 44px; }
  .booth-toolbar { height: 52px; padding: 0 10px; }
  .booth-shutter { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .booth-modes span { width: 24px; height: 20px; }
  .booth-effects { padding: 4px 10px; font-size: 12px; }
  .belief { white-space: normal; font-size: 24px; }
  .ransom { font-size: 9vw; }
  .links { grid-template-columns: 1fr; gap: 0; }
  footer { flex-direction: column; }
}

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

.nowrap { white-space: nowrap; }

.count { font-variant-numeric: tabular-nums lining-nums; }
