/* Inevitable coming soon. Ground black, ink white. One accent at a time, never on the mark. */
:root {
  --ground: #000000;
  --ink: #ffffff;
  --accent-red: #ff0000;
  --font-sans: "Inter", system-ui, sans-serif;
  --tracking-wordmark: -0.03em;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  /* Transparent so the fixed fibre layer (z-index -1) shows; html keeps the black ground. */
  background: transparent;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
/* Signed paper-fibre field from the LinkedIn article covers. Fixed via a layer so it holds on iOS. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--ground);
  background-image: url(/assets/paper-fibre.webp);
  background-repeat: repeat;
  background-size: 45rem 45rem;
}
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; padding: .75rem 1rem; background: var(--ink); color: var(--ground); z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wordmark { font-weight: 600; letter-spacing: var(--tracking-wordmark); text-transform: lowercase; line-height: 1; text-decoration: none; }
.wordmark--small { font-size: 1.25rem; }
.wordmark--hero { font-size: clamp(3.25rem, 11vw, 7.5rem); }

.bar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
}
.bar-status { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

main { padding: 0 var(--gutter); }

.hero {
  min-height: min(calc(100svh - 5.5rem), 48rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 0 5rem;
}
.mark { width: clamp(9rem, 30vw, 17.5rem); aspect-ratio: 1 / 1; margin-bottom: clamp(1rem, 3vw, 2rem); }
.mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.slogan { margin-top: 1rem; font-size: clamp(1.125rem, 2.4vw, 1.5rem); font-weight: 500; }

.about, .formats, .join {
  max-width: 64rem; margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--ink);
}
h2 { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.about p { max-width: var(--measure); }
.about p + p { margin-top: 1rem; }
.lede { font-size: clamp(1.375rem, 3vw, 2rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; max-width: 44rem !important; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.grid li { padding: 1.5rem 1.5rem 0 0; }
.grid li + li { padding-left: 1.5rem; border-left: 1px solid var(--ink); }
.grid h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: .5rem; }
.grid p { font-size: .9375rem; }
@media (max-width: 52rem) {
  .grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .grid li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 30rem) {
  .grid { grid-template-columns: 1fr; }
  .grid li, .grid li + li { padding: 1.25rem 0 0; border-left: 0; }
  .grid li + li { border-top: 1px solid var(--ink); }
}

.join > p { max-width: var(--measure); font-size: clamp(1.25rem, 2.6vw, 1.625rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.form { margin-top: 2rem; max-width: 36rem; }
.field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; }
.row { display: flex; border: 1px solid var(--ink); }
.row:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
input[type="email"] {
  flex: 1; min-width: 0; appearance: none; border: 0; border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 1.0625rem; padding: 1rem 1.125rem;
}
input[type="email"]::placeholder { color: var(--ink); opacity: .55; }
input[type="email"]:focus { outline: none; }
button {
  appearance: none; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ink); color: var(--ground);
  font: inherit; font-weight: 600; letter-spacing: -0.01em; padding: 0 1.75rem;
}
button:hover { text-decoration: underline; text-underline-offset: .2em; }
button:focus-visible { outline-offset: -5px; outline-color: var(--ground); }
button[disabled] { cursor: progress; }
.form[aria-busy="true"] button { opacity: .7; }
.consent { margin-top: 1rem; font-size: .875rem; max-width: var(--measure); }
.status { margin-top: 1rem; min-height: 1.55em; font-weight: 500; }
.status.is-error { color: var(--accent-red); }
.form.is-error .row { border-color: var(--accent-red); }
.form.is-done .row { display: none; }
.form.is-done .field label { display: none; }
.form.is-done .status { font-size: clamp(1.25rem, 2.6vw, 1.625rem); letter-spacing: -0.01em; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot {
  max-width: 64rem; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 3rem;
  border-top: 1px solid var(--ink);
  display: grid; gap: .75rem;
}
@media (min-width: 68rem) { .foot { padding-left: 0; padding-right: 0; } }
.closer { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.5rem; }
.contact { font-weight: 500; }
.sponsor { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.sponsor a { text-decoration: none; }
.sponsor a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.small { font-size: .875rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.cta {
  margin-top: 2.25rem; display: inline-block; padding: .875rem 1.5rem;
  border: 1px solid var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem;
}
.cta:hover { background: var(--ink); color: var(--ground); }
html { scroll-behavior: smooth; }

/* Work with us: entry section. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.work { max-width: 64rem; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--ink); }
.work-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.work-list li { border-bottom: 1px solid var(--ink); }
.work-list li:nth-child(odd) { border-right: 1px solid var(--ink); }
.work-list a { display: grid; gap: .25rem; padding: 1.5rem 1.5rem 1.5rem 0; text-decoration: none; height: 100%; }
.work-list li:nth-child(even) a { padding-left: 1.5rem; }
.work-list a > span:first-child { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.work-list a > span:first-child::after { content: " \2192"; font-weight: 400; display: inline-block; transition: transform .25s ease; }
.work-list a:hover > span:first-child::after { transform: translateX(.25rem); }
.work-note { font-size: .9375rem; }
@media (max-width: 40rem) {
  .work-list { grid-template-columns: 1fr; }
  .work-list li:nth-child(odd) { border-right: 0; }
  .work-list li:nth-child(even) a { padding-left: 0; }
}
.cta--solid { background: var(--ink); color: var(--ground); }
.cta--solid:hover { background: transparent; color: var(--ink); }
.work-meta { margin-top: .875rem; font-size: .875rem; }

/* Work with us: Typeform-style flow. Red is the single accent here (progress and errors). */
html:has(dialog.flow[open]) { overflow: hidden; }
.flow {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; color: var(--ink);
  background-color: var(--ground);
  background-image: url(/assets/paper-fibre.webp);
  background-repeat: repeat; background-size: 45rem 45rem;
  font-family: var(--font-sans);
}
.flow::backdrop { background: var(--ground); }
.flow[open] { animation: flow-in .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes flow-in { from { opacity: 0; } to { opacity: 1; } }
.flow-form { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.flow-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, .15); }
.flow-progress-fill { display: block; height: 100%; width: 0; background: var(--accent-red); transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.flow-bar { display: flex; justify-content: space-between; align-items: center; padding: clamp(1.25rem, 3vw, 2rem) var(--gutter); }
.flow button { font-family: inherit; }
.flow-close, .flow-back, .flow-skip {
  background: transparent; color: var(--ink); padding: .5rem 0; font-weight: 500; font-size: .9375rem;
}
.flow-close kbd { margin-left: .5rem; }
.flow kbd {
  font-family: inherit; font-size: .75rem; font-weight: 500; line-height: 1;
  border: 1px solid currentColor; padding: .2rem .4rem; letter-spacing: .02em;
}
.flow-stage { position: relative; overflow-y: auto; display: grid; align-items: center; padding: 0 var(--gutter); }
.q {
  grid-area: 1 / 1; width: 100%; max-width: 44rem; margin: 0 auto; padding: 2rem 0;
  border: 0; min-width: 0;
  opacity: 0; transform: translateY(1.25rem); visibility: hidden; pointer-events: none;
  transition: opacity .32s cubic-bezier(.2, .7, .2, 1), transform .32s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .32s;
}
.q.is-before { transform: translateY(-1.25rem); }
.q.is-active { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.q:focus { outline: none; }
.q-title {
  display: block; padding: 0; float: none; width: 100%;
  font-size: clamp(1.625rem, 4.2vw, 2.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em;
}
.q-num { display: inline-block; font-size: .875rem; font-weight: 600; letter-spacing: .02em; vertical-align: .55em; margin-right: .875rem; }
.q-num::after { content: " \2192"; font-weight: 400; }
.q-hint { margin-top: .875rem; font-size: clamp(1rem, 1.8vw, 1.1875rem); opacity: .8; max-width: 38rem; }
.flow .q-input {
  display: block; width: 100%; margin-top: 2rem; appearance: none;
  background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid rgba(255, 255, 255, .5); border-radius: 0;
  font: inherit; font-size: clamp(1.375rem, 3.2vw, 2rem); font-weight: 400; letter-spacing: -0.015em;
  padding: .375rem 0 .625rem; flex: none;
}
.flow .q-input::placeholder { color: var(--ink); opacity: .35; }
.flow .q-input:focus { outline: none; border-bottom-color: var(--ink); border-bottom-width: 2px; padding-bottom: calc(.625rem - 1px); }
.q-textarea { resize: none; line-height: 1.35; min-height: 3.5em; max-height: 40vh; overflow-y: auto; }
.q.has-error .q-input { border-bottom-color: var(--accent-red); }
.q-error { margin-top: .875rem; min-height: 1.5em; font-weight: 500; color: var(--accent-red); }
.q-choices { display: grid; gap: .625rem; margin-top: 2rem; max-width: 26rem; }
.choice {
  position: relative; display: flex; align-items: center; gap: .875rem; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .55); padding: .875rem 1rem; font-size: 1.1875rem; font-weight: 500;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.choice:has(input:checked) { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.choice:has(input:checked)::after { content: "\2713"; margin-left: auto; font-weight: 600; }
.flow-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem var(--gutter) clamp(1.25rem, 3vw, 2rem);
}
.flow-next-wrap { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.flow-btn { padding: .875rem 1.5rem; font-size: 1rem; font-weight: 600; background: var(--ink); color: var(--ground); }
.flow-btn[disabled] { opacity: .6; }
.flow-enter { font-size: .8125rem; opacity: .8; }
.flow-enter kbd { margin-left: .25rem; }
.flow-back[hidden], .flow-skip[hidden], .flow-btn[hidden], .flow-enter[hidden] { display: none; }
.flow-closer { margin-top: 2.5rem; font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.q--done .flow-btn { margin-top: 2.5rem; }
@media (max-width: 30rem) { .flow-enter { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .flow[open] { animation: none; }
  .q, .q.is-before { transform: none; transition: opacity .01s, visibility 0s; }
  .flow-progress-fill { transition: none; }
}
