/*
Theme Name: Wanderlust
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A visual-first travel blog theme inspired by editorial travel journalism. Bold typography, blob-clipped hero images, rich inline content blocks.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wanderlust
Tags: blog, travel, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  /* Colors */
  --color-white:        #ffffff;
  --color-bg:           #ffffff;
  --color-bg-subtle:    #f7f7f7;
  --color-bg-purple:    #f0edf8;
  --color-bg-teal:      #eaf6f4;
  --color-bg-yellow:    #fdf8ec;

  --color-text:         #1a1a1a;
  --color-text-muted:   #6b6b6b;
  --color-text-light:   #999999;

  --color-purple:       #6b52c8;
  --color-purple-dark:  #4e3a9e;
  --color-purple-light: #ece8f8;
  --color-teal:         #2a9d8f;
  --color-teal-light:   #d4f0ed;
  --color-accent:       #e76f51;

  --color-border:       #e8e8e8;
  --color-border-dark:  #d0d0d0;

  /* Typography */
  --font-heading:       'Nunito', 'Arial Rounded MT Bold', sans-serif;
  --font-body:          'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:         'Georgia', 'Times New Roman', serif;

  /* Scale */
  --text-xs:    0.75rem;   /* 12px */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px */
  --text-md:    1.125rem;  /* 18px */
  --text-lg:    1.25rem;   /* 20px */
  --text-xl:    1.5rem;    /* 24px */
  --text-2xl:   1.875rem;  /* 30px */
  --text-3xl:   2.25rem;   /* 36px */
  --text-4xl:   2.75rem;   /* 44px */
  --text-5xl:   3.5rem;    /* 56px */

  /* Spacing (8px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.10);

  /* Layout */
  --container-max:   1220px;
  --content-max:     780px;
  --sidebar-width:   320px;
  --gap-layout:      48px;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ─────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ─────────────────────────────────────────
   TYPOGRAPHY BASE
───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  line-height: 1.8;
  color: var(--color-text);
}

/* ─────────────────────────────────────────
   PILL / TAG
───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.pill:hover {
  background: var(--color-purple-light);
  border-color: var(--color-purple);
  color: var(--color-purple-dark);
}

.pill--active {
  background: var(--color-purple-light);
  border-color: var(--color-purple);
  color: var(--color-purple-dark);
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-purple);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-purple-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-purple);
  border: 2px solid var(--color-purple);
}

.btn--outline:hover {
  background: var(--color-purple-light);
}

/* ─────────────────────────────────────────
   SCREEN READER ONLY
───────────────────────────────────────── */
.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;
}
