/* Świat marki czyjto: „Las o zmierzchu”. Rdzeń wspólny dla strony głównej, panelu i instrukcji: font, kolory, nagłówek z logo,
   przyciski, stopka. Elementy samej strony głównej są w home.css, warstwa panelu w app.css.
   Brief i umowa kierunku: .impeccable/surfaces/templates-home-html.md. Font: Bricolage Grotesque (SIL OFL, static/fonts/OFL.txt). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --forest-950: #082520;
  --forest-900: #0b2c25;
  --ground: #0f3d33;
  --forest-700: #15503f;
  --forest-600: #1f6b55;
  --ink: #fff8ef;
  --muted: #c9ddd3;
  --line: rgb(255 248 239 / 0.14);
  --accent: #ff9a52;
  --on-accent: #1f160f;
  --accent-ink: #3a2412;
  --signal: #9df5d0;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --gutter: clamp(1rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-color: var(--forest-600) var(--forest-900); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; overflow-x: clip; background: var(--ground); color: var(--ink);
  font: 400 1.125rem/1.5 var(--display); font-optical-sizing: auto; }
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-underline-offset: 0.22em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2rem, 76rem); margin-inline: auto; }
em { font-style: normal; color: var(--accent); }

/* Nagłówek i logo: „czyjt” z pinezką lokalizacji jako „o” */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem var(--gutter); }
.logo { display: inline-flex; align-items: baseline; gap: 0.02em; font: 800 1.75rem/1 var(--display); letter-spacing: -0.04em; text-decoration: none; color: var(--ink); }
.logo-pin { display: inline-block; width: 0.66em; height: 0.88em; transform: translateY(0.2em); }
.logo-pin svg { display: block; width: 100%; height: 100%; fill: var(--signal); }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem 1.6rem; font-weight: 600; font-size: 1.05rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.6rem; padding: 0.9rem 1.7rem; border-radius: 999px;
  border: 3px solid transparent; font: 800 1.15rem/1.1 var(--display); text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, background-color 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0.6rem 1.4rem rgb(0 0 0 / 0.25); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: currentColor; background: transparent; color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Stopka */
.foot { padding-block: 3rem; color: var(--muted); font-size: 0.98rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem 2rem; align-items: center; }
.foot .logo { font-size: 1.3rem; margin-right: 0.8rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot nav a { color: var(--ink); }

.top nav .narrow-only { display: none; }  /* krótsza etykieta tylko na telefonie, żeby menu mieściło się w jednej linii */
.foot .foot-logout { display: none; margin: 0; color: var(--ink); }  /* na telefonie „Wyloguj” jest w stopce każdej strony, nie w menu */
@media (max-width: 900px) {
  .top nav { column-gap: 0.9rem; font-size: 1rem; }
  .top nav .wide-only { display: none; }
  .top nav .narrow-only { display: inline; }
  .foot .foot-logout { display: block; }
}
