/* Betty California — magazine / editorial (unique art direction) */
:root {
  --paper: #f7f2ea;
  --ink: #1c1917;
  --muted: #57534e;
  --rust: #9f2d1c;
  --rust-soft: #c45c4a;
  --rule: #d6d0c4;
  --max: 1180px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--rust);
}

a:hover {
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10000;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  left: 12px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 242, 234, 0.97);
  border-bottom: 3px double var(--rule);
}

.masthead__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0.65rem 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

.masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.1rem;
}

.masthead__logo {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.masthead__logo em {
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
}

.nav-toggle {
  display: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}

.nav {
  display: flex;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  border-bottom-color: var(--rust);
}

.nav-list .masthead__cta {
  border-bottom: none;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-list .masthead__cta:hover {
  background: var(--rust);
  color: #fff;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
}

/* Hero — asymmetric editorial */
.hero-ed {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero-ed__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

@media (max-width: 900px) {
  .hero-ed__grid {
    grid-template-columns: 1fr;
  }
}

.hero-ed__kicker {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
}

.hero-ed h1 {
  font-family: var(--serif);
  font-size: clamp(2.15rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}

.hero-ed__deck {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.hero-ed__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.hero-ed__link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--rust);
  color: var(--ink);
}

.hero-ed__link:hover {
  color: var(--rust);
}

.hero-ed__figure {
  position: relative;
}

.hero-ed__figure img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.hero-ed__cap {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--rust);
  padding-left: 0.75rem;
}

/* Stories — rail layout */
.stories {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--rule);
}

.stories__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
}

.stories__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.stories__head span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}

@media (max-width: 860px) {
  .stories__grid {
    grid-template-columns: 1fr;
  }
}

.story-block {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0;
  display: flex;
  flex-direction: column;
}

@media (max-width: 860px) {
  .story-block {
    border-right: none;
  }
}

.story-block:nth-child(3n) {
  border-right: none;
}

.story-block img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  filter: contrast(1.02);
}

.story-block__inner {
  padding: 1.35rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--rust);
}

.story-block h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.story-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
}

/* Trust strip */
.trust-strip {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: #ebe4d8;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.trust-strip__intro {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  max-width: 52ch;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.45;
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .trust-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-metrics strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--rust);
}

.trust-metrics span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.trust-pills span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 0.35rem 0.65rem;
  background: var(--paper);
}

/* Voices — pull quotes */
.voices {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.voices__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin: 0 0 2.5rem;
}

.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .voices__grid {
    grid-template-columns: 1fr;
  }
}

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

.voice p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.voice footer {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Newsletter block */
.nl-block {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 3px double var(--rule);
}

.nl-block__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem;
  border: 2px solid var(--ink);
  background: #fff;
}

.nl-block h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  margin: 0 0 0.75rem;
}

.nl-block p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}

.nl-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.nl-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
}

.nl-form button {
  padding: 0.75rem 1.5rem;
  background: var(--rust);
  color: #fff;
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nl-form button:hover {
  background: var(--ink);
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rust);
}

.form-success.is-visible {
  display: block;
}

/* Contact */
.contact-ed {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--rule);
}

.contact-ed h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.contact-ed > .wrap > p {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 48ch;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}

.contact-aside {
  font-size: 0.95rem;
}

.contact-aside p {
  margin: 0 0 0.75rem;
}

.contact-form {
  border: 1px solid var(--rule);
  padding: 1.5rem;
  background: #fff;
}

.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule);
  font-family: var(--sans);
  margin-bottom: 1rem;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form button {
  padding: 0.65rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.contact-form button:hover {
  background: var(--rust);
}

/* Footer */
.site-footer {
  border-top: 3px solid var(--ink);
  padding: 2.5rem 0 2rem;
  background: #ebe4d8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h3 {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.footer-brand p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
  max-width: 32ch;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

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

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.85rem;
}

.cookie-banner a {
  color: #fbbf77;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-actions button {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
}

.cookie-actions .cookie-accept {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

[data-reveal].is-inview {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Legal subpages */
.legal {
  padding: clamp(3rem, 8vw, 5rem) 0;
  max-width: 680px;
  margin: 0 auto;
}

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-top: 0;
}

.legal h2 {
  font-size: 1.05rem;
  margin-top: 2rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.25rem;
}
