/*
Theme Name: Chaitus Media Theme
Theme URI: https://chaitusmedia.in
Author: Chaitus Media
Author URI: https://chaitusmedia.in
Description: Cinematic WordPress theme for Chaitus Media — a premium wedding photography & cinematography studio. Features a scroll-driven canvas image sequence hero, editorial layouts, and full Customizer integration.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chaitusmedia-theme
Tags: photography, portfolio, one-column, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* -------------------------------------------------------------------
   CSS RESET + BASE TOKENS
   The substantive styles live in assets/css/main.css. This file holds
   theme metadata, normalize-style resets, and the design tokens so
   anyone reading the theme root can see the brand system at a glance.
------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

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

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

:root {
  /* Brand color system — restrained, editorial, gallery-like */
  --cm-paper: #faf8f5;          /* off-white background */
  --cm-paper-deep: #f2ede5;     /* warm cream */
  --cm-ink: #1a1612;            /* near-black with warm undertone */
  --cm-ink-soft: #4a443c;       /* secondary text */
  --cm-ink-faint: #8a8275;      /* tertiary text, captions */
  --cm-line: #e8e2d6;           /* hairline rules */
  --cm-accent: #b8956a;         /* warm bronze accent */
  --cm-accent-deep: #8d6a45;    /* darker bronze */
  --cm-shadow: rgba(26, 22, 18, 0.08);

  /* Dark mode variants for hero overlays */
  --cm-night: #0d0a07;
  --cm-night-soft: #1a1612;

  /* Typography stack */
  --cm-font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --cm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --cm-font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Type scale — fluid, editorial */
  --cm-text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --cm-text-sm: clamp(0.85rem, 0.83rem + 0.1vw, 0.92rem);
  --cm-text-base: clamp(1rem, 0.98rem + 0.15vw, 1.08rem);
  --cm-text-lg: clamp(1.15rem, 1.08rem + 0.4vw, 1.35rem);
  --cm-text-xl: clamp(1.5rem, 1.35rem + 0.8vw, 2rem);
  --cm-text-2xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --cm-text-3xl: clamp(2.75rem, 2.2rem + 2.8vw, 4.5rem);
  --cm-text-4xl: clamp(3.5rem, 2.6rem + 4.5vw, 7rem);

  /* Spacing rhythm */
  --cm-space-xs: 0.5rem;
  --cm-space-sm: 1rem;
  --cm-space-md: 2rem;
  --cm-space-lg: 4rem;
  --cm-space-xl: 6rem;
  --cm-space-2xl: 10rem;

  /* Layout container widths */
  --cm-container: 1440px;
  --cm-container-narrow: 960px;
  --cm-container-wide: 1680px;
  --cm-gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --cm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --cm-ease-in-out: cubic-bezier(0.7, 0, 0.3, 1);
  --cm-dur-fast: 240ms;
  --cm-dur-base: 480ms;
  --cm-dur-slow: 880ms;

  /* Layered z-index */
  --cm-z-canvas: 1;
  --cm-z-content: 2;
  --cm-z-header: 50;
  --cm-z-overlay: 100;
  --cm-z-modal: 1000;
}

/* WordPress core required classes */
.alignleft   { float: left;  margin-right: 1.5rem; }
.alignright  { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide   { max-width: var(--cm-container-wide); margin-left: auto; margin-right: auto; }
.alignfull   { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--cm-paper);
  clip: auto !important;
  -webkit-clip-path: none;
          clip-path: none;
  color: var(--cm-ink);
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: 1rem 1.5rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.gallery-caption,
.bypostauthor,
.sticky,
.wp-caption,
.wp-caption-text {
  /* Required for theme review compliance */
}
