/* ufamax.eu - Amazing Ideas Lab. The only colour on the page is the fire the visitor draws; everything else is
   bone-coloured type on black. Fonts: Big Shoulders (wordmark, headings), Instrument Sans (text) - OFL, assets/fonts. */

@font-face {
  font-family: "Big Shoulders";
  src: url("fonts/big-shoulders.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --soot: #000000;
  --bone: #f1eadf;
  --ash: #bdb5a8;
  --cinder: #8a8276;
  --line: rgba(241, 234, 223, 0.16);
  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* text stays readable when the fire flows behind it */
  --halo: 0 0 14px #000, 0 0 3px #000;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--soot); }
body {
  min-height: 100svh;
  font: 400 1.0625rem/1.6 var(--text);
  color: var(--ash);
  background: var(--soot);
  -webkit-font-smoothing: antialiased;
}

/* WebGL canvas of assets/fire.js: fixed under the content, never catches clicks */
.fire { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.fire canvas { display: block; width: 100%; height: 100%; }
/* No fire (reduced motion, no WebGL): a still ember glow instead */
.no-fire .fire { display: none; }
.no-fire body {
  background:
    radial-gradient(70vmax 45vmax at 12% 108%, rgba(255, 92, 26, 0.32), transparent 62%),
    radial-gradient(40vmax 30vmax at 0% 100%, rgba(255, 196, 77, 0.18), transparent 60%),
    var(--soot);
  background-attachment: fixed;
}
.no-fire .hint { display: none; }

.card {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(32px, 6vw, 112px);
  row-gap: 48px;
  padding: clamp(24px, 5vw, 80px);
  text-shadow: var(--halo);
}

.mark { align-self: end; }
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 72;
  font-size: clamp(5rem, 13.5vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  color: var(--bone);
  /* большие буквы читаются и над огнём; тень соседних строк легла бы на них тёмными полосами */
  text-shadow: none;
}
.wordmark span { display: block; }
.hint { margin-top: 28px; font-size: 0.9375rem; color: var(--cinder); }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-pointer { display: none; }
  .hint-touch { display: block; }
}

.about { align-self: end; max-width: 34rem; }
.lead { font-size: 1.3125rem; line-height: 1.5; color: var(--bone); }

section { margin-top: 44px; }
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "opsz" 40;
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--bone);
}

ul { list-style: none; margin-top: 14px; }
.build li { padding: 11px 0; border-top: 1px solid var(--line); }
.build li:last-child { border-bottom: 1px solid var(--line); }

.projects li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.projects li:last-child { border-bottom: 1px solid var(--line); }
.projects a {
  justify-self: start;
  font-weight: 600;
  color: var(--bone);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.projects a:hover { text-decoration-thickness: 2px; }
.projects span { font-size: 0.9375rem; }

a:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; border-radius: 2px; }

.foot { grid-column: 1 / -1; font-size: 0.875rem; color: var(--cinder); }

@media (max-width: 900px) {
  .card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 40px; }
  .mark { align-self: start; padding-top: 8vh; }
  .wordmark { font-size: clamp(4.5rem, 24vw, 9rem); }
  .about { max-width: none; }
}
