/* ============================================================
   uithu.com — public page
   Direction: a character reference sheet. Mono annotation
   labels, registration marks at the corners, and outbound
   links presented as labelled palette swatches.
   ============================================================ */

:root {
  --ink:        #241B3D;
  --ink-soft:   #6A5C88;
  --wash:       #F1EAF7;
  --sheet:      #FFFFFF;
  --line:       #DFD1EA;
  --blush:      #F26EA4;
  --citron:     #E4B531;
  --teal:       #2FB8AE;

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body:    "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono:    "DM Mono", ui-monospace, "SFMono-Regular", monospace;

  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: clamp(10px, 4vw, 48px);
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--wash);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  line-height: 1.55;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hp { position: absolute; left: -9999px; }

/* ---------- the sheet ---------- */

.sheet {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 52px);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

/* registration marks — the crop ticks on a printed ref sheet */
.mark {
  position: absolute;
  width: 13px; height: 13px;
  border: 1.5px solid var(--blush);
}
.mark--tl { top: -1px;    left: -1px;    border-right: 0; border-bottom: 0; border-radius: var(--r) 0 0 0; }
.mark--tr { top: -1px;    right: -1px;   border-left: 0;  border-bottom: 0; border-radius: 0 var(--r) 0 0; }
.mark--bl { bottom: -1px; left: -1px;    border-right: 0; border-top: 0;    border-radius: 0 0 0 var(--r); }
.mark--br { bottom: -1px; right: -1px;   border-left: 0;  border-top: 0;    border-radius: 0 0 var(--r) 0; }

/* ---------- annotation label ---------- */

.anno {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- identity block ---------- */

.id {
  display: flex;
  gap: clamp(16px, 4vw, 26px);
  align-items: flex-start;
}

.id__avatar {
  flex: 0 0 auto;
  width: clamp(72px, 18vw, 104px);
  height: clamp(72px, 18vw, 104px);
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--wash);
}

.id__text { min-width: 0; }

.handle {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 11vw, 3.9rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.tagline {
  margin: 12px 0 0;
  font-size: 1.02rem;
  max-width: 34ch;
  color: var(--ink);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-soft);
}
.status--open     .status__dot { background: var(--teal); }
.status--waitlist .status__dot { background: var(--citron); }
.status--closed   .status__dot { background: var(--ink-soft); }

/* ---------- section rhythm ---------- */

.plate, .swatches, .notify {
  margin-top: clamp(34px, 6vw, 52px);
  padding-top: clamp(26px, 5vw, 34px);
  border-top: 1px solid var(--line);
}

.foot {
  margin-top: clamp(30px, 5vw, 44px);
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.foot .anno { margin: 0; }

/* ---------- artwork plate ---------- */

.plate__grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  /* Phones get a compact contact-sheet so the links stay near the top.
     A single column here pushed them three screens down. */
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) {
  .plate__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

.plate__item {
  animation: rise 0.5s both cubic-bezier(0.2, 0.7, 0.3, 1);
  animation-delay: calc(var(--i, 0) * 55ms);
}

.plate__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--wash);
}

.plate__cap {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---------- swatch links — the signature element ---------- */

.swatches__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}

.swatches__list > li {
  animation: rise 0.5s both cubic-bezier(0.2, 0.7, 0.3, 1);
  animation-delay: calc(var(--i, 0) * 45ms);
}

.swatch {
  display: flex;
  align-items: stretch;
  gap: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sheet);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.swatch__chip {
  flex: 0 0 46px;
  border-right: 1px solid rgba(36, 27, 61, 0.12);
}

.swatch__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.swatch__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.012em;
}

.swatch__sub {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swatch__arrow {
  align-self: center;
  padding-right: 16px;
  color: var(--ink-soft);
  transition: transform 0.18s ease, color 0.18s ease;
}

.swatch:hover, .swatch:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 6px 0 -2px var(--wash), 0 10px 20px -14px rgba(36, 27, 61, 0.5);
}
.swatch:hover .swatch__arrow, .swatch:focus-visible .swatch__arrow {
  transform: translateX(3px);
  color: var(--ink);
}

.empty {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- notify ---------- */

.notify__h {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 5vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.notify__blurb {
  margin: 8px 0 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.notify__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.notify__form input[type="email"] {
  flex: 1 1 190px;
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  /* Must stay at 16px or larger — iOS Safari zooms the page on focus below that. */
  font-size: 16px;
  color: var(--ink);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.notify__form input[type="email"]:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 1px;
}

.notify__form button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 11px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.notify__form button:hover { background: var(--blush); border-color: var(--blush); }

.notify__done, .notify__err {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 10px 13px;
  border-radius: 9px;
}
.notify__done { background: rgba(47, 184, 174, 0.13); color: #17615c; }
.notify__err  { background: rgba(242, 110, 164, 0.14); color: #9c2559; }

/* ---------- shared focus + motion ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
