/* Provocation. Premium minimal editorial - Nimble zephyr a11y Paper pass */

:root {
  --bg: #F7F4EF;
  --bg-elevated: #FBF9F6;
  --text: #1C1B19;
  --text-muted: #5C574F; /* placeholders + muted UI */
  --border: #D9D3C8;
  --accent: #1C1B19; /* CTA fill */
  /* Paper invent: CTA hover dark olive-brown sampled from states.png */
  --cta-hover: #34290D;
  --focus: #1C1B19; /* nav + input focus ring */
  --focus-cta: #C4783A; /* CTA focus ring */
  --copper: #C4783A; /* error accents */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --narrow: 640px;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  /* Desktop shared left+right inset (was hero-only asymmetric gutter). */
  --page-gutter: 48px;
  --hero-gutter-desktop: var(--page-gutter); /* alias kept for older notes */
  --tap: 44px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space);
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2 * var(--space), var(--narrow));
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.header-inner {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 1 auto;
  min-width: 0;
  /* Room for mirrored wordmark + ~15px desktop tagline (two -20% steps from 24px) */
  max-width: min(78%, 680px);
  line-height: 1;
  text-decoration: none;
}

.brand-logo {
  display: block;
  /* ~14:1 wordmark (763×55); allow ~391px so height ~28px — old 832×100 max 300 cramped */
  width: clamp(160px, 42vw, 390px);
  max-width: 100%;
  height: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-tagline {
  display: none;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  line-height: 1.25;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  font-size: 0.9375rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.5rem 0.35rem;
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Main */

main {
  flex: 1;
}

/* a11y: lock full opacity on desktop/mobile hero (do not ship faded ~0.57) */
.hero,
.hero-headline,
.credibility {
  opacity: 1;
}

.hero {
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-headline {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 5.5vw, 3.55rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 14ch;
  color: var(--text);
}

/* Credibility: line-height + fit-content so Home Desktop does not clip */
.credibility {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  height: fit-content;
  max-height: none;
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Hero brand film: always shown (all breakpoints + reduced-motion).
   Stack on narrow; two-column from 768px. */
.hero > .container.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.hero-media {
  display: block;
  min-width: 0;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
}

.page-hero {
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 1;
}

.section-label {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.method {
  padding: 0 0 clamp(3rem, 8vw, 5rem);
}

.method-copy {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--text);
}

.about-body {
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.about-body .lead {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  color: var(--text);
}

.about-body p {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--text);
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* Privacy page: section labels inside About-style body */
.privacy-body .section-label {
  margin-top: 2rem;
}

.privacy-body .lead + .section-label {
  margin-top: 1.75rem;
}

.privacy-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.privacy-body a:hover {
  color: var(--copper, #C4783A);
}

.privacy-body .privacy-close {
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}


/* Contact form */

.contact-block {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.contact-page {
  border-top: none;
  padding-top: 0.5rem;
  background: transparent;
}

.microcopy {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-form.is-complete .form-fields {
  display: none;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  appearance: none;
}

/* Placeholder #5C574F ≥4.5:1 on paper surfaces */
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.field input:hover,
.field textarea:hover {
  border-color: #B8B0A3;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--text);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: var(--copper);
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.5;
}

.helper {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-error-banner {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.form-error-banner[hidden] {
  display: none;
}

.btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  min-height: var(--tap);
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}

.btn:focus-visible {
  outline: 2px solid var(--focus-cta);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Paper form feedback cards (home success/error) */
.form-feedback {
  margin: 0;
  padding: 1.15rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
}

.form-feedback[hidden] {
  display: none;
}

.form-feedback.is-success {
  border-color: var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.form-feedback.is-error {
  border-color: var(--copper);
  background: var(--bg-elevated);
}

.form-feedback-label {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.form-feedback.is-error .form-feedback-label {
  color: var(--copper);
}

.form-feedback-title {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}

.form-feedback-sub {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.form-feedback.is-error .form-feedback-sub {
  color: var(--copper);
}

/* Contact page success (replaces form area) */
.contact-sent {
  margin: 0;
  padding: 0;
  color: var(--text);
}

.contact-sent .form-feedback-label {
  margin-bottom: 0.85rem;
}

.contact-sent .form-feedback-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0.65rem;
}

.contact-sent .form-feedback-sub {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Contact inline error (form stays) */
.form-inline-error {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--copper);
}

.form-inline-error[hidden] {
  display: none;
}

/* Legacy class alias used by older markup hooks */
.form-status {
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
}

.form-status[hidden] {
  display: none;
}

.form-status.is-success {
  /* prefer .form-feedback; keep harmless alias */
  border-color: var(--border);
}

.form-status.is-error {
  border-color: var(--copper);
  color: var(--copper);
}

/* Disclaimer + footer */

.disclaimer {
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.disclaimer p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.disclaimer p + p {
  margin-top: 0.65rem;
}

.disclaimer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.disclaimer a:hover {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.35rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.75rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer a:hover {
  color: var(--text);
}

/* Responsive */

/* Desktop: one horizontal frame — same left+right inset for header / hero /
   method / contact / footer. NOT hero margin-left:48 + margin-right:auto while
   other chrome uses margin-inline:auto (different effective right edge).
   Narrow sections keep --narrow max content width but sit on the same rails,
   left-aligned within the shared frame. Mobile (<640) unchanged: --space + auto. */
@media (min-width: 640px) {
  .brand-tagline {
    display: block;
  }

  .container,
  .header-inner,
  .hero > .container {
    width: min(calc(100% - 2 * var(--page-gutter)), var(--max));
    margin-left: var(--page-gutter);
    margin-right: var(--page-gutter);
  }

  /* Same outer rails as .container; form/method copy left-aligned at --narrow */
  .container.narrow {
    width: min(calc(100% - 2 * var(--page-gutter)), var(--max));
    margin-left: var(--page-gutter);
    margin-right: var(--page-gutter);
  }

  .container.narrow > * {
    max-width: var(--narrow);
    width: 100%;
    box-sizing: border-box;
  }
}

/* Hero two-col from 768px (Paper desktop proportions).
   Below 768: single-column stack (copy then video). Brand tagline from 640px. */
@media (min-width: 768px) {
  .hero > .container.hero-grid {
    /* Paper blank right slot is slightly wider than copy column */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .brand {
    max-width: 100%;
  }

  .brand-logo {
    width: min(100%, 390px);
  }

  .hero-headline {
    max-width: none;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  /* Hero film still shows and plays; do not hide .hero-media for reduced-motion. */
}
