/* ═══════════════════════════════════════════════════════
   LUBINIK v2 — MAKER'S LOG
   Aesthetic: journal · handmade · warm · personal
   ═══════════════════════════════════════════════════════ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.72;
  overflow-x: hidden;
}

/* Subtle paper grain via SVG noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; background: none; }
p { margin-top: 0; color: var(--muted-strong); }
h1,h2,h3 { margin-top: 0; line-height: 1.08; }

.wrap {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-w));
  margin-inline: auto;
}

.section {
  margin-block: 0;
  padding-block: clamp(var(--sp-2xl), 5vw, var(--sp-3xl));
}

.custom-section-wrapper.section {
  margin-block: 0;
  padding-block: 0;
}

.custom-section-wrapper > .shortcode-container,
.custom-section-wrapper > .shortcode-container-full {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.custom-section-wrapper .lubinik-custom-section {
  margin: 0;
  padding: 0;
}

.custom-section-wrapper .lubinik-custom-section > .section {
  margin-block: 0;
}

#shortcode-plugin_share_buttons {
  margin: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
}

#shortcode-plugin_share_buttons > .shortcode-container,
#shortcode-plugin_share_buttons > .shortcode-container-full {
  margin: 0;
  padding: 0;
  max-width: none;
}

.body-lg {
  font-size: var(--text-md);
  color: var(--muted-strong);
  line-height: 1.7;
}

em { font-style: italic; color: var(--rose); }

/* ── Highlight marks ── */
mark {
  background: none;
  position: relative;
  display: inline;
  color: inherit;
}
mark::after {
  content: '';
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  bottom: 0.05em;
  height: 0.45em;
  border-radius: 2px;
  z-index: -1;
  opacity: 0.55;
}
.hl-rose::after  { background: var(--highlight-pink); }
.hl-orange::after { background: var(--highlight-orange); }

/* ── Handwritten label ── */
.hand-label {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--rose);
  margin-bottom: var(--sp-xs);
  transform: rotate(-1deg);
  display: inline-block;
}
.hand-label-light { color: var(--rose-mid); }

/* ── Section label ── */
.section-label {
  margin-bottom: var(--sp-2xl);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: transform var(--ease-slow), box-shadow var(--ease-base);
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--rose);
}
.btn-primary:hover { box-shadow: 6px 6px 0 var(--rose); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--paper-aged);
}
.btn-ghost:hover { box-shadow: 6px 6px 0 var(--paper-aged); }

.btn-contact {
  background: var(--rose);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: var(--text-md);
  padding: 1rem 2.2rem;
}
.btn-contact:hover { box-shadow: 7px 7px 0 var(--ink); }

/* ══════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgb(245 239 227 / 92%);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  min-height: 4.5rem;
  padding-block: var(--sp-sm);
}

.logo { height: 2.2rem; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-md), 3vw, var(--sp-xl));
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav a:not(.nav-cta) {
  color: var(--muted-strong);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color var(--ease-fast), border-color var(--ease-fast);
}
.nav a:not(.nav-cta):hover {
  color: var(--rose);
  border-color: var(--rose);
}

.nav-cta {
  background: var(--rose);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: box-shadow var(--ease-base), transform var(--ease-slow) !important;
}
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 5px 5px 0 var(--ink) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-xs);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--ease-base), opacity var(--ease-base);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-scrolled {
  border-bottom-color: var(--rose);
  box-shadow: 0 2px 20px var(--shadow-ink);
}

.nav-active {
  color: var(--rose) !important;
  border-color: var(--rose) !important;
}



/* ══════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(1.8rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-body        { grid-template-columns: 1fr; }
  .hero-annotation  { position: static; margin-top: var(--sp-md); }
  .what-grid        { grid-template-columns: 1fr; }
  .what-sticky-area { height: 16rem; }
  .ai-grid          { grid-template-columns: 1fr; }
  .story-inner      { grid-template-columns: 1fr; }
  .story-logo-col   { flex-direction: row; align-items: center; }
  .addons-grid      { grid-template-columns: repeat(2, 1fr); }
  .arch-layer       { grid-template-columns: 3rem 1fr; }
  .al-annotation    { display: none; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-xl) var(--gutter);
    background: var(--paper-warm);
    border-bottom: 2px solid var(--line);
    box-shadow: 0 8px 24px var(--shadow-ink);
    gap: var(--sp-md);
  }
  .nav.open { display: flex; }
  .burger   { display: flex; }
  .addons-grid { grid-template-columns: 1fr; }
  .hero-stats  { gap: var(--sp-sm); }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.8rem, 16vw, 4.5rem); }
  .stat-pill  { padding: var(--sp-xs) var(--sp-md); }
  .what-sticky-area { display: none; }
  .what-grid { grid-template-columns: 1fr; }
}
