/* 0xfff — studio site stylesheet. Zero external requests: no fonts, no
   CDN, no icons, no analytics. Everything below is CSS + system font
   stacks + inline SVG defined in index.html.

   TOKEN SOURCE OF TRUTH
   Colors, radii and font stacks are carried over verbatim from
   docs/design/strona-www/style.css (the Tacet product site) so the studio
   page and the product page read as one family. This page is the calmer,
   one-level-up sibling, though: no animated demo, no feature grid, no FAQ.
   One column, more air, editorial type. The layout system below is its
   own — built for a manifesto and a single portfolio entry, not a product
   dashboard — but it draws every color and typeface from the same well. */

:root {
  color-scheme: dark;

  /* surfaces */
  --s0: #12101c;
  --s1: #1c1830;
  --s2: #272140;

  /* text */
  --text-primary: #f5f3ff;
  --text-secondary: #a5a0c2;

  /* accent (violet) + tertiary (amber) — verbatim from the product site */
  --accent: #a78bfa;
  --accent-deep: #7c3aed;
  --accent-wash: rgba(167, 139, 250, 0.18);
  --tertiary: #fbbf24;

  /* borders */
  --hairline: rgba(245, 243, 255, 0.08);
  --outline: #47406b;

  /* invariant tracking color — reused exactly once, as a small "this is
     live" signal beside the Tacet link, never as page decoration */
  --track-following: #00ff00;

  /* type */
  --font-display: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", monospace;

  --radius: 14px;
  --max: 1080px;
  --measure: 640px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --s0: #faf9fc;
    --s1: #ffffff;
    --s2: #f1eef8;

    --text-primary: #1c1830;
    --text-secondary: #5b5578;

    --accent: #7c3aed;
    --accent-deep: #5b21b6;
    --accent-wash: rgba(124, 58, 237, 0.1);
    --tertiary: #92400e;

    --hairline: rgba(28, 24, 48, 0.08);
    --outline: #d8d2ee;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--s0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

svg {
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- brand mark (defined once as a <symbol> in index.html,
   reused via <use>) — corner brackets read as a viewfinder, the frame a
   tool can step out of; the layered squares at its center are three
   translucent fields stacked on the same point, each layer building
   toward one denser center. Neither is captioned anywhere on the page. */

.mark {
  color: var(--text-primary);
}

.mark--nav {
  width: 26px;
  height: 26px;
  flex: none;
}

.mark--dinkus {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin: 0 auto;
}

/* ---------- nav ---------- */

.brand-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--s0) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.brand-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-lockup .word {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.nav-contact {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}

.nav-contact:hover {
  color: var(--text-primary);
  border-color: var(--outline);
}

/* ---------- hero ---------- */

.hero {
  padding: 6.5rem 0 5rem;
  background: radial-gradient(
    80% 60% at 50% -10%,
    var(--accent-wash),
    transparent 60%
  );
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.4rem);
  max-width: 16ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---------- manifesto ---------- */

.manifesto {
  padding: 1rem 0 5.5rem;
  border-bottom: 1px solid var(--hairline);
}

.manifesto .wrap {
  max-width: var(--measure);
}

.manifesto p {
  margin: 0 0 1.6rem;
  color: var(--text-primary);
  font-size: 1.08rem;
}

.manifesto p:first-of-type {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.55rem);
  line-height: 1.45;
  color: var(--text-primary);
}

.manifesto p:last-of-type {
  margin-bottom: 0;
}

.dinkus {
  margin: 2.6rem 0;
  text-align: center;
}

.signoff {
  margin-top: 3rem !important;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary) !important;
}

/* ---------- work (portfolio) ---------- */

.work {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.work .wrap {
  max-width: var(--measure);
}

.work-card {
  background: var(--s1);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 2.25rem;
}

.work-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}

.work-card p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--outline);
  padding-bottom: 2px;
  transition: border-color 150ms ease, color 150ms ease;
}

.work-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.work-link .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--track-following);
  box-shadow: 0 0 6px var(--track-following);
  flex: none;
}

/* ---------- contact ---------- */

.contact {
  padding: 5.5rem 0;
  text-align: center;
}

.contact h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 1.1rem;
  font-weight: 600;
}

.contact-mail {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem);
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--outline);
  padding-bottom: 3px;
  transition: color 150ms ease, border-color 150ms ease;
}

.contact-mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

footer {
  padding: 2.75rem 0 3.25rem;
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-inner a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--outline);
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}

.footer-inner a:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

/* ---------- small screens ---------- */

@media (max-width: 480px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .work-card {
    padding: 1.75rem;
  }

  .contact,
  .work,
  .manifesto {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* =====================================================================
   HUB HOME PAGES (en/, pl/) — additions only, nothing above this line is
   touched. The studio page (index.html) keeps its original markup and is
   unaffected: every rule below either targets a class that only the hub
   markup uses, or is tag-qualified (e.g. `a.brand-lockup`) so it silently
   no-ops against index.html's plain <span> equivalents.
   ===================================================================== */

/* ---------- nav: logo becomes a link on the hub; Products/Contact/PL
   cluster reuses .nav-contact (defined above) for identical treatment
   across every plain text link in the header. ---------- */

a.brand-lockup:hover .word,
a.brand-lockup:hover .mark {
  color: var(--accent);
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  row-gap: 0.4rem;
}

.nav-cluster nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.lang-sep {
  color: var(--text-secondary);
  opacity: 0.45;
}

.lang-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Nav row grows past a fixed 4rem when the cluster wraps to a second line
   on narrow viewports, instead of clipping it. */
.brand-nav .wrap {
  height: auto;
  min-height: 4rem;
  padding-block: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- manifesto: hub variant ----------
   The hub folds the old standalone .hero section's opening gradient into
   the manifesto itself, and promotes the manifesto's opening line to an
   <h1> — the page's one thesis heading — instead of a plain <p>. Opt-in
   via .manifesto--home so index.html's .manifesto (no <h1> child) renders
   exactly as before. */

.manifesto--home {
  padding-top: 5rem;
  background: radial-gradient(80% 60% at 50% -10%, var(--accent-wash), transparent 60%);
}

.manifesto--home h1 {
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.32;
  font-size: clamp(1.5rem, 1.22rem + 1.4vw, 2.15rem);
  color: var(--text-primary);
  text-wrap: balance;
}

/* CSS :first-of-type matches per element TYPE, not visual order — once the
   opening line becomes <h1>, the shared `.manifesto p:first-of-type` rule
   above would otherwise latch onto the *second* paragraph (the first <p>
   sibling). Explicitly un-set what that rule sets, scoped to the hub. */
.manifesto--home p.body-copy:first-of-type {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1.08rem;
  line-height: 1.65;
}

/* ---------- capabilities: three disciplines (no link, deliberately) +
   one product feature (linked, visually the strongest element on the
   page). The disciplines are a definition list, not cards — there is no
   box, no hover state, no cursor affordance, because there is nothing to
   click; the <dl> term/description pattern reads as a fact sheet, not a
   menu. The product feature is the only bordered, hoverable surface in
   the section, which is what carries the "click here" signal alone. ---- */

.capabilities {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.discipline-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 760px) {
  .discipline-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.discipline {
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--hairline);
}

.discipline:last-child {
  border-bottom: none;
}

@media (min-width: 760px) {
  .discipline {
    padding: 2.1rem 1.75rem;
    border-bottom: none;
  }
  .discipline:first-child {
    padding-left: 0;
  }
  .discipline:last-child {
    padding-right: 0;
  }
  .discipline + .discipline {
    border-left: 1px solid var(--hairline);
  }
}

.discipline dt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Echoes the brand mark's own nested-square motif as a small fixed glyph —
   deliberately not a bullet, dot-leader or arrow, so it never reads as an
   interactive affordance. */
.discipline dt::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--accent);
  opacity: 0.55;
}

.discipline dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

.product-feature {
  display: block;
  margin-top: 2.75rem;
  padding: 2.5rem;
  background: var(--s1);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.product-feature:hover {
  background: var(--s2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.product-feature:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.product-feature-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.product-feature .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--track-following);
  box-shadow: 0 0 6px var(--track-following);
  flex: none;
}

.product-feature-desc {
  margin: 1rem 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.product-feature-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--outline);
  padding-bottom: 2px;
  transition: border-color 150ms ease, color 150ms ease;
}

.product-feature:hover .product-feature-cta {
  color: var(--accent);
  border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .product-feature:hover {
    transform: none;
  }
}

/* ---------- contact: hub adds one supporting line under the mail link -- */

.contact-note {
  margin: 1.1rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- footer: hub adds a mark to the brand lockup and a nav +
   language switch beside it; index.html's plain-text footer is untouched
   since it has neither .footer-brand nor .footer-nav. ---------- */

.footer-inner a.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: none;
  color: var(--text-secondary);
}

.footer-inner a.footer-brand:hover {
  color: var(--text-primary);
}

.mark--footer {
  width: 18px;
  height: 18px;
  flex: none;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---------- hub: small screens ---------- */

@media (max-width: 480px) {
  .manifesto--home {
    padding-top: 3.5rem;
  }

  .capabilities {
    padding: 3.5rem 0;
  }

  .product-feature {
    padding: 1.75rem;
    margin-top: 2rem;
  }
}

/* ===========================================================================
   BRAMKA JĘZYKOWA (root) + strony kontaktu — dobudowane przy generatorze hubu
   (TASK-46). Root jest celowo prawie pusty: to rozstajne drogi, nie strona.
   =========================================================================== */

.lang-gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
}
.lang-gate .wrap { display: grid; gap: 1.75rem; justify-items: center; }

.brand-lockup--gate { gap: 0.85rem; font-size: 1.35rem; }
.mark--gate { width: 2.75rem; height: 2.75rem; color: var(--accent); }

.gate-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.gate-links {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
}
.gate-links a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.15rem;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.gate-links a:hover,
.gate-links a:focus-visible { color: var(--accent); border-color: var(--accent); }

/* Lista adresów na stronie kontaktu — ta sama forma co dyscypliny na home
   (fakt, nie przycisk), ale adres w środku JEST linkiem i ma to po sobie widać. */
.discipline-list--contact dd { line-height: 1.65; }
.contact-mail--inline {
  font-size: 1.02rem;
  display: inline-block;
  margin-bottom: 0.2rem;
}
