/* =========================================================
   Connect: name tags on a clothesline
   ========================================================= */

.connect-hero { justify-content: flex-start; padding-top: calc(var(--topbar) + 5vh); padding-bottom: 40px; }
.connect-hero .hero-title { --w-base: 118; font-size: clamp(110px, 17.5vw, 300px); }
.connect-hero .scribble { margin-top: .62em; }

/* ---------- the clothesline ---------- */
.lines {
  position: relative; z-index: 6;
  margin: clamp(26px, 4vh, 56px) calc(-1 * var(--pad)) 0;
}
.line-row { position: relative; }
.line-row + .line-row { margin-top: 18px; }
.rope { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rope-base { fill: none; stroke: var(--paper); stroke-width: 4; stroke-linecap: round; }
.rope-twist { fill: none; stroke: rgba(0, 0, 30, .3); stroke-width: 4; stroke-dasharray: 2 5; stroke-linecap: round; }
.nail { fill: var(--paper); stroke: rgba(0, 0, 0, .35); stroke-width: 2; }

.htag {
  --tw: clamp(176px, 16.5vw, 252px);
  position: absolute; left: 0; top: 0;
  width: var(--tw);
  display: block;
  color: var(--ink); text-decoration: none;
  transform-origin: 50% 0;
  transform: translate(-50%, 0) rotate(var(--a, 0rad));
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
  will-change: transform;
}
.anim .htag { opacity: 0; }
.anim .htag.is-in { opacity: 1; transition: opacity .35s; }
.htag:focus-visible { outline: none; }
.htag:focus-visible .htag-card { outline: 4px solid var(--yellow); outline-offset: 4px; }
.htag.is-dragging { cursor: grabbing; }

.htag-pin {
  position: absolute; left: 50%; top: -14px; z-index: 2;
  width: 20px; height: 46px; margin-left: -10px;
}
.htag-pin svg { width: 100%; height: 100%; }

.htag-card {
  display: block; position: relative;
  margin-top: 16px;
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 16px 26px -12px rgba(0, 0, 20, .55);
  transition: transform .3s var(--spring);
}
.htag:hover .htag-card { transform: scale(1.03); }
.htag:active .htag-card { transform: scale(.97); }
.htag-band {
  display: block;
  padding: calc(var(--tw) * .05 + 20px) 10px calc(var(--tw) * .045);
  background: var(--band, var(--red)); color: var(--band-ink, var(--paper));
  text-align: center;
  font-size: calc(var(--tw) * .085); line-height: 1;
  font-variation-settings: "wdth" 115, "wght" 820;
  letter-spacing: .02em;
}
.htag-body { display: grid; justify-items: center; gap: calc(var(--tw) * .05); padding: calc(var(--tw) * .08) 12px calc(var(--tw) * .1); }
.htag-name {
  font-family: var(--hand);
  font-size: calc(var(--tw) * .145); line-height: 1;
  transform: rotate(-3deg);
  white-space: nowrap;
}
.htag-icon { width: calc(var(--tw) * .3); height: auto; overflow: visible; }
.htag-icon * { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.htag-note {
  font-size: calc(var(--tw) * .062); line-height: 1.2;
  font-variation-settings: "wdth" 100, "wght" 560;
  color: rgba(0, 0, 0, .66);
  text-align: center;
}
.lights-off .htag-card { box-shadow: 0 0 0 2px rgba(46, 229, 157, .9), 0 0 34px 4px rgba(46, 229, 157, .5); }
.lights-off .rope-base { stroke: #8af5c8; }

/* ---------- the plain version ---------- */
.plain {
  position: relative;
  background: var(--yellow); color: var(--ink);
  padding: clamp(80px, 10vw, 150px) var(--pad) clamp(90px, 10vw, 150px);
}
.plain-title {
  font-size: var(--t-xl); line-height: .92;
  font-variation-settings: "wdth" 76, "wght" 900;
  letter-spacing: -.01em;
}
.plain-sub { font-family: var(--hand); font-size: var(--t-l); margin-top: 16px; transform: rotate(-2deg); transform-origin: 0 50%; }
.plain-list { margin: clamp(36px, 5vw, 60px) 0 clamp(44px, 6vw, 70px); border-bottom: 3px solid var(--ink); }
.plain-list:empty { display: none; }
.plain-list li { border-top: 3px solid var(--ink); }
.plain-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  width: 100%; padding: 22px 12px 20px;
  color: inherit; text-decoration: none; text-align: left;
  transition: background-color .2s, color .2s, padding .35s var(--out);
}
.plain-row:hover, .plain-row:focus-visible {
  background: var(--ink); color: var(--yellow);
  padding-left: 26px; padding-right: 26px;
  outline: none; border-radius: 0;
}
.pl-name {
  font-size: clamp(34px, 5vw, 72px); line-height: .95;
  font-variation-settings: "wdth" 80, "wght" 900;
}
.pl-url {
  font-size: clamp(15px, 1.4vw, 19px);
  font-variation-settings: "wdth" 100, "wght" 560;
  overflow-wrap: anywhere;
}
.pl-act {
  display: inline-block; margin-left: 10px; padding: 3px 9px 4px;
  border: 2px solid currentColor; border-radius: 999px;
  font-size: 13px; font-variation-settings: "wdth" 100, "wght" 760;
}
.plain .big-btn { --face: var(--red); --text: var(--paper); }

@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .connect-hero .hero-title { font-size: 24vw; --w-base: 88; }
  .connect-hero .scribble { font-size: 8.4vw; }
  .htag { --tw: clamp(150px, 31vw, 280px); }
}
@media (max-width: 760px) {
  .plain-row { padding: 18px 4px 16px; }
}
