/* Rossanita site stylesheet. Static, responsive, no build step.
   Sections: fonts, tokens, base, header, hero, introduction, shared layout,
   founder, meditations, valley, believe, contact, footer, legal pages, motion. */

/* Fonts: self-hosted latin subsets (SIL OFL). No third-party requests. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-opsz-normal.7234ed860a.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-opsz-italic.066710ce7e.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter-latin-wght-normal.0efe0fbe60.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Tokens */
:root {
  --paper: #f6efe2;
  --cream: #efe5d3;
  --ink: #4a4136;
  --muted: #6b5b4b;
  --green: #28342e;
  --night: #1c241f;
  --copper: #9b4b31;
  --copper-deep: #803b25;
  --copper-light: #e2a07f;
  --line: #d8c9b6;
  --line-dark: rgb(246 239 226 / 0.2);
  --on-dark: #f6efe2;
  --on-dark-soft: rgb(246 239 226 / 0.8);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Bitter", Georgia, "Times New Roman", serif;
  --gutter: clamp(1.25rem, 3.4vw, 3rem);
  --section: clamp(3.25rem, 6vw, 5.5rem);
  --wide: 80rem;
  --measure: 34em;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.25rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

figure,
p,
h1,
h2,
h3,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 3.9vw, 3.4rem);
}

h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.55rem);
  line-height: 1.2;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
}

p {
  text-wrap: pretty;
}

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

a,
button,
summary {
  touch-action: manipulation;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: #d9c6a8;
  color: var(--green);
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section {
  padding-block: var(--section);
}

.eyebrow {
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--copper);
}

.standfirst {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin-top: 1.25rem;
}

.prose {
  max-width: var(--measure);
  color: var(--muted);
}

.prose p + p {
  margin-top: 1em;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 0.25rem;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header: a solid bar on the legal pages, laid over the photograph on the homepage. */
.site-header {
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}

.main-nav a:hover {
  border-bottom-color: currentColor;
}

.main-nav .nav-more {
  display: none;
}

@media (min-width: 40rem) {
  .main-nav .nav-more {
    display: inline-flex;
  }
}

/* The members-area login link (October 11, 2026): from 48rem, where the homepage's six header links fit on one line each
   (between 40rem and 45rem they wrapped); narrower screens have it in the footer. Added after the import (README). */
.main-nav .nav-login {
  display: none;
}

@media (min-width: 48rem) {
  .main-nav .nav-login {
    display: inline-flex;
  }
}

.home .site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  color: var(--on-dark);
}

.home .main-nav a {
  color: var(--on-dark-soft);
}

.home .main-nav a:hover {
  color: var(--on-dark);
  border-bottom-color: var(--copper-light);
}

/* Hero: the photograph is the background of the header. A short text block
   sits bottom-left over a gradient that only darkens that corner and the
   top edge, so the valley stays bright. Phones get a portrait crop of the same
   frame. Heights use the small viewport unit where supported. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 30rem;
  min-height: clamp(30rem, 80vh, 46rem);
  overflow: hidden;
  background: var(--green);
  color: var(--on-dark);
}

@supports (min-height: 1svh) {
  .hero {
    min-height: clamp(30rem, 80svh, 46rem);
  }
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image picture,
.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(40 52 46 / 0.6) 0%, rgb(40 52 46 / 0) 24%),
    linear-gradient(180deg, rgb(40 52 46 / 0) 42%, rgb(40 52 46 / 0.82) 78%, rgb(40 52 46 / 0.94) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: calc(7rem + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero-copy > * + * {
  margin-top: 1.1rem;
}

.hero .eyebrow {
  color: var(--copper-light);
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.02;
  font-weight: 400;
  max-width: 8.5em;
  margin-top: 0.75rem;
}

.hero-description {
  max-width: 30em;
  color: var(--on-dark-soft);
}

.hero-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin-top: 1.4rem;
  text-wrap: balance;
}

.hero-line span {
  white-space: nowrap;
}

@media (min-width: 48rem) {
  .hero {
    min-height: min(88vh, 60rem);
  }

  @supports (min-height: 1svh) {
    .hero {
      min-height: min(88svh, 60rem);
    }
  }

  /* Wide screens crop the landscape frame vertically: keep the top, where her head is. */
  .hero-image img {
    object-position: 50% 0%;
  }

  .hero-image::after {
    background:
      linear-gradient(180deg, rgb(40 52 46 / 0.5) 0%, rgb(40 52 46 / 0) 22%),
      linear-gradient(180deg, rgb(40 52 46 / 0) 60%, rgb(40 52 46 / 0.45) 100%),
      radial-gradient(ellipse 70% 85% at 18% 100%, rgb(40 52 46 / 0.92) 0%, rgb(40 52 46 / 0.7) 45%, rgb(40 52 46 / 0) 100%);
  }

  .hero-copy {
    padding-top: calc(8rem + env(safe-area-inset-top, 0px));
  }
}

/* Introduction: one centred statement under the hero. */
.introduction {
  max-width: 62rem;
  text-align: center;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.introduction .eyebrow {
  margin-bottom: 0.9rem;
}

.introduction > p:last-child {
  max-width: 44rem;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Photographs */
.photo img {
  border-radius: 0.3rem;
  object-fit: cover;
}

.photo-portrait img {
  aspect-ratio: 4 / 5;
  object-position: 50% 20%;
}

/* The group photograph is shown whole: cropping it to 4:3 cut the person at the left edge. */
.photo-landscape img {
  aspect-ratio: auto;
}

.photo figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  padding-top: 0.65rem;
  letter-spacing: 0.01em;
}

/* Two-column rows: single column on phones. */
.founder,
.meditations-layout,
.valley {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .founder,
  .meditations-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
  }

  .valley {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
  }
}

/* Founder */
.founder-copy .eyebrow,
.meditations-copy .eyebrow,
.valley-copy .eyebrow {
  margin-bottom: 0.9rem;
}

.founder-copy .prose,
.meditations-copy .prose,
.valley-copy .prose {
  margin-top: 1.25rem;
}

.pull-quote {
  margin-top: 1.75rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--copper);
  max-width: 30em;
}

.pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.pull-quote footer {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Meditations */
.meditations {
  background: var(--cream);
}

.meditation-details {
  margin-top: 1.75rem;
  max-width: var(--measure);
}

.meditation-details > div {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.meditation-details > div + div {
  margin-top: 1.5rem;
}

.meditation-details h3 {
  margin-bottom: 0.5rem;
}

.meditation-details p {
  color: var(--muted);
}

/* The Night Alignment's link to the 7-Night Andean Reset (rossanita.com/reset; Steven, October 11, 2026). */
.meditation-details .text-link {
  margin-top: 0.75rem;
  color: var(--copper);
}

.glyph {
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--copper);
  margin-bottom: 0.8rem;
}

/* The Valley */
.place-label {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* What we believe */
.believe {
  background: var(--cream);
}

.believe-layout {
  display: grid;
  gap: 1rem 3rem;
  align-items: start;
}

.believe-layout .eyebrow {
  margin-bottom: 0.9rem;
}

@media (min-width: 48rem) {
  .believe-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .believe-layout .prose {
    padding-top: 2.4rem;
  }
}

.manifesto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--green);
  text-align: center;
  max-width: 26em;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  text-wrap: balance;
}

/* Contact: the photograph fills the right side on wide screens and sits as a
   band above the text on phones. */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--on-dark);
  padding-top: 0;
}

.contact .eyebrow {
  color: var(--copper-light);
  margin-bottom: 0.9rem;
}

.contact-photo {
  margin: 0;
}

.contact-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 35%;
}

.contact-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--section);
}

.contact-inner > * {
  max-width: 32rem;
}

.contact-lead {
  margin-top: 1rem;
  color: var(--on-dark-soft);
}

@media (min-width: 48rem) {
  .contact {
    padding-top: var(--section);
  }

  .contact-photo {
    position: absolute;
    inset: 0 0 0 40%;
  }

  .contact-photo img {
    height: 100%;
    aspect-ratio: auto;
    object-position: 50% 15%;
  }

  .contact-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--green) 0%, rgb(40 52 46 / 0.55) 28%, rgb(40 52 46 / 0.12) 60%, rgb(40 52 46 / 0.08) 100%);
  }

  .contact-inner {
    padding-top: 0;
  }
}

.letters-form {
  margin-top: 1.5rem;
}

.letters-form label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--on-dark-soft);
}

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

@media (min-width: 40rem) {
  .email-row {
    flex-direction: row;
    border: 1px solid rgb(226 160 127 / 0.5);
    border-radius: 0.3rem;
    overflow: hidden;
    background: var(--paper);
    gap: 0;
  }
}

.email-row input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  border: 1px solid rgb(226 160 127 / 0.5);
  border-radius: 0.3rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.email-row input::placeholder {
  color: #7a7167;
  opacity: 1;
}

.email-row input:focus {
  outline: 2px solid var(--copper);
  outline-offset: -2px;
}

.email-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.3rem;
  background: var(--copper);
  color: #fff8ee;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms ease;
}

@media (min-width: 40rem) {
  .email-row input,
  .email-row button {
    border: 0;
    border-radius: 0;
  }
}

.email-row button:hover {
  background: var(--copper-deep);
}

.email-row button:active {
  transform: scale(0.98);
}

.form-status {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 0.75rem;
  color: var(--copper-light);
}

.form-status:empty {
  display: none;
}

.contact-note {
  font-size: 0.9375rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-soft);
}

.contact-note a {
  display: inline-block;
  padding-block: 0.25rem;
  text-decoration-color: var(--copper-light);
}

/* Footer */
.site-footer {
  padding-top: 2.75rem;
  padding-bottom: max(1.6rem, env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
}

.footer-top .wordmark {
  font-size: 1.75rem;
}

.footer-top p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--copper);
}

.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.4rem;
}

.footer-top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-top nav a:hover {
  text-decoration: underline;
}

.footer-details {
  display: grid;
  gap: 1.25rem 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 40rem) {
  .footer-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

address {
  font-style: normal;
}

.footer-details a {
  display: inline-block;
  padding-block: 0.15rem;
}

.sms-info {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.sms-info summary {
  cursor: pointer;
  width: fit-content;
  padding-block: 0.65rem;
}

.sms-info p {
  max-width: 60rem;
  padding-bottom: 0.5rem;
}

.footer-bottom {
  display: grid;
  gap: 1rem 2rem;
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .footer-bottom p:last-child {
    max-width: 44rem;
    justify-self: end;
  }
}

.signoff {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--copper);
}

/* Legal pages */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-size: 0.875rem;
}

.legal-main {
  max-width: 52rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.legal-main h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-top: 1.5rem;
  max-width: none;
}

.legal-main .updated {
  color: var(--muted);
  margin-block: 1rem 2rem;
  font-size: 0.875rem;
}

.legal-main h2 {
  font-size: 1.65rem;
  margin: 2.2rem 0 1rem;
  line-height: 1.2;
}

.legal-main p + p {
  margin-top: 0.8rem;
}

.legal-main ul {
  padding-left: 1.4rem;
}

.legal-main li + li {
  margin-top: 0.35rem;
}

.legal-main .contact-block {
  margin-top: 1rem;
}

.legal-main a {
  overflow-wrap: anywhere;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* footer-nav v1: two rows of two legal links on phones, no orphan (Steven 2026-09-04).
   Added by scripts/import-zip.mjs in the site repo; not part of the delivery. */
@media (max-width: 39.99rem) {
  .footer-top nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    column-gap: 1.4rem;
  }
}
