/* ==========================================================================
   Khris & George — base.css
   Design tokens, reset, typography, buttons, forms.
   Sampled palette: warm off-white page, warm grey image panels, near-black ink.
   ========================================================================== */

:root {
  /* --- Colour ------------------------------------------------------------ */
  --bg:          #f9f9f7;   /* page background          */
  --panel:       #e6e5e1;   /* image panels / cards     */
  --panel-soft:  #efeeea;   /* subtle fills             */
  --ink:         #1a1611;   /* headings, header, footer */
  --ink-soft:    #565049;   /* body copy                */
  --ink-faint:   #8b847b;   /* meta, captions           */
  --line:        #dbd7d1;   /* hairlines                */
  --line-dark:   #3a352e;   /* hairlines on dark        */
  --on-dark:     #f4f2ee;
  --on-dark-soft:#b3aca2;
  --focus:       #8a6a3b;   /* warm brass focus ring    */

  /* --- Type -------------------------------------------------------------- */
  --font-display: "Cormorant Garamond", "Didot", "Playfair Display", Georgia,
                  "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               Helvetica, Arial, sans-serif;

  --step--1: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --step-0:  clamp(0.94rem, 0.91rem + 0.15vw, 1rem);
  --step-1:  clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
  --step-2:  clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.5vw, 2.6rem);
  --step-4:  clamp(2.2rem, 1.6rem + 3vw, 4rem);

  /* --- Space & structure ------------------------------------------------- */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 2px;
  --header-h: 4.25rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
figure, blockquote { margin: 0; }

/* --- Headings ------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; }

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

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

/* --- Small caps label ----------------------------------------------------- */
.eyebrow {
  display: block;
  margin: 0 0 1.1rem;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.lede { font-size: var(--step-1); line-height: 1.75; color: var(--ink-soft); }

.rule { height: 1px; margin: 0; border: 0; background: var(--line); }

/* --- Links with an underline that grows ----------------------------------- */
.link {
  display: inline-block;
  padding-bottom: 2px;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.35s var(--ease);
}
.link:hover { background-size: 0 1px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 2.25rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }

.btn--light { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--on-dark); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* --- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 1.4rem; }

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.field .req { color: var(--focus); }

.input, .textarea, .select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.textarea { min-height: 10rem; resize: vertical; }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(138, 106, 59, 0.16);
}

.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #a4462f; }

.field-error {
  display: block;
  min-height: 1.2em;
  margin-top: 0.35rem;
  font-size: var(--step--1);
  color: #a4462f;
}

.select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a1611' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px 6px;
}

/* --- Focus & accessibility ------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translate(-50%, -120%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Motion preference ---------------------------------------------------- */
@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;
  }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .newsletter, .mobile-nav { display: none !important; }
  body { color: #000; background: #fff; }
}
