/* ========================================================================
   VARIABLES
   ======================================================================== */
:root {
  /* Color Palette - ink tones, skin neutrals, subtle metallic accents */
  --color-background: #050608;          /* deep charcoal / near-black */
  --color-surface: #0c0e11;             /* elevated surface background */
  --color-surface-soft: #14171c;        /* softer panels & cards */
  --color-text: #f5f5f5;                /* primary text on dark bg */
  --color-text-muted: #a3a7b3;          /* secondary text */
  --color-border-subtle: #262a33;       /* subtle dividers */

  --color-primary: #e2b15b;             /* warm metallic gold (accents/CTAs) */
  --color-primary-soft: rgba(226, 177, 91, 0.15);
  --color-primary-strong: #f3c771;

  --color-success: #4fbf7a;             /* healthy, fresh green */
  --color-warning: #f4b73f;             /* warm amber */
  --color-danger: #f06a6a;              /* soft red */

  /* Neutral Grays for text on light or mixed surfaces */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Cormorant Garamond", "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing Scale (0–96px) */
  --space-0: 0;
  --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-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-9: 2.25rem;  /* 36px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-14: 3.5rem;  /* 56px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows - subtle but present, to echo studio lighting */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.7);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 200ms ease;
  --transition-slow: 320ms ease;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================
   RESET / NORMALIZE
   ======================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

/* Remove default margins on text elements */
h1,
 h2,
 h3,
 h4,
 h5,
 h6,
 p,
 figure,
 blockquote,
 dl,
 dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

img {
  height: auto;
}

/* Remove list style by default for nav-style lists */
ul[class],
ol[class] {
  list-style: none;
}

/* Buttons reset */
button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

/* Links reset */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ========================================================================
   BASE STYLES
   ======================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings: bold, artistic, but clean */
h1,
 h2,
 h3,
 h4,
 h5,
 h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--line-height-snug);
  color: var(--gray-50);
}

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: 0.02em;
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-md);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Vertical rhythm for text blocks */
body > * + * {
  margin-top: var(--space-6);
}

p {
  /* comfortable line length */
  color: var(--color-text);
}

p + p {
  margin-top: var(--space-3);
}

small {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

strong,
b {
  font-weight: 600;
}

/* Links: emphasized CTAs but clean */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-normal),
              opacity var(--transition-fast),
              text-shadow var(--transition-fast);
}

a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 12px rgba(226, 177, 91, 0.35);
}

a:active {
  opacity: 0.8;
}

/* Code text */
code,
pre {
  font-family: var(--font-mono);
}

/* ========================================================================
   ACCESSIBILITY & FOCUS
   ======================================================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Improve focus on dark backgrounds for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6),
              0 0 0 3px var(--color-primary);
}

/* Screen reader only utility */
.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;
}

/* ========================================================================
   UTILITIES
   ======================================================================== */
/* Container for main layout widths */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-4);
  max-width: 1120px; /* comfortable for portfolios & imagery */
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-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;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Text alignment */
.text-center {
  text-align: center;
}

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

/* Spacing utilities (margin & padding) */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }

/* Basic utility for subtle section separation */
.section {
  padding-block: var(--space-10);
}

.section--alt {
  background: radial-gradient(circle at top, rgba(226, 177, 91, 0.12) 0, transparent 55%),
              var(--color-surface);
}

/* ========================================================================
   COMPONENTS
   ======================================================================== */
/* Buttons - primary CTA for booking, etc. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-inline: var(--space-5);
  padding-block: var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color var(--transition-normal),
              color var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #050608;
  box-shadow: var(--shadow-sm);
}

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

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary-soft);
}

.btn-ghost {
  background-color: transparent;
  color: var(--gray-50);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Form inputs - clean, professional, hygienic feeling */
.input,
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(10, 12, 16, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              background-color var(--transition-normal);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7),
              0 0 0 2px var(--color-primary-soft);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[disabled],
textarea[disabled],
select[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-100);
}

/* Cards - for artist profiles, testimonials, studio standards */
.card {
  background: radial-gradient(circle at top left, rgba(226, 177, 91, 0.09) 0, transparent 60%),
              var(--color-surface-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.card--subtle {
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

/* Image frame / tattoo showcase */
.media-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000;
  box-shadow: var(--shadow-md);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badges - e.g., hygiene standards, years of experience */
.badge {
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-3);
  padding-block: 0.25rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-muted);
}

.badge--primary {
  border-color: rgba(226, 177, 91, 0.55);
  color: var(--color-primary-strong);
  background-color: rgba(226, 177, 91, 0.08);
}

.badge--success {
  border-color: rgba(79, 191, 122, 0.6);
  color: var(--color-success);
  background-color: rgba(79, 191, 122, 0.06);
}

/* Toast / Alert base - for booking feedback */
.alert {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert--success {
  background-color: rgba(79, 191, 122, 0.12);
  color: var(--gray-50);
  border: 1px solid rgba(79, 191, 122, 0.5);
}

.alert--warning {
  background-color: rgba(244, 183, 63, 0.12);
  color: var(--gray-50);
  border: 1px solid rgba(244, 183, 63, 0.5);
}

.alert--danger {
  background-color: rgba(240, 106, 106, 0.12);
  color: var(--gray-50);
  border: 1px solid rgba(240, 106, 106, 0.5);
}

/* Navigation helpers */
.nav-link {
  font-size: var(--font-size-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-block: var(--space-2);
  transition: color var(--transition-normal),
              text-shadow var(--transition-fast);
}

.nav-link--active,
.nav-link:hover {
  color: var(--gray-50);
  text-shadow: 0 0 14px rgba(226, 177, 91, 0.4);
}

/* Hero subtitle style - commonly used on landing */
.hero-kicker {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: var(--line-height-tight);
}

.hero-subtitle {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  max-width: 54ch;
}

/* Footer base */
.footer {
  padding-block: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(to top, #050608, #050608 60%, rgba(226, 177, 91, 0.02));
}

.footer-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* End of base.css */
