/*
Theme Name: lacompaniacubana.pl
Theme URI: https://ftech-online.pl/
Author: F-Tech Online
Description: Blog dla osób, które jadą na Kubę po raz pierwszy lub wracają. Konkretne informacje o pieniądzach, transporcie, noclegach w casas particulares, miejscach poza Hawaną i tym, czego nie ma w przewodnikac
Version: 1.0.0
Text Domain: lacompaniacubana-pl-70efdf
Tags: classic-theme, blog, editorial, custom-menu, custom-logo, featured-images
Requires at least: 6.0
Requires PHP: 8.1
*/

/* ============================================================
   F-Tech Site Forge — Editorial Cream skin
   Classic theme. Deterministyczny styling z CSS variables.
   Wszystkie kolory/fonty podstawiane przez SkinDeployer z palety AI.
   ============================================================ */

:root {
  /* Palette — wstawiane przez deployer */
  --sf-bg: #F8F4EC;
  --sf-fg: #0F1F3A;
  --sf-primary: #B83A2F;
  --sf-secondary: #1E3A8A;
  --sf-muted: #5B6B85;
  --sf-surface: #EBE5D7;

  /* Derived (computed at runtime) */
  --sf-primary-fade: color-mix(in srgb, var(--sf-primary) 12%, transparent);
  --sf-shadow-sm: 0 1px 2px rgba(11, 12, 15, 0.04), 0 1px 3px rgba(11, 12, 15, 0.06);
  --sf-shadow-md: 0 4px 12px rgba(11, 12, 15, 0.06), 0 2px 4px rgba(11, 12, 15, 0.04);
  --sf-shadow-lg: 0 16px 40px rgba(11, 12, 15, 0.08), 0 4px 8px rgba(11, 12, 15, 0.04);

  /* Typography — wstawiane przez deployer */
  --sf-font-heading: 'Fraunces', serif;
  --sf-font-body: 'Karla', sans-serif;

  /* Spacing scale */
  --sf-space-1: 0.25rem;
  --sf-space-2: 0.5rem;
  --sf-space-3: 0.75rem;
  --sf-space-4: 1rem;
  --sf-space-5: 1.5rem;
  --sf-space-6: 2rem;
  --sf-space-7: 3rem;
  --sf-space-8: 4rem;
  --sf-space-9: 6rem;
  --sf-space-10: 8rem;

  /* Layout */
  --sf-content: 720px;
  --sf-wide: 1240px;
  --sf-edge: clamp(1.25rem, 4vw, 3rem);

  /* Radius */
  --sf-radius-sm: 0.25rem;
  --sf-radius-md: 0.5rem;
  --sf-radius-lg: 1rem;
  --sf-radius-pill: 999px;

  /* Transitions */
  --sf-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sf-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset + box-sizing */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }

html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body {
  font-family: var(--sf-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--sf-fg);
  background: var(--sf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Subtle grain texture - editorial paper feel. SVG noise inline via background-image. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
body.admin-bar { padding-top: 0 !important; }

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* Headings — heading font, tight leading */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sf-font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--sf-fg);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.0625rem; }
h6 { font-size: 0.9375rem; }

p { line-height: 1.7; }

/* Site container */
.sf-site {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--sf-fg);
  color: var(--sf-bg);
  padding: 0.5rem 1rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: var(--sf-radius-sm);
}
.skip-link:focus { left: 1rem; }

/* Container */
.sf-container { max-width: var(--sf-wide); margin-inline: auto; padding-inline: var(--sf-edge); width: 100%; }
.sf-container--narrow { max-width: var(--sf-content); }

/* Section */
.sf-section { padding-block: clamp(3rem, 6vw, 5rem); }
.sf-section--surface { background: var(--sf-surface); }
.sf-section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }

/* Section header */
.sf-section-header { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sf-section-header__kicker { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sf-muted); margin-bottom: 0.625rem; font-family: var(--sf-font-body); }
.sf-section-header__title { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.sf-section-header__lead { font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--sf-muted); margin-top: 0.875rem; max-width: 620px; line-height: 1.55; }

/* Button */
.sf-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--sf-primary);
  color: var(--sf-bg);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: var(--sf-radius-sm);
  text-decoration: none;
  transition: background 200ms var(--sf-ease-out), transform 100ms;
  box-shadow: var(--sf-shadow-sm);
}
.sf-btn:hover { background: var(--sf-fg); color: var(--sf-bg); box-shadow: var(--sf-shadow-md); }
.sf-btn:active { transform: translateY(1px); }
.sf-btn--ghost { background: transparent; color: var(--sf-fg); border: 1px solid var(--sf-fg); box-shadow: none; }
.sf-btn--ghost:hover { background: var(--sf-fg); color: var(--sf-bg); }

/* Label (small caps) — używane wszędzie */
.sf-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sf-muted); }
.sf-label--primary { color: var(--sf-primary); }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--sf-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Selection */
::selection { background: var(--sf-primary); color: var(--sf-bg); }

/* WP core classes */
.alignwide { max-width: var(--sf-wide); margin-inline: auto; }
.alignfull { width: 100%; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Print */
@media print {
  .sf-site-header, .sf-site-footer, .sf-mobile-menu, .sf-toc, .sf-aside { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
