/* Jaka Lounge OD site. Shared tokens and components. The whole page is the workshop wall.
   Fonts come from /fonts/fonts.css, linked in each page before this file. */

:root {
  --paper: #fdfcf8;
  --ink: #1f1d1d;
  --red: #c8302b;
  --hl: #ffe27a;
  --sticky: #fff3a8;
  --pink: #ffd9de;
  --pink-lit: #ffc2cb;
  --pencil: #5c5856;
  --pencil2: #8a8582;
  --rule: #d9d4ca;
  --tape: rgba(222, 206, 160, 0.8);
  --gold: #f2b632;
  --blue: #1b3a8a;
  --white: #ffffff;

  --f-head: Kalam, "Comic Sans MS", cursive;
  --f-body: "Patrick Hand", "Comic Sans MS", cursive;
  --f-note: Caveat, Kalam, cursive;
  --f-messy: "Reenie Beanie", Caveat, cursive;

  --r-hand: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --r-btn: 40px 12px 36px 14px / 14px 36px 12px 40px;
  --r-pill: 30px 8px 26px 10px / 10px 26px 8px 30px;
  --r-mark: 0 0 40px 8px / 0 0 6px 3px;
  --r-tag: 14px 5px 12px 6px / 6px 12px 5px 14px;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 20px/1.35 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; border: 2px solid var(--ink); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 24px; }
.logo { display: block; }
.logo img { display: block; height: 56px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; font-size: 21px; }
.nav a { text-decoration: none; padding: 6px 2px; white-space: nowrap; }
.nav a[aria-current="page"] { border-bottom: 3px solid var(--red); border-radius: var(--r-mark); }

/* ---------- small labels ---------- */
.eyebrow { font: 700 15px/20px var(--f-head); letter-spacing: 0.08em; color: var(--pencil); text-transform: uppercase; }
.mlabel {
  align-self: flex-start; justify-self: start;
  font: 700 16px/22px var(--f-head); letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0 4px 1px 0; border-bottom: 3px solid var(--red); border-radius: var(--r-mark);
}
.mlabel.flip { border-radius: 0 0 8px 40px / 0 0 3px 6px; }

/* ---------- page intro ---------- */
.intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 40px 56px; }
.intro .titles { display: flex; flex-direction: column; gap: 4px; }
.intro .titles.gap { gap: 12px; }
.h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; }
.h1 .red { color: var(--red); }
.uline { display: block; height: 12px; width: min(360px, 80%); margin-top: -4px; overflow: visible; }
.uline path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; }
.lead { font-size: 22px; line-height: 30px; max-width: 640px; }

/* ---------- shapes ---------- */
.blob {
  flex-shrink: 0; width: 52px; height: 52px;
  border-radius: 52% 48% 55% 45% / 46% 54% 44% 56%;
  background: var(--ink); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 28px/1 var(--f-head);
}
.blob.b2 { border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; }
.blob.b3 { border-radius: 50% 50% 58% 42% / 44% 56% 46% 54%; }
.blob.b4 { border-radius: 44% 56% 50% 50% / 56% 44% 54% 46%; }
.blob.red { background: var(--red); }

.stroke { display: block; width: 100%; height: 14px; overflow: visible; }
.stroke path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.stroke.light path { stroke: var(--rule); stroke-width: 4; }
.stroke.ink path { stroke: var(--ink); stroke-width: 5.5; }

.sticky {
  padding: 20px 18px 24px;
  background: var(--sticky);
  box-shadow: 1px 3px 5px rgba(31, 29, 29, 0.2);
  border-radius: 2px 2px 14px 2px / 2px 2px 5px 2px;
  font: 700 27px/30px var(--f-note);
}
.sticky.pink { background: var(--pink); }

.taped {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 2px 4px 6px rgba(31, 29, 29, 0.13);
}
.tape { position: absolute; top: -11px; width: 80px; height: 22px; background: var(--tape); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px;
  border-radius: var(--r-btn); background: var(--red); color: var(--white);
  font: 700 20px var(--f-head); text-decoration: none;
}
.btn:hover { color: var(--white); filter: brightness(1.07); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 18px; color: var(--pencil); }
.contact-line .addr { color: var(--ink); user-select: all; }
.copy {
  border: 1.5px solid var(--ink); background: none; color: var(--ink); cursor: pointer;
  border-radius: 999px; padding: 1px 12px; font: 700 14px var(--f-head);
}

/* ---------- footer ---------- */
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-block: 40px 56px; font-size: 19px; line-height: 26px; }
.site-footer .back { font-family: var(--f-head); font-weight: 700; }
.site-footer .meta { color: var(--pencil); }

/* ---------- How we work ---------- */
.principles { display: flex; flex-direction: column; gap: 36px; margin-top: 28px; }
.principle { display: flex; align-items: flex-start; gap: 56px; }
.principle .body { flex: 3 1 0; min-width: 0; display: flex; align-items: flex-start; gap: 22px; }
.principle .txt { display: flex; flex-direction: column; gap: 8px; }
.principle h2 { font-size: 30px; line-height: 36px; }
.principle p { font-size: 21px; line-height: 29px; }
.principle .aside { flex: 2 1 0; min-width: 0; display: flex; justify-content: center; padding-top: 6px; }
.principle .sticky { width: 250px; }

.hands { width: 320px; padding: 30px 24px 24px; transform: rotate(1.2deg); display: flex; flex-direction: column; gap: 18px; }
.hands .tape { left: 120px; transform: rotate(-3deg); }
.hands .lbl { font: 700 13px/16px var(--f-head); letter-spacing: 0.08em; color: var(--pencil); }
.hands .usual { font: 500 40px/44px var(--f-note); }
.hands .other { font: 46px/44px var(--f-messy); color: var(--blue); }
.hands .other span { display: inline-block; }
.hands { width: min(320px, 100%); }
.hands .other { white-space: nowrap; }
@media (max-width: 1080px) { .hands .usual { font-size: 34px; } .hands .other { font-size: 38px; } }
/* "the other hand": every letter a little off */
.hands .g1 { transform: rotate(-6deg) translateY(3px); }
.hands .g2 { font-size: 1.13em; transform: rotate(5deg); }
.hands .g3 { transform: translateY(-3px); }
.hands .g4 { font-size: 0.87em; transform: rotate(-8deg); }
.hands .g5 { transform: rotate(7deg) translateY(4px); }
.hands .g6 { font-size: 1.09em; transform: rotate(-4deg); }
.hands .g7 { transform: rotate(9deg) translateY(-2px); }
.hands .g8 { font-size: 0.89em; transform: rotate(-7deg) translateY(4px); }
.hands .g9 { transform: rotate(4deg); }
.hands .g10 { font-size: 1.11em; transform: rotate(-5deg) translateY(2px); }
.hands .g11 { transform: translateY(5px); }
.tilt-a { transform: rotate(-2deg); }
.tilt-b { transform: rotate(2deg); }
.tilt-c { transform: rotate(-1.5deg); }
.uline.short { width: min(290px, 70%); }

.steps-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin: 80px 0 34px; }
.steps-head .sub { font: 22px/28px var(--f-head); color: var(--pencil); }
.steps-box { position: relative; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; list-style: none; margin: 0; padding: 0; }
.steps-box .line { position: absolute; left: 20px; top: 19px; width: calc(100% - 40px); height: 14px; }
.steps-box .line.v { display: none; }
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.step h3 { font-size: 25px; line-height: 30px; margin-bottom: 6px; }
.step p { font-size: 20px; line-height: 27px; }

.who { margin-top: 88px; padding: 44px 48px 40px; display: flex; align-items: flex-start; gap: 56px; }
.who .tape.l { left: 80px; transform: rotate(-4deg); width: 84px; }
.who .tape.r { right: 80px; transform: rotate(3deg); width: 84px; }
.who .side { width: 250px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.who .side .name { font: 700 34px/40px var(--f-head); }
.who .main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.who .main p { font-size: 22px; line-height: 30px; }
.who .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- In practice ---------- */
.practice { display: flex; align-items: flex-start; gap: 64px; padding-bottom: 56px; }
.situations { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; }
.situations .eyebrow { font-size: 14px; line-height: 18px; padding: 0 0 8px 16px; }
.sit {
  all: unset; cursor: pointer; box-sizing: border-box; min-height: 48px;
  display: flex; align-items: center; padding: 8px 16px 8px 12px;
  font: 22px/1.2 var(--f-body); border-radius: var(--r-pill);
  transition: background-color 0.25s;
}
.sit[aria-selected="true"] { background: var(--hl); }
.sit:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.panels { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.panel { display: flex; flex-direction: column; gap: 40px; }
.panel:focus-visible { outline-offset: 8px; }
.panel[hidden] { display: none; }
.panel .what { max-width: 860px; font: 30px/40px var(--f-head); }
.block { display: flex; flex-direction: column; gap: 16px; }
.come { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.come li { display: flex; flex-direction: column; gap: 6px; font-size: 20px; line-height: 27px; }
.come .stroke { margin-bottom: 8px; }
.come h3 { font: 700 20px/27px var(--f-body); }
.research { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.research li { padding: 24px; display: flex; flex-direction: column; gap: 8px; border-radius: 2px; }
.research h3 { font-size: 21px; line-height: 27px; }
.research p { font-size: 20px; line-height: 27px; }
.research a { margin-top: auto; padding-top: 6px; font: 500 21px/24px var(--f-note); color: var(--pencil); }
.research a:hover { color: var(--red); }
.closing { max-width: 820px; margin-top: 8px; font-size: 20px; line-height: 27px; font-weight: 700; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .principle { gap: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps-box .line { display: none; }
  .research, .come { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .practice { gap: 40px; }
  .situations { width: 240px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .site-header .wrap { padding-block: 16px 8px; }
  .logo img { height: 40px; }
  .nav { gap: 4px 18px; font-size: 18px; }
  .intro { padding-block: 20px 32px; gap: 12px; }
  .eyebrow { font-size: 13px; line-height: 18px; }
  .lead { font-size: 19px; line-height: 26px; }

  .principles { gap: 28px; }
  .principle { flex-direction: column; gap: 18px; }
  .principle .body { gap: 14px; }
  .principle .blob { width: 40px; height: 40px; font-size: 22px; }
  .principle h2 { font-size: 24px; line-height: 29px; }
  .principle p { font-size: 18px; line-height: 25px; }
  .principle .aside { align-self: stretch; padding-left: 54px; justify-content: flex-start; }
  .principle .sticky { width: auto; max-width: 260px; font-size: 24px; line-height: 27px; padding: 16px 16px 18px; }
  .hands { width: 100%; max-width: 300px; padding: 26px 18px 18px; }
  .hands .tape { left: 40%; }
  .hands .usual { font-size: 34px; line-height: 38px; }
  .hands .other { font-size: 40px; line-height: 40px; }

  .steps-head { margin: 56px 0 26px; }
  .steps-head .sub { font-size: 19px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps-box .line.v { display: block; position: absolute; left: 13px; top: 20px; width: 14px; height: calc(100% - 40px); }
  .step { flex-direction: row; gap: 16px; }
  .step .blob { width: 40px; height: 40px; font-size: 22px; }
  .step h3 { font-size: 22px; line-height: 27px; }
  .step p { font-size: 18px; line-height: 25px; }

  .who { flex-direction: column; gap: 14px; margin-top: 60px; padding: 30px 20px 24px; }
  .who .tape.l { left: 30px; }
  .who .tape.r { right: 30px; }
  .who .side { width: auto; }
  .who .side .name { font-size: 28px; line-height: 34px; }
  .who .main p { font-size: 18px; line-height: 25px; }

  .site-footer .wrap { padding-block: 32px 40px; font-size: 17px; }

  .practice { flex-direction: column; gap: 20px; }
  .situations { width: 100%; }
  .situations .eyebrow { padding-left: 12px; }
  .sit { font-size: 19px; min-height: 44px; }
  .panel, .panels { gap: 30px; }
  .panel .what { font-size: 23px; line-height: 31px; }
  .come li, .research p { font-size: 18px; line-height: 25px; }
  .research li { padding: 18px; }
  .research h3 { font-size: 19px; line-height: 25px; }
}

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