/* Base Styles — Studio Kayara */

/* Font Face Declarations */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Body */
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-medium-gray);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle noise texture overlay on body */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-midnight);
  line-height: 1.1;
  font-kerning: normal;
}

h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--text-h4);
  font-weight: 600;
}

h5, .label {
  font-family: var(--font-body);
  font-size: var(--text-h5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-soft-blue);
}

/* Body Text */
.text-lg {
  font-size: var(--text-body-lg);
  line-height: 1.8;
}

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

/* Links */
a {
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-soft-blue);
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--color-soft-blue);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background-color: rgba(196, 168, 130, 0.4);
  color: var(--color-midnight);
}

/* Images */
img {
  height: auto;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-midnight);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  z-index: calc(var(--z-header) + 1);
  font-size: var(--text-small);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Italic/Quote styling */
.italic {
  font-style: italic;
}

blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-h4);
  line-height: 1.5;
  color: var(--color-midnight);
}

/* Section label — refined with decorative line */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-h5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-soft-blue);
  margin-bottom: var(--space-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-soft-blue);
  opacity: 0.6;
}

.section-title {
  margin-bottom: var(--space-xl);
}

.section-subtitle {
  font-size: var(--text-body-lg);
  max-width: 600px;
  color: var(--color-medium-gray);
  line-height: 1.8;
}

/* Decorative thin divider between sections */
.section-divider {
  height: 1px;
  background: var(--gradient-divider);
  border: none;
  margin: 0;
  opacity: 0.5;
}
