/* musito.pl
 *
 * Every colour here is a token from @musito/brand (loaded by assets/tokens.css,
 * generated at build time) - no hex value is written in this file, because the
 * brand package is the single source of truth and a colour that does not exist
 * there is a change to the brand repo, not a local addition.
 *
 * Strata is flat: no gradients, no glows, no shadows. Depth comes from bands of
 * flat colour, in roughly the brand's ratio - deep teal for the two bands that
 * speak, chalk for the ones that explain, sand as the only accent on top of
 * them, and mint appearing solely inside the mark.
 */

/* --font-sans is not a brand token: the brand owns the heading and mono faces
   and names Geist as the body face, but leaves the variable to the app - the
   same split the fryzjer frontend makes in its own @theme block. */
:root {
  --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --wrap: 68rem;
  --band-y: clamp(3.5rem, 8vw, 6.5rem);
}

/* Self-hosted so that opening the page contacts nothing but this server. That is
   a privacy-policy claim on /prywatnosc, and loading fonts from a CDN would make
   it false. */
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/assets/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  /* BRAND.md: body 16-18px, line-height 1.6, never below 14px. */
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1,
.display {
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

p {
  margin: 0 0 1.1em;
  max-width: 68ch;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, currentColor 35%, transparent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--color-sand);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--card);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

/* ----------------------------------------------------------------- lockup */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--lockup-size) * 0.34);
  line-height: 1;
}

.lockup svg {
  width: var(--lockup-size);
  height: var(--lockup-size);
  display: block;
  flex: none;
}

.lockup__word {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: calc(var(--lockup-size) * 0.86);
  letter-spacing: -0.035em;
}

.lockup__rule {
  width: 1px;
  height: calc(var(--lockup-size) * 0.46);
  background: currentColor;
  opacity: 0.28;
}

.lockup__product {
  font-family: var(--font-mono);
  font-size: calc(var(--lockup-size) * 0.38);
  letter-spacing: 0.04em;
  color: var(--color-sand);
}

/* ----------------------------------------------------------------- header */

.site-head {
  border-bottom: 1px solid var(--border);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  /* BRAND.md clear space: bar height x 6, which is 0.54 of the mark. */
  padding-block: calc(2rem * 0.54);
}

.site-head__brand {
  text-decoration: none;
}

.site-head__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 1.75rem);
  font-size: 0.9375rem;
}

.site-head__nav a {
  text-decoration: none;
}

.site-head__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.lang {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.6);
  text-decoration: none;
}

.lang:hover {
  border-color: color-mix(in oklab, currentColor 45%, transparent);
  text-decoration: none;
}

/* ------------------------------------------------------------------ bands */

.band {
  padding-block: var(--band-y);
}

.band--deep {
  background: var(--color-brand-900);
  color: var(--color-chalk);
}

.band--muted {
  background: var(--muted);
}

.band--page {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hero .display {
  margin-bottom: 0.65rem;
  max-width: 20ch;
}

.hero__lockup {
  margin-bottom: 1.75rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin: 0 0 1.25rem;
}

.eyebrow--ink {
  color: var(--color-brand-600);
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  max-width: 58ch;
  color: color-mix(in oklab, var(--color-chalk) 82%, transparent);
}

.lead--ink {
  color: var(--muted-foreground);
}

.on-deep {
  color: var(--color-chalk);
}

.note {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------- buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* On the deep band sand leads, exactly as the brand's own dark theme does. */
.btn--primary {
  background: var(--color-sand);
  color: var(--color-brand-900);
}

.btn--primary:hover {
  background: color-mix(in oklab, var(--color-sand) 88%, var(--color-chalk));
}

.btn--ghost {
  border-color: color-mix(in oklab, var(--color-chalk) 32%, transparent);
  color: var(--color-chalk);
}

.btn--ghost:hover {
  border-color: var(--color-chalk);
}

.btn--ink {
  background: var(--color-brand-900);
  color: var(--color-chalk);
}

.btn--ink:hover {
  background: var(--color-brand-800);
}

/* ----------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.card--bare {
  background: transparent;
  border: none;
  padding: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p:not(.num) {
  color: var(--muted-foreground);
  font-size: 1rem;
}

.num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--color-sand);
  margin: 0 0 0.9rem;
}

/* ------------------------------------------------------- area / product */

.area,
.contact,
.notes {
  display: grid;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  align-items: start;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.6);
  background: var(--card);
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--color-sand);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-top: 1.5rem;
}

.product-card p {
  color: var(--muted-foreground);
  margin-top: 1.5rem;
  font-size: 1.0625rem;
}

.product-card p:last-child {
  margin-bottom: 0;
}

.contact__list {
  margin: 0;
  font-size: 1.125rem;
}

.contact__list dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-top: 1.5rem;
}

.contact__list dt:first-child {
  margin-top: 0;
}

.contact__list dd {
  margin: 0.35rem 0 0;
}

.notes h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
}

/* ------------------------------------------------------------ legal prose */

.prose {
  max-width: 44rem;
}

.prose h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.prose h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin-top: 2.5rem;
}

.prose p {
  color: var(--muted-foreground);
  font-size: 1rem;
}

.prose .updated {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* ----------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--border);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.9375rem;
}

.site-foot__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.site-foot__brand {
  grid-column: 1 / -1;
}

.site-foot h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.9rem;
}

.site-foot p {
  color: var(--muted-foreground);
  margin-bottom: 0.9rem;
}

.site-foot__brand p {
  margin-top: 1.1rem;
  max-width: 34ch;
}

.site-foot__areas {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.site-foot__legal {
  font-style: normal;
}

.site-foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

@media (min-width: 52rem) {
  .site-foot__inner {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }

  .site-foot__brand {
    grid-column: auto;
  }
}
