@layer tokens, base, frame, parts;

@font-face {
  font-family: "PPC Head";
  src: url("/assets/fonts/stack-headline-ext.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "PPC Head";
  src: url("/assets/fonts/stack-headline.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PPC Text";
  src: url("/assets/fonts/stack-text-ext.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "PPC Text";
  src: url("/assets/fonts/stack-text.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@layer tokens {
  :root {
    --ground: #e4e5e0;
    --paper: #f3f3f0;
    --surface: #d5d7d0;
    --ink: #161714;
    --muted: #4f524b;
    --accent: #f2b705;
    --accent-press: #d9a300;
    --accent-ink: #161714;
    --field: #161714;
    --field-ink: #eceee8;
    --field-muted: #b4b7ad;
    --field-raise: #262823;
    --alert: #a3261a;
    --ok: #2c6a4d;

    --st-primer: #8d8f88;
    --st-base: #2c6a4d;
    --st-wash: #3b2a20;
    --st-dry: #c8b27a;
    --st-edge: #9bd0ae;
    --st-varnish: #f3f3f0;

    --font-head: "PPC Head", "Avenir Next", "Segoe UI", sans-serif;
    --font-text: "PPC Text", "Avenir Next", "Segoe UI", sans-serif;

    --fs-small: 0.875rem;
    --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    --fs-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
    --fs-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
    --fs-display: clamp(2.5rem, 0.9rem + 6.6vw, 6rem);

    --gutter: clamp(16px, 2.4vw, 32px);
    --col-gap: clamp(16px, 2vw, 28px);
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 40px;
    --sp-5: 64px;
    --section: clamp(88px, 11vw, 176px);
    --measure: 66ch;
    --round: 999px;
    --top-h: 68px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 520ms;
  }
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: var(--fs-body);
    line-height: 1.55;
    font-kerning: normal;
    caret-color: var(--ink);
    overflow-x: clip;
  }
  img, svg { display: block; max-width: 100%; height: auto; }
  h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.022em;
    margin: 0;
    text-wrap: balance;
  }
  h3, h4 { font-family: var(--font-text); font-weight: 500; letter-spacing: 0; line-height: 1.25; font-size: var(--fs-lead); }
  p, ul, ol, dl, figure { margin: 0; }
  p { text-wrap: pretty; }
  a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
  a:hover { text-decoration-color: currentColor; }
  strong { font-weight: 500; }
  button, input, select, textarea { font: inherit; color: inherit; }
  ::selection { background: var(--accent); color: var(--accent-ink); }
  :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
  .t-home .ppc-band :focus-visible, .ppc-foot :focus-visible { outline-color: var(--accent); }
  html { scrollbar-color: var(--st-primer) var(--ground); }
  table { font-variant-numeric: tabular-nums; }
  [hidden] { display: none !important; }
  .ppc-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

@layer frame {
  .ppc-skip {
    position: absolute; left: var(--gutter); top: -100px; z-index: 50;
    background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--round); text-decoration: none;
  }
  .ppc-skip:focus { top: 10px; }

  .ppc-top {
    position: relative; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
    min-height: var(--top-h);
    padding: 12px var(--gutter);
  }
  .ppc-top__brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em;
    text-decoration: none;
  }
  .ppc-top__brand img { width: 34px; height: 34px; }
  .ppc-top__toggle {
    min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--round);
    background: var(--ink); color: var(--paper); cursor: pointer;
  }
  .ppc-top__nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); width: 100%; }
  .ppc-top__nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--sp-3); }
  .ppc-top__nav ul a { display: inline-block; padding: 10px 0; text-decoration: none; }
  .ppc-top__nav ul a:hover, .ppc-top__nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ink); }
  .ppc-top { flex-wrap: wrap; }

  .js .ppc-top__toggle { display: inline-flex; align-items: center; }
  .js .ppc-top__nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: var(--sp-3);
    padding: var(--sp-3) var(--gutter) var(--sp-4);
    background: var(--paper);
    box-shadow: 0 18px 30px -18px rgb(22 23 20 / 0.35);
  }
  .js .ppc-top__nav.is-open { display: flex; }
  .js .ppc-top__nav ul { flex-direction: column; gap: 0; font-size: var(--fs-lead); }

  @media (min-width: 960px) {
    .ppc-top { flex-wrap: nowrap; }
    .js .ppc-top__toggle { display: none; }
    .ppc-top__nav, .js .ppc-top__nav {
      display: flex; position: static; flex-direction: row; align-items: center; justify-content: flex-end;
      width: auto; padding: 0; background: none; box-shadow: none; gap: var(--sp-4);
    }
    .ppc-top__nav ul, .js .ppc-top__nav ul { flex-direction: row; gap: var(--sp-3); font-size: var(--fs-body); }
  }

  .ppc-main { display: block; }

  .ppc-foot {
    background: var(--field); color: var(--field-ink);
    padding: var(--sp-5) var(--gutter) var(--sp-3);
    margin-top: var(--section);
  }
  .ppc-foot a { color: var(--field-ink); }
  .ppc-foot__pots { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; height: clamp(64px, 13vw, 200px); }
  .ppc-pot { flex: none; height: 100%; aspect-ratio: 1; border-radius: 50%; }
  .ppc-pot--primer { background: var(--st-primer); height: 62%; }
  .ppc-pot--base { background: var(--st-base); }
  .ppc-pot--wash { background: var(--st-wash); height: 74%; }
  .ppc-pot--dry { background: var(--st-dry); height: 88%; }
  .ppc-pot--edge { background: var(--st-edge); height: 68%; }
  .ppc-pot--varnish { background: var(--st-varnish); height: 80%; }
  .ppc-foot__name {
    font-family: var(--font-head); font-weight: 300; letter-spacing: -0.04em; line-height: 0.95;
    font-size: clamp(3rem, 1rem + 10vw, 11rem);
    margin: var(--sp-3) 0 var(--sp-5);
  }
  .ppc-foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--col-gap); }
  .ppc-foot__col h2 { font-family: var(--font-text); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; color: var(--field-muted); margin-bottom: var(--sp-2); }
  .ppc-foot__col ul { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 1rem; }
  .ppc-foot__col a { text-decoration: none; display: inline-block; padding: 3px 0; }
  .ppc-foot__col a:hover { text-decoration: underline; }
  .ppc-foot__about { grid-column: 1 / -1; display: grid; gap: var(--sp-2); font-size: 1rem; color: var(--field-muted); max-width: 52ch; }
  .ppc-foot__about a { color: var(--field-ink); }
  .ppc-foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-5); font-size: var(--fs-small); color: var(--field-muted); }
  @media (min-width: 960px) {
    .ppc-foot { padding-top: var(--section); }
    .ppc-foot__grid { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr); }
    .ppc-foot__about { grid-column: auto; }
  }
}

@layer parts {
  .ppc-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 26px;
    border: 0; border-radius: var(--round);
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--font-text); font-weight: 500; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
  }
  .ppc-pill:hover { background: var(--accent-press); }
  .ppc-pill:active { transform: scale(0.97); }
  .ppc-pill--ink { background: var(--ink); color: var(--paper); }
  .ppc-pill--ink:hover { background: #2e302b; }
  .ppc-pill--quiet { background: var(--surface); color: var(--ink); }
  .ppc-pill--quiet:hover { background: #c7c9c1; }
  .ppc-pill[disabled], .ppc-pill[aria-disabled="true"] { background: var(--surface); color: var(--muted); cursor: not-allowed; transform: none; }
  .ppc-pill.is-busy { pointer-events: none; opacity: 0.7; }

  .ppc-dot { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: currentColor; flex: none; }
  .ppc-dot--primer { background: var(--st-primer); }
  .ppc-dot--base { background: var(--st-base); }
  .ppc-dot--wash { background: var(--st-wash); }
  .ppc-dot--dry { background: var(--st-dry); }
  .ppc-dot--edge { background: var(--st-edge); }
  .ppc-dot--varnish { background: var(--st-varnish); box-shadow: inset 0 0 0 2px var(--st-primer); }

  .ppc-credit { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); margin-top: 10px; max-width: 70ch; }
  .ppc-credit a { color: inherit; }

  .ppc-status {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 32px; padding: 0 14px; border-radius: var(--round);
    font-size: var(--fs-small); font-weight: 500; line-height: 1;
  }
  .ppc-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
  .ppc-status--trwa { background: var(--accent); color: var(--accent-ink); }
  .ppc-status--zakonczone { background: var(--surface); color: var(--muted); }
  .ppc-status--wkrotce { background: var(--paper); color: var(--ink); }

  .ppc-note {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start;
    padding: var(--sp-3); background: var(--paper); border-radius: 28px;
    font-size: 1rem; max-width: var(--measure);
  }
  .ppc-note::before { content: ""; grid-row: 1 / span 2; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--st-base); }
  .ppc-note > * { grid-column: 2; }
  .ppc-note strong { display: block; }
  .ppc-note--safety::before { background: var(--accent); box-shadow: inset 0 0 0 5px var(--ink); }
  .ppc-note--error { background: #f6e1dc; }
  .ppc-note--error::before { background: var(--alert); }
  .ppc-note--ok::before { background: var(--ok); }
  .ppc-note--age::before { background: var(--ink); }

  .ppc-disc { display: block; border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: var(--surface); }
  .ppc-disc img { width: 100%; height: 100%; object-fit: cover; }
}

@layer parts {
  .js .ppc-rise { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .ppc-rise.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .ppc-rise { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
