/* ============================================================
   HOMECRAFT FURNITURE — DESIGN SYSTEM
   style.css — Global tokens, reset, typography, layout
   Version: Step 2 — Design System Complete
   Fonts: loaded via <link> in each page <head> (faster than @import)
   ============================================================ */

/* ─── 2. DESIGN TOKENS ────────────────────────────────────── */
:root {
  /* Brand Palette */
  --color-cream:          #F6F0E7;
  --color-cream-dark:     #EDE3D1;
  --color-cream-light:    #FAF7F2;
  --color-burgundy:       #591D38;
  --color-burgundy-light: #7A2B4F;
  --color-burgundy-dark:  #3D1228;
  --color-purple:         #6A4A80;
  --color-purple-light:   #8B6AA0;
  --color-purple-dark:    #4E3360;
  --color-gold:           #C99543;
  --color-gold-light:     #DDB060;
  --color-gold-dark:      #A87A30;
  --color-charcoal:       #1E1E1E;
  --color-charcoal-light: #3A3A3A;
  --color-white:          #FFFFFF;
  --color-text-muted:     #6B6059;
  --color-border:         #E0D5C5;
  --color-border-light:   #EDE5D8;

  /* Semantic Aliases */
  --bg-primary:    var(--color-cream);
  --bg-secondary:  var(--color-cream-light);
  --bg-dark:       var(--color-charcoal);
  --text-primary:  var(--color-charcoal);
  --text-secondary:var(--color-text-muted);
  --text-accent:   var(--color-burgundy);
  --text-gold:     var(--color-gold);
  --border-color:  var(--color-border);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Font Sizes — fluid scale */
  --text-xs:   0.75rem;    /*  12px */
  --text-sm:   0.875rem;   /*  14px */
  --text-base: 1rem;       /*  16px */
  --text-lg:   1.125rem;   /*  18px */
  --text-xl:   1.25rem;    /*  20px */
  --text-2xl:  1.5rem;     /*  24px */
  --text-3xl:  1.875rem;   /*  30px */
  --text-4xl:  2.25rem;    /*  36px */
  --text-5xl:  3rem;       /*  48px */
  --text-6xl:  3.75rem;    /*  60px */
  --text-7xl:  4.5rem;     /*  72px */

  /* Line Heights */
  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  /* Letter Spacing */
  --tracking-tight:   -0.02em;
  --tracking-normal:   0em;
  --tracking-wide:     0.05em;
  --tracking-wider:    0.1em;
  --tracking-widest:   0.2em;

  /* Spacing Scale */
  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(30, 20, 10, 0.06);
  --shadow-sm:  0 2px 8px rgba(30, 20, 10, 0.08);
  --shadow-md:  0 4px 20px rgba(30, 20, 10, 0.10);
  --shadow-lg:  0 8px 40px rgba(30, 20, 10, 0.14);
  --shadow-xl:  0 16px 60px rgba(30, 20, 10, 0.18);
  --shadow-gold: 0 4px 20px rgba(201, 149, 67, 0.25);

  /* Motion */
  --ease-smooth:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in:      cubic-bezier(0.4, 0, 1, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);

  --duration-fast:   150ms;
  --duration-base:   300ms;
  --duration-slow:   500ms;
  --duration-slower: 800ms;

  /* Layout */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1280px;
  --container-2xl: 1440px;
  --container-pad: clamp(1.25rem, 5vw, 5rem);

  /* Header & Ribbon */
  --ribbon-height:     36px;
  --header-height:     72px;
  --header-height-sm:  60px;
  /* Total offset from viewport top = ribbon + header */
  --header-offset:     calc(var(--ribbon-height) + var(--header-height));

  /* Z-index scale */
  --z-below:   -1;
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

  /* Form Controls */
  --input-height:      48px;
  --input-height-sm:   40px;
  --input-padding-x:   var(--space-5);
  --input-padding-y:   var(--space-3);
  --input-border:      1px solid var(--color-border);
  --input-radius:      0;
  --input-bg:          var(--color-white);
  --input-bg-focus:    var(--color-cream-light);
  --input-color:       var(--color-charcoal);
  --input-placeholder: var(--color-text-muted);
  --input-focus-ring:  var(--color-gold);

  /* Image Treatment */
  --img-overlay-dark:  rgba(30, 10, 15, 0.45);
  --img-overlay-warm:  rgba(89, 29, 56, 0.55);
  --img-ratio-hero:    56.25%;   /* 16:9 */
  --img-ratio-wide:    75%;      /* 4:3  */
  --img-ratio-portrait:133.33%;  /* 3:4  */
}

/* ─── 3. MODERN CSS RESET ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remove list styles on elements with a list role */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── 4. TYPOGRAPHY SYSTEM ────────────────────────────────── */

/* Display Headings */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(var(--text-5xl), 7vw, var(--text-7xl));
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 400;
  line-height: var(--leading-snug);
}

/* Section Headings */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  font-weight: 500;
  line-height: var(--leading-snug);
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 500;
  line-height: var(--leading-snug);
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-weight: 600;
  line-height: var(--leading-snug);
}

/* Body Text */
.body-lg {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
}

.body-base {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.body-sm {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* Labels & UI Text */
.label-lg {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.label-sm {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* Accent & Italic */
.text-italic {
  font-style: italic;
}

.text-gold {
  color: var(--color-gold);
}

.text-burgundy {
  color: var(--color-burgundy);
}

.text-purple {
  color: var(--color-purple);
}

.text-muted {
  color: var(--text-secondary);
}

/* Gold Divider */
.gold-rule {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.gold-rule::before,
.gold-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.4;
}

/* Section Eyebrow */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  display: block;
}

/* Section eyebrow with optional gold line accent */
.eyebrow-lined {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-6);
}

.eyebrow-lined::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.6;
  flex-shrink: 0;
}

/* Blockquote / pull-quote style */
.pull-quote {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-6);
  margin-block: var(--space-8);
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-style: italic;
  font-weight: 300;
  color: var(--color-charcoal);
  line-height: var(--leading-snug);
}

.pull-quote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
}

/* ─── 5. LAYOUT SYSTEM ────────────────────────────────────── */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.container-lg {
  max-width: var(--container-2xl);
}

/* Sections */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section-sm {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20));
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-12), 5vw, var(--space-16));
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--space-6);
}

/* Flex Utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ─── PAGE HERO PATTERN ───────────────────────────────────── */
/* Shared by all inner pages (collections, about, contact)    */

.page-hero {
  padding-top: clamp(var(--space-8), 4vw, var(--space-16));
  padding-bottom: clamp(var(--space-8), 4vw, var(--space-16));
  padding-inline: var(--container-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}

.page-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-4);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
  font-weight: 300;
  color: var(--color-cream);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.page-hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(var(--text-base), 2.5vw, var(--text-xl));
  font-weight: 300;
  color: rgba(246, 240, 231, 0.72);
  font-style: italic;
  line-height: var(--leading-normal);
  max-width: 560px;
  margin-inline: auto;
}

/* ─── 6. SCROLL REVEAL ANIMATIONS ────────────────────────── */

/* Items start hidden; JS adds .is-visible when in viewport */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--duration-slower) var(--ease-smooth),
    transform var(--duration-slower) var(--ease-smooth);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered delays for child elements */
[data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal-delay="2"] { transition-delay: 200ms; }
[data-reveal-delay="3"] { transition-delay: 300ms; }
[data-reveal-delay="4"] { transition-delay: 400ms; }
[data-reveal-delay="5"] { transition-delay: 500ms; }
[data-reveal-delay="6"] { transition-delay: 600ms; }

/* ─── 7. BACKGROUNDS ──────────────────────────────────────── */

.bg-cream      { background-color: var(--color-cream); }
.bg-cream-light{ background-color: var(--color-cream-light); }
.bg-dark       { background-color: var(--color-charcoal); color: var(--color-cream); }
.bg-burgundy   { background-color: var(--color-burgundy); color: var(--color-cream); }
.bg-purple     { background-color: var(--color-purple); color: var(--color-cream); }
.bg-gold       { background-color: var(--color-gold); color: var(--color-charcoal); }

/* Grain texture overlay for dark sections */
.bg-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

/* ─── 8. UTILITY CLASSES ──────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.w-full       { width: 100%; }
.h-full       { height: 100%; }
.object-cover { object-fit: cover; }

.aspect-square   { aspect-ratio: 1 / 1; }
.aspect-video    { aspect-ratio: 16 / 9; }
.aspect-portrait { aspect-ratio: 3 / 4; }
.aspect-wide     { aspect-ratio: 4 / 3; }

.overflow-hidden { overflow: hidden; }
.relative        { position: relative; }
.absolute        { position: absolute; }
.inset-0         { inset: 0; }
.z-raised        { z-index: var(--z-raised); }

/* Thin gold horizontal rule */
.divider-gold {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold) 20%, var(--color-gold) 80%, transparent);
  opacity: 0.35;
  margin-block: var(--space-8);
}

/* Thick decorative rule — burgundy */
.divider-burgundy {
  border: none;
  height: 2px;
  background-color: var(--color-burgundy);
  opacity: 0.15;
  margin-block: var(--space-6);
}

/* ─── 9. FOCUS & ACCESSIBILITY ────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ─── 10. FORM CONTROLS ──────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-charcoal-light);
}

.form-label .required {
  color: var(--color-burgundy);
  margin-left: var(--space-1);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: var(--input-height);
  padding: var(--input-padding-y) var(--input-padding-x);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--input-color);
  background-color: var(--input-bg);
  border: var(--input-border);
  border-radius: var(--input-radius);
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color var(--duration-base) var(--ease-smooth),
    background-color var(--duration-base) var(--ease-smooth),
    box-shadow var(--duration-base) var(--ease-smooth);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--input-placeholder);
  opacity: 1;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-gold);
  background-color: var(--input-bg-focus);
  box-shadow: 0 0 0 3px rgba(201, 149, 67, 0.15);
}

.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-burgundy);
}

.form-textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
  line-height: var(--leading-normal);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%231E1E1E'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-burgundy);
  font-weight: 500;
  margin-top: var(--space-1);
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
  border-color: var(--color-burgundy);
}

/* Inline form row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── 11. IMAGE TREATMENTS ────────────────────────────────── */

/* Responsive ratio wrapper */
.img-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  background-color: var(--color-cream-dark);
}

.img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-smooth);
}

/* Hover zoom */
.img-zoom:hover img {
  transform: scale(1.05);
}

/* Ratios */
.img-hero     { padding-top: 56.25%; } /* 16:9 */
.img-wide     { padding-top: 75%;    } /* 4:3  */
.img-square   { padding-top: 100%;   } /* 1:1  */
.img-portrait { padding-top: 133%;   } /* 3:4  */
.img-cinema   { padding-top: 42.8%;  } /* 21:9 */

/* Dark overlay scrim */
.img-wrap::after {
  content: none; /* opt-in only */
}

.img-scrim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--img-overlay-dark);
  pointer-events: none;
  transition: background var(--duration-slow) var(--ease-smooth);
}

.img-scrim-warm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--img-overlay-warm);
  pointer-events: none;
}

/* Caption below image */
.img-caption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  padding-top: var(--space-2);
  letter-spacing: var(--tracking-wide);
}

/* Image with border frame (editorial look) */
.img-framed {
  outline: 1px solid var(--color-border);
  outline-offset: 6px;
}

/* ─── 12. RESPONSIVE BREAKPOINTS (reference) ─────────────── */
/* Usage: @media (max-width: 768px) { … }                      */
/* xs: 480px | sm: 640px | md: 768px | lg: 1024px | xl: 1280px */

@media (max-width: 768px) {
  :root {
    --ribbon-height: 32px;
    --header-height: 60px;
    --header-offset: calc(var(--ribbon-height) + var(--header-height));
    --container-pad: 1.25rem;
  }
}

/* Mobile typography & layout adjustments */
@media (max-width: 480px) {
  :root {
    --ribbon-height: 32px;
    --header-height: 56px;
    --header-offset: calc(var(--ribbon-height) + var(--header-height));
    --container-pad: 1rem;
  }
  .display-xl { font-size: clamp(var(--text-4xl), 10vw, var(--text-5xl)); }
  .display-lg { font-size: clamp(var(--text-3xl), 9vw, var(--text-4xl)); }
  .display-md { font-size: clamp(var(--text-2xl), 8vw, var(--text-3xl)); }
  .heading-xl { font-size: var(--text-3xl); }
  .heading-lg { font-size: var(--text-2xl); }
  .section {
    padding-block: clamp(var(--space-10), 8vw, var(--space-16));
  }
  .btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-xs);
  }
}

@media (max-width: 360px) {
  :root {
    --container-pad: 0.875rem;
  }
  .section {
    padding-block: var(--space-8);
  }
}
