/* =========================================================
   BRIAR COLLECTIVE — production styles
   briarcollective.com
   Palette: bone, charcoal, sage, umber (reserved)
   Type: Fraunces (display) + Inter (UI/body)
   ========================================================= */

:root {
  --bone: #F4F1EA;
  --bone-deep: #ECE7DC;
  --ink: #2B2E2B;
  --ink-soft: #4A4E48;
  --ink-quiet: #6B6F66;
  --sage: #7C8B6E;
  --sage-deep: #5F6C53;
  --umber: #8A5A3B;
  --rule: #D8D2C4;
  --rule-strong: #B8B2A4;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --page-max: 1160px;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms var(--ease);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 1px;
}

img { max-width: 100%; display: block; }

::selection {
  background: var(--sage);
  color: var(--bone);
}

/* ----- Shared atoms ----- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1.75rem 0;
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 2.5rem 0;
  color: var(--ink);
  max-width: 28ch;
  text-wrap: balance;
}

.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--bone);
  padding: 0.95rem 1.6rem;
  transition: all 240ms var(--ease);
  cursor: pointer;
}
.cta:hover { background: var(--bone); color: var(--ink); }

.cta--solid {
  color: var(--bone);
  background: var(--ink);
  border-color: var(--ink);
  font-family: var(--sans);
}
.cta--solid:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--bone);
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--bone);
  isolation: isolate;
  padding: 6rem var(--gutter) 4rem;
}

.hero__image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(30,31,27,0.18), rgba(30,31,27,0.55) 55%, rgba(30,31,27,0.75)),
    url("hero.jpg");
  background-size: cover;
  background-position: center 35%;
  filter: saturate(0.78) contrast(0.92);
  z-index: -2;
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(30,31,27,0.0) 0%, rgba(30,31,27,0.4) 100%);
  z-index: -1;
}

.hero__content {
  padding: 0 var(--gutter);
  max-width: 820px;
}

.eyebrow--hero {
  color: rgba(244, 241, 234, 0.78);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 6.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0 0 1.6rem 0;
  font-style: normal;
  text-wrap: nowrap;
}
.wordmark__qualifier {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.42em;
  letter-spacing: 0.06em;
  vertical-align: 0.95em;
  margin-left: 0.4em;
  color: rgba(244, 241, 234, 0.85);
}

.hero__line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.3vw, 1.55rem);
  line-height: 1.45;
  letter-spacing: 0.005em;
  margin: 0 0 1.6rem 0;
  color: rgba(244, 241, 234, 0.94);
}
.hero__line em { font-style: italic; }

.hero__sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
  margin: 0 auto 2.6rem;
  max-width: 56ch;
  color: rgba(244, 241, 234, 0.92);
  text-shadow: 0 1px 2px rgba(20, 21, 18, 0.35);
}

.hero__rule {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 3.5rem;
  background: rgba(244, 241, 234, 0.4);
}

/* ============ SECTIONS ============ */

.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) var(--gutter);
}

.section--areas { border-bottom: 1px solid var(--rule); }
.section--perspective { border-bottom: 1px solid var(--rule); }

.prose { max-width: 62ch; }
.prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 1.3rem 0;
}
.prose p:last-child { margin-bottom: 0; }
.prose__close {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ink) !important;
  font-size: 1.15rem !important;
  margin-top: 2rem !important;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  max-width: 48ch;
}

/* ----- Areas of Work (4-card grid) ----- */

.areas {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

.area {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.area__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--sage-deep);
  margin: 0 0 1.2rem 0;
  letter-spacing: 0.02em;
}

.area__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 0.9rem 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.area__body {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ----- Inquiry ----- */

.section--inquiry {
  background: var(--bone-deep);
  max-width: none;
  margin: 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
/* Use one inner container so everything shares the same left edge */
.inquiry-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.inquiry__lede {
  max-width: 60ch;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: -1.5rem 0 1.2rem 0;
}
.inquiry__lede--quiet {
  color: var(--ink-quiet);
  margin-top: 0;
  margin-bottom: 3rem;
}

.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1.6rem;
  max-width: 760px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.field--wide { grid-column: 1 / -1; }

.field__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.field input,
.field textarea {
  font-family: var(--sans);
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-soft);
  padding: 0.7rem 0;
  resize: vertical;
  outline: none;
  transition: border-color 200ms var(--ease);
  width: 100%;
  /* keep iOS from zooming on focus */
  font-size: max(16px, 1rem);
}
.field textarea {
  min-height: 4.5rem;
  line-height: 1.55;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-quiet);
  opacity: 0.6;
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--sage-deep);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.inquiry-form .cta {
  justify-self: start;
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.inquiry-form__note {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  color: var(--ink-quiet);
  margin: 0.5rem 0 0 0;
}
.inquiry-form__note a {
  color: var(--sage-deep);
  border-bottom: 1px solid currentColor;
}
.inquiry-form__note a:hover { color: var(--ink); }

/* ============ FOOTER ============ */

.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 3.5rem var(--gutter) 2.75rem;
}
.footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
}
.footer__address {
  font-style: normal; /* override <address> default italic */
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer__mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.15rem 0;
  line-height: 1.1;
}
.footer__meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(244, 241, 234, 0.7);
  margin: 0;
  line-height: 1.5;
}
.footer__meta--avail {
  color: rgba(244, 241, 234, 0.55);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer__link {
  color: inherit;
  border-bottom: 1px solid rgba(244, 241, 234, 0.25);
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.footer__link:hover {
  color: var(--bone);
  border-bottom-color: rgba(244, 241, 234, 0.65);
}
.footer__meta--quiet {
  color: rgba(244, 241, 234, 0.45);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  flex-basis: 100%;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
}

/* ============ RESPONSIVE ============ */

/* Large tablet / small desktop — 4 → 2 cols */
@media (max-width: 1024px) {
  .areas {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 2.5rem;
  }
}

/* Tablet */
@media (max-width: 760px) {
  .areas {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Phone */
@media (max-width: 720px) {
  html, body { font-size: 16px; }

  .hero { padding: 5rem 1.25rem 3.5rem; min-height: 100svh; }
  .hero__rule { display: none; }

  .wordmark {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
    letter-spacing: 0.03em;
  }
  .wordmark__qualifier {
    display: block;
    font-size: 0.32em;
    margin-left: 0;
    margin-top: 0.7em;
    vertical-align: baseline;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.75);
    font-style: normal;
  }
  .hero__line br { display: none; }
  .hero__line { max-width: 30ch; margin-left: auto; margin-right: auto; }
  .hero__sub { font-size: 0.92rem; max-width: 44ch; }

  .section { padding-top: clamp(3.5rem, 12vw, 5rem); padding-bottom: clamp(3.5rem, 12vw, 5rem); }

  .section__title {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    max-width: 22ch;
  }
  .section__title br { display: none; }

  .inquiry-form {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer__meta--avail { margin-top: 0; }
  .footer__meta--quiet { margin-top: 0.75rem; padding-top: 1rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero { padding: 4rem 1rem 3rem; }
  .wordmark { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .hero__sub { font-size: 0.88rem; }
}

/* Print */
@media print {
  .hero { min-height: auto; color: var(--ink); }
  .hero__image, .hero__veil, .hero__rule { display: none; }
  .wordmark, .hero__line, .hero__sub, .eyebrow--hero { color: var(--ink); }
  .cta { display: none; }
  .footer { background: none; color: var(--ink); }
  .footer__meta { color: var(--ink-soft); }
  body { font-size: 11pt; }
}
