/* ========================================
   Rentoule Projects - Base Reset & Tokens
   ======================================== */

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

:root {
  /* Palette */
  --black: #0e0e0c;
  --white: #f5f3ef;
  --warm: #e8e3da;
  --gold: #b8966e;
  --gold-light: #d4b48a;
  --green: #2c3d2e;
  --text: #1a1a18;
  --muted: #6b6760;

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', sans-serif;

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

  /* Layout */
  --container: 1200px;
  --container-narrow: 900px;
  --container-wide: 1400px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.4s;
  --duration-fast: 0.2s;

  /* Nav height */
  --nav-height: 72px;
}

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

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}

h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  color: var(--gold-light);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.875rem;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus {
  top: 0;
}

/* ── Noise Texture ── */
/* SVG noise applied via ::after pseudo-element for tactile grain on coloured surfaces */

/* Noise texture data URI */
:root {
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* Green texture - applied to dark green and dark sections */
.cta-band,
.breadcrumb,
.section--green,
.section--dark,
.footer {
  position: relative;
  overflow: hidden;
}
.cta-band::after,
.breadcrumb::after,
.section--green::after,
.section--dark::after,
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* Gold CTA bands get a warmer, softer grain */
.cta-band::after {
  opacity: 0.25;
  mix-blend-mode: soft-light;
}

/* Breadcrumb is a narrow strip - subtler texture */
.breadcrumb::after {
  opacity: 0.2;
}

/* Ensure all content sits above the texture overlay */
.cta-band > *,
.breadcrumb > *,
.section--green > *,
.section--dark > *,
.footer > * {
  position: relative;
  z-index: 2;
}

/* Nav sits at z-index 100, no conflict */

/* Reduced motion: disable texture animation if ever animated */
@media (prefers-reduced-motion: reduce) {
  .cta-band::after,
  .breadcrumb::after,
  .section--green::after,
  .section--dark::after,
  .footer::after {
    animation: none;
  }
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Selection */
::selection {
  background: var(--gold);
  color: var(--black);
}
