/* ==========================================================================
   Domina Divinia — bespoke build
   Design tokens live at the top so palette/type can be swapped in one place
   (client is expecting to iterate on both — see CLAUDE.md brief).
   ========================================================================== */

:root {
  /* Palette — monochrome first pass. --color-accent* held in reserve,
     not referenced anywhere yet, pending client sign-off on the lift. */
  --color-bg: #0a0a0a;
  --color-bg-raised: #131313;
  --color-bg-cream: #f2ede4;
  --color-fg: #f2ede4;
  --color-fg-on-cream: #17140f;
  --color-fg-muted: #a8a29a;
  --color-fg-muted-on-cream: #6b655c;
  --color-line: rgba(242, 237, 228, 0.16);
  --color-line-on-cream: rgba(23, 20, 15, 0.14);
  --color-accent: #c1662f;
  --color-accent-blue: #3b4a63;

  /* Type — Spectral for body copy and UI (nav, buttons, labels); Antic Didone
     for big display headings only, where its hairline contrast still reads.
     Swap the two custom properties below to re-theme every page at once. */
  --font-heading: "Antic Didone", Georgia, "Times New Roman", serif;
  --font-body: "Spectral", Georgia, serif;

  --tracking-nav: 0.16em;
  --tracking-label: 0.22em;

  --page-max: 1400px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

/* ---------------------------------------------------------------------- */
/* Site header / nav                                                      */
/* ---------------------------------------------------------------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem var(--gutter);
}

.site-header.is-static {
  position: relative;
  background: var(--color-bg);
}

.wordmark {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-fg);
}

.nav-primary {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary a {
  font-size: 0.86rem;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-fg-muted);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  color: var(--color-fg);
  border-bottom-color: currentColor;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
}

.nav-toggle rect {
  fill: var(--color-fg);
}

.nav-drawer {
  display: none;
}

@media (max-width: 860px) {
  .nav-primary {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-drawer {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 60;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
  }

  .nav-drawer.is-open {
    display: flex;
  }

  .nav-drawer a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: var(--tracking-nav);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-fg);
  }

  .nav-drawer-close {
    position: absolute;
    top: 2rem;
    right: var(--gutter);
    background: none;
    border: 0;
    color: var(--color-fg);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
  }
}

/* ---------------------------------------------------------------------- */
/* Landing / age-gate                                                     */
/* ---------------------------------------------------------------------- */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem var(--gutter) 4rem;
}

.landing-mark {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.landing-tagline {
  margin: 1rem 0 3rem;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

.landing-disclaimer {
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-fg-muted);
  font-style: italic;
}

.landing-disclaimer p {
  margin: 0 0 1.1em;
}

.landing-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.75rem;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2.4rem;
  border: 1px solid var(--color-fg);
  color: var(--color-fg);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--color-fg);
  color: var(--color-bg);
}

.btn-quiet {
  border-color: var(--color-line);
  color: var(--color-fg-muted);
}

.btn-quiet:hover {
  background: var(--color-fg-muted);
  color: var(--color-bg);
}

.btn-on-cream {
  border-color: var(--color-fg-on-cream);
  color: var(--color-fg-on-cream);
}

.btn-on-cream:hover {
  background: var(--color-fg-on-cream);
  color: var(--color-bg-cream);
}

/* ---------------------------------------------------------------------- */
/* Hero (full-bleed photo section)                                        */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 5.5rem;
}

.hero-content p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  max-width: 22ch;
  margin: 0;
  line-height: 1.35;
}

/* ---------------------------------------------------------------------- */
/* Alternating text + photo blocks                                        */
/* ---------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) var(--gutter);
}

/* Tighter top gap when a feature follows straight after an in-flow
   (non-hero) header, or another feature block — flagged in client review. */
.site-header.is-static + .feature {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.feature + .feature {
  padding-top: clamp(2.25rem, 4.5vw, 4rem);
}

.feature:has(+ .feature) {
  padding-bottom: clamp(2.25rem, 4.5vw, 4rem);
}

.feature:has(+ .cta-band) {
  padding-bottom: clamp(2.25rem, 4.5vw, 4rem);
}

.feature-reverse {
  grid-template-columns: 1fr 1fr;
}

.feature-reverse .feature-photo {
  order: 2;
}

.feature-reverse .feature-text {
  order: 1;
}

.feature-photo img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.05);
}

.feature-text .eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin: 0 0 1.5rem;
}

.feature-text p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  margin: 0 0 1.4em;
  color: var(--color-fg);
}

.feature-text p:last-of-type {
  margin-bottom: 0;
}

.feature-text h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
}

.feature-text h2,
.feature-text h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15em;
  margin: 2rem 0 0.5rem;
}

.feature-text h2:first-of-type,
.feature-text h3:first-of-type {
  margin-top: 0;
}

.feature-text h3.section-break {
  margin-top: 3.5rem;
}

.feature-photo.is-natural-color img {
  filter: contrast(1.05);
}

.feature-text .plain-list {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
}

.feature-text .plain-list li {
  break-inside: avoid;
  padding-left: 1.25em;
  text-indent: -1.25em;
}

.feature-text .footnote {
  font-size: 0.8rem;
  color: var(--color-fg-muted);
  font-style: italic;
  margin: -0.75rem 0 1.4em;
}

.feature-text ol {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  margin: 0 0 1.4em;
  padding-left: 1.3em;
}

.feature-text ol li {
  margin-bottom: 0.5em;
  padding-left: 0.4em;
}

.feature-text ol li::marker {
  color: var(--color-fg-muted);
  font-family: var(--font-body);
}

@media (max-width: 640px) {
  .feature-text .plain-list {
    columns: 1;
  }
}

/* ---------------------------------------------------------------------- */
/* Testimonials (Devotions)                                               */
/* ---------------------------------------------------------------------- */

.testimonials {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(5rem, 9vw, 7rem);
}

.testimonial {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
  border-top: 1px solid var(--color-line);
}

.testimonial:first-child {
  border-top: 0;
  padding-top: 0;
}

.testimonial p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.85;
  margin: 0 0 1.4em;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

/* ---------------------------------------------------------------------- */
/* By Her Hand — placeholder until copy is supplied                       */
/* ---------------------------------------------------------------------- */

.coming-soon {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) var(--gutter) clamp(6rem, 10vw, 9rem);
  text-align: center;
}

.coming-soon p {
  color: var(--color-fg-muted);
  font-style: italic;
  line-height: 1.8;
}

@media (max-width: 780px) {
  .feature,
  .feature-reverse {
    grid-template-columns: 1fr;
  }

  .feature-reverse .feature-photo,
  .feature-reverse .feature-text {
    order: initial;
  }
}

/* ---------------------------------------------------------------------- */
/* CTA band                                                                */
/* ---------------------------------------------------------------------- */

.cta-band {
  text-align: center;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--gutter) clamp(5rem, 9vw, 7rem);
}

/* ---------------------------------------------------------------------- */
/* Footer — newsletter (all main pages except Landing)                    */
/* ---------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter) 2.5rem;
  text-align: center;
}

.site-footer .eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin-bottom: 1rem;
}

.site-footer h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 0.75rem;
}

.site-footer p {
  max-width: 32rem;
  margin: 0 auto 2.25rem;
  color: var(--color-fg-muted);
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  max-width: 30rem;
  margin: 0 auto 3rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.9rem 1.1rem;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--color-fg-muted);
}

.newsletter-form .btn {
  padding: 0.9rem 1.6rem;
  white-space: nowrap;
}

.site-footer-base {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
}

.site-footer-base .wordmark {
  font-size: 0.85rem;
}

.site-footer-base small {
  color: var(--color-fg-muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

@media (max-width: 560px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------------- */
/* Contact form (footer, alongside newsletter)                            */
/* ---------------------------------------------------------------------- */

.footer-contact {
  max-width: 30rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--color-line);
  text-align: left;
}

.footer-contact .eyebrow,
.footer-contact h2 {
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.contact-form label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin-bottom: 0.5rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  resize: vertical;
}

.contact-form textarea {
  min-height: 7rem;
}

.contact-form .btn {
  justify-self: center;
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------------------- */
/* Application form (Surrender page)                                     */
/* ---------------------------------------------------------------------- */

.application {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(5rem, 9vw, 7rem);
}

.application-intro {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.application-intro h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

.application-intro p {
  color: var(--color-fg-muted);
  max-width: 34rem;
  margin: 0 auto;
  line-height: 1.8;
}

.application-form {
  display: grid;
  gap: 1.75rem;
}

.field label,
.field-group > legend {
  display: block;
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  resize: vertical;
}

.field textarea {
  min-height: 6rem;
}

.field-group {
  border: 0;
  margin: 0;
  padding: 0;
}

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

.field-group .options label {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.9rem;
  margin-bottom: 0;
  cursor: pointer;
  color: var(--color-fg);
}

.field-group .options input {
  accent-color: var(--color-fg);
}

.application-form .btn {
  justify-self: center;
  margin-top: 0.5rem;
}

.application-note {
  font-size: 0.82rem;
  color: var(--color-fg-muted);
  font-style: italic;
  margin: -0.75rem 0 0;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------------- */
/* Form confirmation pages                                                */
/* ---------------------------------------------------------------------- */

.confirmation {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem var(--gutter) 4rem;
}

.confirmation .eyebrow {
  font-size: 0.85rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin-bottom: 1.5rem;
}

.confirmation h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  max-width: 18ch;
  margin: 0 0 1.5rem;
}

.confirmation p {
  max-width: 32rem;
  color: var(--color-fg-muted);
  line-height: 1.85;
  margin: 0 0 1.2em;
}

.confirmation .btn {
  margin-top: 2rem;
}
