/*
Theme Name: MariBeer
Theme URI: https://maribeer.local
Author: MariBeer
Author URI: https://maribeer.local
Description: Editorial blog theme for MariBeer — a love letter to beer culture in Maribor. Bilingual (Slovene + English) with cream/oxblood/gold design system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: maribeer
*/

/* ============== DESIGN TOKENS ============== */
:root {
  --ink: hsl(12, 40%, 8%);
  --ink-90: hsl(12, 40%, 8%, 0.9);
  --ink-80: hsl(12, 40%, 8%, 0.8);
  --ink-75: hsl(12, 40%, 8%, 0.75);
  --ink-70: hsl(12, 40%, 8%, 0.7);
  --ink-60: hsl(12, 40%, 8%, 0.6);
  --ink-50: hsl(12, 40%, 8%, 0.5);
  --ink-40: hsl(12, 40%, 8%, 0.4);
  --ink-25: hsl(12, 40%, 8%, 0.25);
  --ink-20: hsl(12, 40%, 8%, 0.2);
  --ink-15: hsl(12, 40%, 8%, 0.15);
  --ink-10: hsl(12, 40%, 8%, 0.1);
  --cream: hsl(36, 35%, 94%);
  --cream-80: hsl(36, 35%, 94%, 0.8);
  --cream-70: hsl(36, 35%, 94%, 0.7);
  --cream-60: hsl(36, 35%, 94%, 0.6);
  --cream-50: hsl(36, 35%, 94%, 0.5);
  --cream-40: hsl(36, 35%, 94%, 0.4);
  --cream-30: hsl(36, 35%, 94%, 0.3);
  --cream-15: hsl(36, 35%, 94%, 0.15);
  --cream-10: hsl(36, 35%, 94%, 0.1);
  --oxblood: hsl(0, 65%, 28%);
  --oxblood-deep: hsl(0, 70%, 18%);
  --gold: hsl(40, 60%, 48%);
  --foam: hsl(40, 50%, 92%);
  --secondary: hsl(36, 25%, 88%);
  --secondary-40: hsl(36, 25%, 88%, 0.4);
  --gradient-hero: linear-gradient(180deg, hsl(12, 40%, 8%, 0.15) 0%, hsl(12, 40%, 8%, 0.85) 100%);
  --shadow-card: 0 12px 30px -12px hsl(12, 40%, 8%, 0.25);
  --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 2px;
}

/* ============== RESET & BASE ============== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--oxblood); color: var(--cream); }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============== TYPOGRAPHY ============== */
.font-display { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.font-body { font-family: "Work Sans", system-ui, sans-serif; }
.italic { font-style: italic; }
.text-balance { text-wrap: balance; }
.uppercase { text-transform: uppercase; }
.normal-case { text-transform: none; }

/* ============== LAYOUT ============== */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.left-4 { left: 1rem; }
.top-4 { top: 1rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.h-px { height: 1px; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-9 { height: 2.25rem; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-fit { width: fit-content; }
.w-full { width: 100%; }
.w-max { width: max-content; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.min-h-hero { min-height: 88vh; }
.min-h-screen { min-height: 100vh; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }

.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-32 { padding-top: 8rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ============== COLORS ============== */
.bg-ink { background-color: var(--ink); }
.bg-cream { background-color: var(--cream); }
.bg-cream-80 { background-color: var(--cream-80); }
.bg-oxblood, .bg-primary { background-color: var(--oxblood); }
.bg-gold { background-color: var(--gold); }
.bg-secondary-40 { background-color: var(--secondary-40); }
.bg-transparent { background: transparent; }
.bg-gradient-hero { background: var(--gradient-hero); }
.text-ink { color: var(--ink); }
.text-ink-80 { color: var(--ink-80); }
.text-ink-75 { color: var(--ink-75); }
.text-ink-70 { color: var(--ink-70); }
.text-ink-60 { color: var(--ink-60); }
.text-ink-50 { color: var(--ink-50); }
.text-cream { color: var(--cream); }
.text-cream-80 { color: var(--cream-80); }
.text-cream-70 { color: var(--cream-70); }
.text-cream-60 { color: var(--cream-60); }
.text-cream-50 { color: var(--cream-50); }
.text-cream-40 { color: var(--cream-40); }
.text-oxblood, .text-primary { color: var(--oxblood); }
.text-gold { color: var(--gold); }

.border { border: 1px solid var(--ink-15); }
.border-y { border-top: 1px solid var(--ink-15); border-bottom: 1px solid var(--ink-15); }
.border-t { border-top: 1px solid var(--ink-15); }
.border-b { border-bottom: 1px solid var(--ink-15); }
.border-cream-15 { border-color: var(--cream-15); }
.border-cream-30 { border-color: var(--cream-30); }
.border-cream-40 { border-color: var(--cream-40); }
.border-ink { border-color: var(--ink); }
.border-oxblood { border-color: var(--oxblood); }
.border-ink-15 { border-color: var(--ink-15); }
.border-ink-20 { border-color: var(--ink-20); }
.rounded-sm { border-radius: var(--radius-sm); }

/* ============== TEXT ============== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-hero { font-size: 7.5rem; line-height: 0.95; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.15; }
.leading-95 { line-height: 0.95; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-18 { letter-spacing: 0.18em; }
.tracking-20 { letter-spacing: 0.2em; }
.tracking-24 { letter-spacing: 0.24em; }
.tracking-32 { letter-spacing: 0.32em; }

.whitespace-nowrap { white-space: nowrap; }
.aspect-4-5 { aspect-ratio: 4/5; }
.object-cover { object-fit: cover; }
.opacity-80 { opacity: 0.8; }
.opacity-50 { opacity: 0.5; }
.outline-none { outline: none; }
.backdrop-blur { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ============== INTERACTIONS ============== */
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-transform { transition: transform 0.7s var(--transition-smooth); }
a.hover-primary:hover, .hover-primary:hover { color: var(--oxblood); }
.hover-bg-primary:hover { background-color: var(--oxblood); border-color: var(--oxblood); color: var(--cream); }
.hover-bg-gold:hover { background-color: var(--gold); }
.hover-bg-cream:hover { background-color: var(--cream); }
.hover-bg-cream-10:hover { background-color: var(--cream-10); }
.hover-border-primary:hover { border-color: var(--oxblood); }
.hover-text-ink:hover { color: var(--ink); }
.hover-text-primary:hover { color: var(--oxblood); }
.hover-underline:hover { text-decoration: underline; text-underline-offset: 4px; }
.group:hover .group-hover-scale { transform: scale(1.05); }
.group:hover .group-hover-scale-103 { transform: scale(1.03); }
.group:hover .group-hover-translate { transform: translateX(0.25rem); }
.group:hover .group-hover-translate-up { transform: translate(0.125rem, -0.125rem); }
.group:hover .group-hover-text-primary { color: var(--oxblood); }
.focus\:border-gold:focus { border-color: var(--gold); }
input::placeholder { color: var(--cream-40); }

/* ============== EFFECTS ============== */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.marquee { animation: marquee 40s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fade-up 0.9s var(--transition-smooth) both; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* ============== RESPONSIVE ============== */
@media (max-width: 767px) {
  .md-hidden, .md\:flex, .md\:inline, .md\:inline-block, .md\:grid-cols-3, .md\:grid-cols-4, .md\:grid-cols-12 {}
  .md-only { display: none !important; }
  .container { padding: 0 1.25rem; }
  .text-hero { font-size: 3rem; }
  .text-7xl { font-size: 3rem; }
  .text-6xl { font-size: 2.5rem; }
  .text-5xl { font-size: 2.25rem; }
}
@media (min-width: 640px) {
  .sm-flex-row { flex-direction: row; }
  .sm-text-7xl { font-size: 4.5rem; line-height: 1; }
}
@media (min-width: 768px) {
  .md-flex { display: flex; }
  .md-inline { display: inline; }
  .md-inline-block { display: inline-block; }
  .md-flex-row { flex-direction: row; }
  .md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md-grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md-col-2 { grid-column: span 2 / span 2; }
  .md-col-5 { grid-column: span 5 / span 5; }
  .md-col-7 { grid-column: span 7 / span 7; }
  .md-text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md-text-5xl { font-size: 3rem; line-height: 1; }
  .md-text-6xl { font-size: 3.75rem; line-height: 1; }
  .md-text-7xl { font-size: 4.5rem; line-height: 1; }
  .md-text-hero { font-size: 7.5rem; line-height: 0.95; }
  .md-py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md-hidden { display: none; }
  .md-items-center { align-items: center; }
}

/* ============== TOAST ============== */
#mb-toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: var(--cream); padding: 1rem 1.5rem; border-radius: 2px;
  font-size: 0.875rem; box-shadow: var(--shadow-card); z-index: 100; opacity: 0;
  transition: transform 0.4s var(--transition-smooth), opacity 0.3s; max-width: 90%;
}
#mb-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============== SINGLE POST ============== */
.single-post-content { max-width: 720px; margin: 0 auto; padding: 4rem 0; }
.single-post-content h2, .single-post-content h3 { font-family: "Instrument Serif", Georgia, serif; margin-top: 2rem; margin-bottom: 1rem; }
.single-post-content h2 { font-size: 2.25rem; }
.single-post-content h3 { font-size: 1.75rem; }
.single-post-content p { margin-bottom: 1.25rem; font-size: 1.125rem; line-height: 1.75; color: var(--ink-80); }
.single-post-content img { margin: 2rem 0; }
.single-post-content blockquote {
  border-left: 3px solid var(--oxblood); padding-left: 1.5rem; margin: 2rem 0;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 1.5rem; color: var(--ink-90);
}
.single-post-content a { color: var(--oxblood); text-decoration: underline; text-underline-offset: 3px; }

/* ============== MISSING UTILITIES ============== */
.px-1\.5, .px-1-5 { padding-left: 0.375rem; padding-right: 0.375rem; }
@media (min-width: 768px) {
  .md-text-lg { font-size: 1.125rem; line-height: 1.75rem; }
}
