/* faccio site. Values come from the design handoff; colours are in theme.css. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
html, body { margin: 0; background: var(--kraft); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.55; min-height: 100vh; overflow-x: clip; }
p, h1, h2, h3 { margin: 0; }
img { display: block; }
a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-hover); }
::selection { background: var(--orange); color: var(--ink); }
input::placeholder { color: var(--placeholder); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ink :focus-visible, .bar :focus-visible { outline-color: var(--orange); }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 28px; }
.pretty { text-wrap: pretty; }
.self-start { align-self: flex-start; }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.mono-12, .mono-13, .mono-14 { font-family: var(--font-mono); }
.mono-12 { font-size: 12px; }
.mono-13 { font-size: 13px; }
.mono-14 { font-size: 14px; }
.soft { color: var(--on-paper); }
.on-kraft { color: var(--on-kraft); }
.on-ink-soft { color: var(--on-ink-soft); }

h1, h2, h3 { font-weight: 600; }
h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; line-height: 1.05; }

/* Tape */
.tape {
  display: inline-block;
  background: var(--ink); color: var(--tape-text);
  font-family: var(--font-tape); font-weight: 600; letter-spacing: 0.12em; line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.3);
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; }
.logo {
  display: inline-flex; align-items: stretch; text-decoration: none;
  background: var(--ink); color: var(--tape-text);
  font-family: var(--font-tape); font-weight: 600; font-size: 30px; letter-spacing: 0.12em; line-height: 1;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  padding-left: 16px;
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.3);
}
.logo:hover { color: var(--tape-text); }
.logo:focus-visible { clip-path: none; }
.logo-word { padding: 6px 7px 8px 0; }
.logo-tab { border-left: 1.5px dashed var(--perforation); display: flex; align-items: center; padding: 0 14px 0 7px; }
.logo-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; letter-spacing: 0.16em; color: var(--orange); text-shadow: none; }
.top-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; }
.top-nav a { text-decoration: none; }
.top-nav .top-cta { background: var(--orange); color: var(--ink); padding: 8px 12px; }

/* Hero */
.hero { padding-block: 56px 80px; display: flex; flex-direction: column; gap: 56px; }
.maker { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tape-hero {
  font-size: clamp(60px, 10vw, 128px);
  padding: 0.1em 0.3em 0.14em 0.26em; border-radius: 4px;
  text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.35);
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
  transform: rotate(-2deg);
}
.tape-phrase {
  font-size: clamp(42px, 7vw, 88px);
  padding: 0.12em 0.32em 0.16em 0.26em; border-radius: 3px;
  text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.3);
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
  transform: rotate(1.5deg);
  margin-left: clamp(20px, 6vw, 80px);
  min-width: 2.4em; min-height: 1.28em;
  white-space: nowrap;
}
.cursor { display: inline-block; width: 0.4em; height: 0.1em; background: currentColor; margin-left: 4px; }
.tape-orange {
  background: var(--orange); color: var(--ink);
  font-family: var(--font-tape); font-weight: 600; font-size: clamp(18px, 2vw, 24px); letter-spacing: 0.14em; line-height: 1;
  padding: 7px 14px 8px; border-radius: 2px;
  transform: rotate(-1.5deg);
  margin-left: clamp(40px, 14vw, 200px);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.maker-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; align-items: center; }
.maker-row .mono-12 { margin-right: 4px; }
.phrase {
  font-family: var(--font-tape); font-weight: 600; font-size: 17px; letter-spacing: 0.12em;
  padding: 5px 11px 6px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--ink); color: var(--tape-text);
}
.phrase.is-on { background: var(--orange); color: var(--ink); }
.intro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 32px 64px; align-items: end;
  border-top: 2px solid var(--ink); padding-top: 28px;
}
h1 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.intro-text { display: flex; flex-direction: column; gap: 16px; max-width: 46ch; }
.lede { font-size: 19px; }
.sub { font-size: 16px; color: var(--on-kraft); }

/* Apps */
.paper { background: var(--paper); }
.apps-inner { padding-block: 80px 88px; }
.apps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 0 16px 18px; border-bottom: 2px solid var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 20px 40px; padding: 32px 16px; border-bottom: 1px solid var(--row-rule); }
.row.is-ticked { background: var(--ticked); }
.row-pick { flex: 0 0 64px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tick {
  position: relative; width: 30px; height: 30px; padding: 0;
  border: 2px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink);
  font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.tick::after { content: ""; position: absolute; inset: -9px; }
.tick span { visibility: hidden; }
.tick[aria-pressed="true"] { background: var(--orange); }
.tick[aria-pressed="true"] span { visibility: visible; }
.row-name { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tape-name { font-size: 40px; font-weight: 600; padding: 5px 16px 7px 13px; border-radius: 3px; }
.row:nth-of-type(1) .tape-name { transform: rotate(-1deg); }
.row:nth-of-type(2) .tape-name { transform: rotate(1deg); }
.row:nth-of-type(3) .tape-name { transform: rotate(-1.5deg); }
.row:nth-of-type(4) .tape-name { transform: rotate(1deg); }
.row:nth-of-type(5) .tape-name { transform: rotate(-1deg); }
.row-body { flex: 3 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.row-text { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; max-width: 52ch; }
.why { font-size: 16px; color: var(--on-kraft); border-left: 3px solid var(--orange); padding-left: 12px; }
.why b { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink); margin-right: 6px; }
.shot { flex: 1 1 180px; min-width: 0; max-width: 240px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: 1px solid var(--row-rule); background: repeating-linear-gradient(135deg, #EBE4D6 0 8px, #F4F1E8 8px 16px); }
.row-more { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 26px 16px; align-items: center; border-bottom: 2px solid var(--ink); }
.more-n { flex: 0 0 64px; }
.tape-half {
  font-family: var(--font-tape); font-weight: 600; font-size: 32px; letter-spacing: 0.12em; line-height: 1;
  padding: 5px 28px 7px 13px; color: var(--placeholder);
  border: 1.5px dashed var(--placeholder); border-right: 0; border-radius: 3px 0 0 3px;
}

/* Rules */
.ink { background: var(--ink); color: var(--paper); }
.ink a { color: var(--paper); }
.rules-inner { padding-block: 88px 96px; }
.rules-title { margin: 6px 0 52px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; }
.rules li { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ink-rule); padding-top: 18px; }
.rule-n { align-self: flex-start; background: var(--orange); color: var(--ink); font-family: var(--font-tape); font-weight: 600; font-size: 18px; letter-spacing: 0.12em; line-height: 1.55; padding: 3px 10px 4px; border-radius: 2px; }
.rules h3 { font-size: 23px; letter-spacing: -0.01em; line-height: 1.2; }
.rules p { color: var(--on-ink); font-size: 16px; }

/* Beta */
.join { padding-block: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px 72px; align-items: start; }
.join-title { margin: 6px 0 36px; font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -0.025em; line-height: 1; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--kraft-rule); }
.steps li:first-child { border-top: 1.5px solid var(--ink); }
.steps li:last-child { border-bottom: 1px solid var(--kraft-rule); }
.steps .mono-13 { padding-top: 3px; }
.slip { background: var(--slip); border: 1.5px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 22px; box-shadow: 6px 6px 0 var(--ink); min-width: 0; }
.slip-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1.5px dashed #A8A194; padding-bottom: 14px; }
.slip-title { font-family: var(--font-tape); font-weight: 600; font-size: 26px; letter-spacing: 0.08em; line-height: 1.2; }
.slip-form { display: flex; flex-direction: column; gap: 22px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 10px; font-size: 15px; color: var(--on-paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: block; font-family: var(--font-tape); font-weight: 600; font-size: 19px; letter-spacing: 0.12em; line-height: 1.55; padding: 5px 12px 6px; border-radius: 2px; background: var(--ink); color: var(--tape-text); }
.chip input:checked + span { background: var(--orange); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 15px; color: var(--on-paper); }
.field input { font-family: var(--font-body); font-size: 18px; padding: 12px 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); outline: none; width: 100%; }
.field input:focus { border-bottom-color: var(--orange); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.consent input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--orange); flex: none; }
.status { font-family: var(--font-mono); font-size: 13px; color: var(--on-paper); }
.status:empty { display: none; }
.status[data-error] { color: var(--error); }
.submit {
  display: flex; align-items: stretch; width: 100%; padding: 0; border: 0;
  background: var(--ink); color: var(--tape-text); cursor: pointer;
  font-family: var(--font-tape); font-weight: 600; font-size: 24px; letter-spacing: 0.12em; line-height: 1;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.3);
}
.submit:focus-visible { clip-path: none; }
.submit:disabled { opacity: .6; cursor: progress; }
.submit-word { flex: 1; text-align: left; padding: 14px 12px 15px 22px; }
.submit-arrow { border-left: 1.5px dashed var(--perforation); background: var(--orange); color: var(--ink); padding: 14px 22px 15px 14px; text-shadow: none; }
.done { display: flex; flex-direction: column; gap: 14px; padding: 6px 0; align-items: flex-start; overflow-wrap: anywhere; }
.done:focus { outline: none; }
.tape-done { font-size: 36px; padding: 5px 16px 7px 13px; border-radius: 3px; transform: rotate(-1.5deg); }
.tape-done .dot { color: var(--orange); }
.text-btn { font-family: var(--font-mono); font-size: 13px; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }

/* Footer */
.foot { padding-block: 56px 32px; display: flex; flex-direction: column; gap: 40px; }
.logo-big {
  align-self: flex-start; display: inline-flex; align-items: stretch;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-tape); font-weight: 600; font-size: clamp(56px, 11vw, 140px); letter-spacing: 0.12em; line-height: 1;
  clip-path: polygon(0.12em 0, 100% 0, calc(100% - 0.12em) 100%, 0 100%);
  padding-left: 0.3em;
  text-shadow: 0 2px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(0,0,0,.25);
}
.logo-big-word { padding: 0.1em 0.1em 0.14em 0; }
.logo-big-tab { border-left: 2px dashed #A8A194; display: flex; align-items: center; padding: 0 0.3em 0 0.14em; }
.logo-big-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.19em; letter-spacing: 0.2em; color: var(--orange-small); text-shadow: none; }
.foot-row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 14px; color: var(--on-ink); border-top: 1px solid var(--ink-rule); padding-top: 20px; }
.foot-row p { max-width: 52ch; }
.foot-row nav { display: flex; gap: 20px; font-family: var(--font-mono); font-size: 13px; }

/* Sticky slip bar */
.bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 10;
  width: min(560px, calc(100% - 32px));
  background: var(--ink); color: var(--paper); padding: 10px 10px 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 3px; font-size: 15px; box-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.bar-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-count { font-family: var(--font-mono); font-size: 12px; color: var(--orange); margin-right: 10px; }
.bar .bar-cta { flex: none; background: var(--orange); color: var(--ink); text-decoration: none; padding: 8px 14px; font-family: var(--font-tape); font-weight: 600; font-size: 18px; letter-spacing: 0.1em; line-height: 1.2; border-radius: 2px; }

@media (max-width: 480px) { .tape-orange { margin-left: 20px; } }
@media (max-width: 340px) { .tape-phrase { font-size: 36px; } .tape-orange { margin-left: 0; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
