/* Mudra Flow — static site styles */

:root {
  --black: #000000;
  --warm-black: #141210;
  --cream: #f4efe6;
  --cream-soft: #ece6db;
  --muted: #b9b3a8;
  --muted-dark: #5c574f;
  --line: rgba(255, 255, 255, 0.5);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid #e8dcc8;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--cream);
  color: var(--black);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* ----- Hero ----- */

.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  color: #fff;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the seated figure in the lower half, sky open for type */
  object-position: center 42%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.04) 38%,
    rgba(0, 0, 0, 0.18) 72%,
    #000000 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 1;
  padding: 1.75rem 1.5rem 5rem;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.85vw, 1.2rem);
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: #fff;
  margin: 0.4rem 0 0;
  padding-left: 0.46em; /* optical centering with letter-spacing */
  line-height: 1.2;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.05rem, 5vw, 4.15rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: min(68rem, 92vw);
  margin: 11vh 0 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.headline-break {
  display: block;
}

/* ----- Contact ----- */

.contact {
  background: var(--black);
  padding: 5.5rem 1.5rem 5.25rem;
  text-align: center;
  color: #f4f1ea;
}

.contact h2,
.blog h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.35rem, 4.6vw, 3.5rem);
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.01em;
}

.rule {
  width: 2.75rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  margin: 1.15rem auto 1.45rem;
}

.lede {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0 0 2.1rem;
  color: #fff;
}

.contact-form {
  max-width: 36rem;
  margin: 0 auto;
  text-align: left;
}

.field {
  margin: 0 0 0.85rem;
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  appearance: none;
  background: #000;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 0.95rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
  display: block;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.75);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fff;
}

/* Honeypot — visually and accessibly hidden from people, still in the DOM for bots */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.opt-in {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.35rem 0 1.55rem;
  color: #ece8e1;
  font-size: 0.98rem;
  line-height: 1.45;
}

.opt-in input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: #fff;
  cursor: pointer;
}

.opt-in label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  cursor: pointer;
}

.actions {
  text-align: center;
}

.btn-send {
  display: inline-block;
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 4px;
  padding: 0.72rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-send:hover {
  background: var(--cream);
}

.btn-send:active {
  transform: translateY(1px);
}

/* ----- Blog (plain background, no stock photo) ----- */

.blog {
  background: var(--cream);
  color: var(--warm-black);
  text-align: center;
  padding: 5.75rem 1.5rem 5.5rem;
}

.blog h2 {
  color: var(--warm-black);
}

.blog .rule {
  background: rgba(26, 22, 18, 0.28);
}

.blog p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted-dark);
}

/* ----- Footer ----- */

.site-footer {
  background: var(--black);
  color: #8f8a84;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.site-footer p {
  margin: 0;
}

/* ----- Responsive ----- */

@media (max-width: 720px) {
  .hero {
    min-height: 78vh;
    min-height: 78svh;
  }

  .hero__content {
    padding: 1.6rem 1.15rem 4rem;
  }

  .logo {
    letter-spacing: 0.32em;
    padding-left: 0.32em;
    font-size: 0.86rem;
  }

  .hero h1 {
    margin-top: 8.5vh;
  }

  .contact,
  .blog {
    padding: 4rem 1.15rem 3.75rem;
  }

  .opt-in {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 1.85rem;
  }
}

@media (min-width: 1400px) {
  .hero {
    min-height: 90vh;
    min-height: 90svh;
  }
}

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

  .btn-send,
  .contact-form input,
  .contact-form textarea {
    transition: none;
  }
}
