/*
Theme Name: Penbrae & Co
Theme URI: https://penbrae.co.uk
Author: Penbrae & Co Ltd
Author URI: https://penbrae.co.uk
Description: Bespoke editorial e-commerce theme for Penbrae & Co Ltd — rare, handcrafted teas, spices, and chillies from Northeast India to Cardiff.
Version: 1.0.0
Tested up to: 7.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: penbrae
*/

/* ==========================================================================
   PENBRAE & CO DESIGN SYSTEM — ARCHIVAL BOTANICAL & TERRACOTTA
   ========================================================================== */

:root {
  /* Color Palette */
  --color-parchment: #F7F4EE;
  --color-parchment-light: #FAF8F4;
  --color-parchment-card: #EFECE3;
  --color-parchment-deep: #E5DFD3;
  --color-forest: #17271F;
  --color-forest-rich: #1E332A;
  --color-forest-light: #2D4A3D;
  --color-terracotta: #B9532D;
  --color-terracotta-hover: #9E4322;
  --color-terracotta-light: #F4E8E2;
  --color-brass: #9E7D47;
  --color-brass-light: #C4A774;
  --color-brass-subtle: rgba(158, 125, 71, 0.15);
  --color-charcoal: #2A2E2B;
  --color-muted: #646B66;
  --color-border: rgba(23, 39, 31, 0.12);
  --color-border-light: rgba(23, 39, 31, 0.06);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', SFMono-Regular, Consolas, monospace;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width-site: 1320px;
  --max-width-narrow: 880px;
  --max-width-reading: 720px;
  --header-height: 76px;
  --announcement-height: 38px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(23, 39, 31, 0.04);
  --shadow-card: 0 8px 24px rgba(23, 39, 31, 0.06);
  --shadow-elevated: 0 16px 40px rgba(23, 39, 31, 0.10);
  --shadow-drawer: -8px 0 32px rgba(23, 39, 31, 0.16);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-parchment);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Archival Paper Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-forest);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width-site);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.container-reading {
  max-width: var(--max-width-reading);
}
