/* ==========================================================================
   Artistic Dimension — Base
   Design tokens, reset, typography, utilities
   ========================================================================== */

:root {
  /* ---- Surfaces ---- */
  --ad-page: #f4f1ec;
  --ad-surface: #faf8f5;
  --ad-surface-2: #f0ece5;
  --ad-surface-3: #e9e3d9;
  --ad-white: #ffffff;

  /* ---- Ink ---- */
  --ad-ink: #241c16;
  --ad-ink-soft: #3a2f26;
  --ad-body: #5f564c;
  --ad-muted: #8b8175;

  /* ---- Brand ---- */
  --ad-brown: #33271e;
  --ad-brown-hover: #4a3728;
  --ad-gold: #a57c4e;
  --ad-gold-soft: #c2a179;
  --ad-gold-tint: #efe6d9;
  --ad-orange: #f5821f;
  --ad-blue: #29abe2;

  /* ---- Lines & shadows ---- */
  --ad-line: #e3dcd1;
  --ad-line-soft: #ece6dc;
  --ad-shadow-sm: 0 1px 2px rgba(51, 39, 30, .04), 0 4px 14px rgba(51, 39, 30, .05);
  --ad-shadow-md: 0 2px 6px rgba(51, 39, 30, .05), 0 12px 34px rgba(51, 39, 30, .07);
  --ad-shadow-lg: 0 8px 22px rgba(51, 39, 30, .07), 0 26px 60px rgba(51, 39, 30, .1);

  /* ---- Type ---- */
  --ad-font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --ad-font-sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Fluid scale — calibrated against the supplied 1440px mockups */
  --ad-fs-hero: clamp(2.35rem, 1.35rem + 2.6vw, 3.7rem);
  --ad-fs-h1: clamp(2.1rem, 1.3rem + 2.1vw, 3.2rem);
  --ad-fs-h2: clamp(1.6rem, 1.15rem + 1.15vw, 2.2rem);
  --ad-fs-h3: clamp(1.25rem, 1.05rem + 0.62vw, 1.72rem);
  --ad-fs-h4: clamp(1.05rem, 0.97rem + 0.24vw, 1.22rem);
  --ad-fs-lead: clamp(0.88rem, 0.84rem + 0.13vw, 0.99rem);
  --ad-fs-body: clamp(0.86rem, 0.83rem + 0.11vw, 0.94rem);
  --ad-fs-small: clamp(0.78rem, 0.76rem + 0.08vw, 0.85rem);
  --ad-fs-label: clamp(0.64rem, 0.62rem + 0.08vw, 0.72rem);

  /* ---- Rhythm ---- */
  --ad-container: 1560px;
  --ad-gutter: clamp(1.15rem, 0.55rem + 2.2vw, 3.2rem);
  --ad-section-y: clamp(2.6rem, 1.6rem + 2.8vw, 4.5rem);
  --ad-gap: clamp(0.9rem, 0.55rem + 1vw, 1.5rem);

  /* ---- Motion ---- */
  --ad-ease: cubic-bezier(.22, .61, .36, 1);
  --ad-ease-out: cubic-bezier(.16, 1, .3, 1);
  --ad-t-fast: .22s;
  --ad-t: .42s;
  --ad-t-slow: .8s;

  /* ---- Radii ---- */
  --ad-r-sm: 8px;
  --ad-r: 14px;
  --ad-r-lg: 22px;
  --ad-r-xl: 34px;
  --ad-r-pill: 999px;

  --ad-header-h: clamp(66px, 4.6vw, 86px);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ad-header-h) + 20px);
}

body {
  margin: 0;
  background: var(--ad-page);
  color: var(--ad-body);
  font-family: var(--ad-font-sans);
  font-size: var(--ad-fs-body);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--ad-font-display);
  font-weight: 500;
  color: var(--ad-ink);
  line-height: 1.14;
  letter-spacing: -.005em;
}

h1 { font-size: var(--ad-fs-h1); }
h2 { font-size: var(--ad-fs-h2); }
h3 { font-size: var(--ad-fs-h3); }
h4 { font-size: var(--ad-fs-h4); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ad-t-fast) var(--ad-ease);
}

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

figure { margin: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--ad-line);
  margin: 0;
}

::selection {
  background: var(--ad-gold);
  color: #fff;
}

/* Focus visibility — accessibility */
:focus-visible {
  outline: 2px solid var(--ad-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.ad-container {
  width: 100%;
  max-width: var(--ad-container);
  margin-inline: auto;
  padding-inline: var(--ad-gutter);
}

.ad-container--wide { max-width: 1720px; }
.ad-container--narrow { max-width: 980px; }

.ad-section { padding-block: var(--ad-section-y); }
/* Inner-page sections carry symmetric padding so the vertical rhythm between
   bands matches the breathing room established on the home page. */
.ad-section--tight { padding-block: clamp(2.1rem, 1.3rem + 2.3vw, 3.6rem); }
.ad-section--flush-top { padding-top: 0; }

.ad-surface { background: var(--ad-surface); }

.ad-panel {
  background: var(--ad-surface);
  border: 1px solid var(--ad-line-soft);
  border-radius: var(--ad-r-lg);
  box-shadow: var(--ad-shadow-sm);
}

/* ==========================================================================
   Typography components
   ========================================================================== */

.ad-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--ad-font-sans);
  font-size: var(--ad-fs-label);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ad-ink-soft);
  margin: 0 0 1.15rem;
}

.ad-eyebrow--muted { color: var(--ad-muted); }

.ad-eyebrow--rule::after {
  content: "";
  width: clamp(18px, 2vw, 30px);
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.ad-eyebrow--centered { justify-content: center; }

.ad-display {
  font-family: var(--ad-font-display);
  font-size: var(--ad-fs-hero);
  font-weight: 500;
  line-height: 1.09;
  color: var(--ad-ink);
  letter-spacing: -.012em;
}

.ad-display em,
.ad-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ad-gold);
}

.ad-title {
  font-size: var(--ad-fs-h2);
  line-height: 1.16;
}

.ad-title--sm { font-size: var(--ad-fs-h3); }

.ad-lead {
  font-size: var(--ad-fs-lead);
  line-height: 1.85;
  color: var(--ad-body);
  font-weight: 300;
}

.ad-text { color: var(--ad-body); }
.ad-text--sm { font-size: var(--ad-fs-small); line-height: 1.8; }

.ad-rule {
  width: 46px;
  height: 1px;
  background: var(--ad-gold);
  opacity: .8;
  border: 0;
  margin: 1.35rem 0;
}

.ad-rule--center { margin-inline: auto; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.ad-center { text-align: center; }
.ad-flow > * + * { margin-top: 1rem; }

.screen-reader-text,
.ad-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ad-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--ad-brown);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: var(--ad-r-sm);
  font-size: .85rem;
  transition: top var(--ad-t-fast) var(--ad-ease);
}
.ad-skip-link:focus { top: 12px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

/* The entrance state is applied only when scripting is available, so content
   is never hidden from a browser that cannot reveal it again. */
.ad-js .ad-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .85s var(--ad-ease-out),
    transform .85s var(--ad-ease-out);
  transition-delay: var(--ad-delay, 0ms);
  will-change: opacity, transform;
}

.ad-js .ad-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.ad-js .ad-reveal--fade { transform: none; }
.ad-js .ad-reveal--left { transform: translateX(-30px); }
.ad-js .ad-reveal--right { transform: translateX(30px); }
.ad-js .ad-reveal--zoom { transform: scale(.965); }

/* Below the desktop breakpoints the gutters are too narrow for a horizontal
   entrance, so everything rises instead. */
@media (max-width: 900px) {
  .ad-js .ad-reveal--left,
  .ad-js .ad-reveal--right { transform: translateY(22px); }
}

@media print {
  .ad-reveal { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .ad-reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Contact page — cool grey ground
   Added 2.1.5 at the studio's request. Only the surface and line tokens are
   re-declared; ink, gold and brown stay exactly as they are, so the type and
   accents remain on-brand and the page still reads as the same site rather
   than a different one. Scoped to the body class, so nothing else moves.
   -------------------------------------------------------------------------- */

.ad-page-contact {
  --ad-page: #f2f1ef;
  --ad-surface: #f9f9f8;
  --ad-surface-2: #ebeae8;
  --ad-surface-3: #e2e1de;
  --ad-line: #dedddb;
  --ad-line-soft: #e9e8e6;
  --ad-gold-tint: #e8e6e2;
}
