/* Tiger Den Creative Studios: landing and Start something
   One dark ground, two typefaces, one accent. Mobile first. */

/* Fonts are hosted with the site (SIL Open Font License, see /assets/fonts) */
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces.woff) format("woff"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-italic.woff) format("woff"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(../fonts/bricolage.woff) format("woff"); font-weight: 400 800; font-stretch: 75% 100%; font-display: swap; }

:root {
  --ink: #15120f;
  --paper: #f2ece2;
  --muted: rgba(242, 236, 226, .66);
  --line: rgba(242, 236, 226, .16);
  --line-2: rgba(242, 236, 226, .32);
  --ember: #ec6a2e;
  --soft-error: #f4a47f;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--ember); color: var(--ink); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 10; padding: 10px 14px;
  background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1312px; margin-inline: auto; }
.label { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--gutter); }
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: border-color .3s, background-color .3s, color .3s;
}
.pill:hover { border-color: var(--paper); }

/* ---------- Links with a drawn arrow ---------- */
.go {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 0;
  font-size: 15px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--line-2); text-underline-offset: .32em;
  transition: text-decoration-color .3s;
}
.go:hover { text-decoration-color: var(--paper); }
.go span { display: inline-block; color: var(--ember); transition: transform .4s var(--ease); }
.go:hover span { transform: translateX(4px); }

/* ---------- The stage ---------- */
.stage {
  flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.eyebrow { display: block; margin-bottom: clamp(20px, 2.4vw, 32px); }
.statement {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(42px, 7.2vw, 112px); line-height: .98; letter-spacing: -.02em;
}
.statement em { font-style: italic; }
.line { margin-top: clamp(24px, 3vw, 40px); max-width: 30ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; }
.intangible { opacity: .55; }
.tangible {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--ember);
  text-decoration-thickness: 2px; text-underline-offset: .22em;
}

/* Curious? */
.curious {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
  margin-top: clamp(36px, 4.4vw, 56px); padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
  font: italic 400 clamp(20px, 1.7vw, 24px)/1.2 var(--serif);
}
.plus {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: transform .5s var(--ease), border-color .3s;
}
.curious:hover .plus { border-color: var(--paper); }
.curious[aria-expanded="true"] .plus { transform: rotate(45deg); }
html:not(.js) .curious { display: none; }

/* What unfolds. Without JavaScript it is simply open. */
.more { display: grid; grid-template-rows: 1fr; }
.js .more { grid-template-rows: 0fr; transition: grid-template-rows .9s var(--ease); }
.js .more.is-open { grid-template-rows: 1fr; }
.more__inner { min-height: 0; overflow: hidden; }
.more__grid {
  display: flex; flex-wrap: wrap; gap: 40px 64px;
  margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  transition: opacity .6s .15s var(--ease), transform .8s var(--ease);
}
.js .more:not(.is-open) .more__grid { opacity: 0; transform: translateY(-8px); }
.more__words { flex: 1 1 420px; max-width: 560px; display: flex; flex-direction: column; gap: 28px; }
.more__side { flex: 1 1 320px; max-width: 440px; display: flex; flex-direction: column; gap: 32px; }
.about { font-size: clamp(17px, 1.3vw, 19px); }
.belief { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
.tiny {
  margin: 0; padding: 0; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-weight: inherit; line-height: inherit; color: var(--ember);
  font-size: .42em; letter-spacing: .02em; vertical-align: .32em;
  transition: font-size 1.2s var(--ease), letter-spacing 1.2s var(--ease);
}
.tiny[aria-pressed="true"] { font-size: 1em; letter-spacing: -.01em; vertical-align: baseline; }
.lenses { margin: 0; border-bottom: 1px solid var(--line); }
.lenses div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.lenses dt { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2vw, 28px); line-height: 1.15; }
.lenses dd { margin: 0; font-family: var(--serif); font-style: italic; color: var(--muted); }
.work { display: flex; flex-direction: column; gap: 6px; }
.work .go { align-self: flex-start; }

/* ---------- Footer ---------- */
.foot { padding: 24px var(--gutter) 28px; border-top: 1px solid rgba(242, 236, 226, .12); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; }
.foot a { display: inline-block; padding: 8px 0; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: .3em; }
.foot__clock { font-size: 13px; color: var(--muted); }
.foot__about { margin-top: 10px; max-width: 76ch; font-size: 13px; color: var(--muted); }

/* ---------- Opening: once per visit, only when motion is welcome ---------- */
.play [data-step] {
  opacity: 0; transform: translateY(12px);
  animation: arrive 1.1s var(--ease) forwards; animation-delay: var(--d, 0s);
}
@keyframes arrive { to { opacity: 1; transform: none; } }

/* ---------- Start something ---------- */
.form-page .stage { justify-content: flex-start; padding-top: clamp(40px, 6vw, 88px); }
.intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 64px; margin-bottom: clamp(36px, 5vw, 64px); }
.intro h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -.03em; }
.intro p { max-width: 36ch; color: var(--muted); }
.intro a { text-decoration-color: var(--line-2); text-underline-offset: .25em; }

.progress { min-height: 1.5em; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
html:not(.js) .progress { display: none; }

.steps { list-style: none; margin: 0; padding: 0; max-width: 760px; border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); padding: clamp(22px, 3vw, 34px) 0; }
.step fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.q {
  display: flex; align-items: baseline; gap: 16px; width: 100%;
  margin: 0 0 18px; padding: 0;
  font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -.01em;
  transition: font-size .5s var(--ease), color .5s;
}
.q .n { flex: 0 0 26px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--muted); }
.q .opt { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; color: var(--muted); }
.help { margin: -6px 0 18px; max-width: 52ch; font-size: 15px; color: var(--muted); }
.step__body { padding-left: 42px; }

.field {
  display: block; width: 100%; margin: 0; padding: 12px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  color: var(--paper); font: 300 clamp(20px, 2vw, 26px)/1.35 var(--serif);
  transition: border-color .3s, box-shadow .3s;
}
.field::placeholder { color: rgba(242, 236, 226, .45); }
.field:focus { outline: none; border-bottom-color: var(--ember); box-shadow: 0 1px 0 var(--ember); }
.field[aria-invalid="true"] { border-bottom-color: var(--soft-error); }
textarea.field { min-height: 3.4em; resize: vertical; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.choice:hover span { border-color: var(--paper); }
.choice input:checked + span { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 3px; }

.extra { margin-top: 22px; }
.extra label { display: block; margin-bottom: 2px; font-size: 13px; color: var(--muted); }

.err { margin-top: 12px; font-size: 14px; color: var(--soft-error); }
.step__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
html:not(.js) .step__nav:not(.step__nav--final) { display: none; }
.hint { font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--paper); border-radius: 999px;
  font: 600 15px/1 var(--sans); cursor: pointer; transition: background-color .3s, opacity .3s;
}
.btn:hover { background: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Answered questions fold into a single line you can reopen */
.answer { display: none; }
.js .step.is-future { display: none; }
.js .step.is-done { padding: 14px 0; }
.js .step.is-done .q { margin-bottom: 4px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.js .step.is-done .step__body { display: none; }
.js .step.is-done .answer { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-left: 42px; }
.answer__text { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.35; overflow-wrap: anywhere; }
.answer__text.is-empty { color: var(--muted); font-style: italic; }
.change {
  flex: 0 0 auto; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--muted); font: 500 13px/1 var(--sans); text-decoration: underline; text-underline-offset: .3em;
}
.change:hover { color: var(--paper); }
.js .step.is-current .step__body { animation: unfold .7s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.privacy { max-width: 760px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done, .failed { max-width: 760px; }
.done h1, .done h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; letter-spacing: -.02em; }
.done p { margin-top: 14px; color: var(--muted); }
.done .go { margin-top: 18px; }
.done:focus { outline: none; }
.failed { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.failed p { color: var(--soft-error); }

/* ---------- 404 ---------- */
.lost h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -.025em; }
.lost p { margin-top: 18px; color: var(--muted); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .play [data-step] { opacity: 1; transform: none; }
}
@media print {
  .top .pill, .curious, .foot ul { display: none; }
  .js .more { grid-template-rows: 1fr; }
}
