/* ==========================================================================
   The Albizia — base.css
   Reset, design tokens, typography, buttons, forms.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Palette — single committed light theme. No dark variant by design. */
  --bone:   #F4F1EC;  /* page ground */
  --bone-2: #EAE6DF;  /* subtle alternate band */
  --basalt: #16161A;  /* body text, dark sections */
  --stone:  #6E6A64;  /* muted / secondary text */
  --rule:   #D8D3CB;  /* hairlines, borders */
  --fern:   #2F4F4A;  /* accent — links, emphasis */
  --ember:  #C4643A;  /* sparing accent only */

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --measure: 62ch;
  --container: 1280px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-y: clamp(6rem, 12vw, 11rem);

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

/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  /* Sharp square geometry is a core brand requirement. Nothing rounds. */
  border-radius: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--basalt);
  font-family: var(--font-sans);
  font-size: 1.0625rem;      /* 17px */
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

/* --- Typography --------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h1, .h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2, .h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3, .h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.25; }

p { max-width: var(--measure); }
p + p { margin-top: 1.35em; }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.7;
  font-weight: 300;
  color: var(--basalt);
}

/* Eyebrow label above section headings */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.muted { color: var(--stone); }

a {
  color: var(--fern);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
a:hover { border-color: var(--fern); }

/* Pull quote / large statement type */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  border: 1px solid var(--basalt);
  background: transparent;
  color: var(--basalt);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1.1rem 2.5rem;
  cursor: pointer;
  text-align: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--basalt); color: var(--bone); }

/* Inverted, for use over photography and dark bands */
.btn--light {
  border-color: rgba(244, 241, 236, 0.75);
  color: var(--bone);
}
.btn--light:hover { background: var(--bone); color: var(--basalt); border-color: var(--bone); }

.btn--solid { background: var(--basalt); color: var(--bone); }
.btn--solid:hover { background: var(--fern); border-color: var(--fern); color: var(--bone); }

/* Text link styled as a directional cue */
.link-arrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--basalt);
  border-bottom: 1px solid var(--basalt);
  padding-bottom: 0.4rem;
}
.link-arrow::after { content: ' \2192'; }
.link-arrow:hover { color: var(--fern); border-color: var(--fern); }

.link-arrow--light { color: var(--bone); border-color: rgba(244,241,236,.6); }
.link-arrow--light:hover { color: var(--bone); border-color: var(--bone); }

/* --- Forms -------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 0.6rem; }

.field label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 300;
  color: var(--basalt);
  transition: border-color .25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--stone) 50%),
                    linear-gradient(135deg, var(--stone) 50%, transparent 50%);
  background-position: calc(100% - 12px) 1.35rem, calc(100% - 7px) 1.35rem;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.field textarea { resize: vertical; min-height: 8rem; line-height: 1.7; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--basalt);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--rule); }

/* --- Accessibility ------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--basalt);
  color: var(--bone);
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--fern);
  outline-offset: 3px;
}

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