/* Menina Sozinha: palette from the cover (rose and blush) */
:root {
  --ink: #3f2d36;
  --ink-soft: #5c4a52;
  --night: #4a3540;
  --mist: #f4e4e4;
  --paper: #faf7f8;
  --sand: #ece4e0;
  --atlantic: #9a6a7a;
  --gold: #b08090;
  --gold-hover: #8f5a6b;
  --green: #a86b7d;
  --on-gold: #ffffff;
  --focus: #7d4f5f;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 68rem;
  --space: clamp(1rem, 2.5vw, 1.75rem);
}

*,
*::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(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem max(var(--space), env(safe-area-inset-right))
    0.85rem max(var(--space), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--atlantic);
  letter-spacing: 0.02em;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.15rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  color: var(--gold-hover);
}

/* Hero */
.hero {
  padding: clamp(2.25rem, 5vw, 4rem) var(--space) clamp(2.5rem, 6vw, 4.25rem);
  background:
    radial-gradient(ellipse 75% 55% at 92% 8%, color-mix(in srgb, var(--gold) 22%, transparent), transparent),
    linear-gradient(175deg, var(--paper) 0%, color-mix(in srgb, var(--mist) 45%, var(--paper)) 100%);
  color: var(--ink);
}

.hero__grid {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr minmax(14rem, 22rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.08;
  color: var(--atlantic);
}

.hero__title-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.52em;
  font-weight: 500;
  font-style: italic;
  color: var(--atlantic);
}

.hero__byline {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
}

.hero__byline strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__cover {
  margin: 0;
  justify-self: end;
}

.hero__cover img {
  width: min(100%, 18.5rem);
  height: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}

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

.btn--ghost {
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  color: var(--atlantic);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-hover);
  background: var(--mist);
}

.btn--wide {
  width: 100%;
  margin-top: 1.5rem;
}

/* Pull quote */
.pullquote {
  padding: clamp(2.5rem, 6vw, 4rem) var(--space);
  background: linear-gradient(
    135deg,
    var(--green) 0%,
    color-mix(in srgb, var(--gold) 75%, var(--green)) 100%
  );
  color: var(--on-gold);
}

.pullquote blockquote {
  margin: 0 auto;
  max-width: 42rem;
  text-align: center;
}

.pullquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-style: italic;
  line-height: 1.45;
}

/* Story */
.story {
  padding: clamp(3rem, 8vw, 5rem) var(--space);
}

.story__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 14rem) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.story h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--atlantic);
}

.story__prose p {
  margin: 0 0 1.15rem;
  max-width: 58ch;
  color: var(--ink-soft);
}

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

#histoire .story__prose p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.85;
  font-weight: 600;
  color: var(--atlantic);
}

.story--tinted {
  background: color-mix(in srgb, var(--mist) 70%, var(--paper));
}

.story__photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.5rem;
}

/* Author */
.author {
  padding: clamp(3rem, 8vw, 5rem) var(--space);
}

.author__layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.author__portrait {
  margin: 0;
}

.author__portrait img {
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  box-shadow:
    0 20px 36px color-mix(in srgb, var(--gold) 22%, transparent),
    0 0 0 1px color-mix(in srgb, var(--gold) 28%, transparent);
}

.author__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.author h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ink);
}

.author__text p {
  margin: 0 0 1rem;
  max-width: 52ch;
  color: var(--ink-soft);
}

.author__heritage {
  align-self: stretch;
  padding: 1.5rem;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--mist) 80%, var(--paper)) 0%,
    var(--sand) 100%
  );
  color: var(--ink-soft);
  border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
}

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

.author__heritage li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  font-size: 0.95rem;
}

.author__heritage li:last-child {
  border-bottom: none;
}

.author__heritage-label {
  font-weight: 600;
  color: var(--gold);
}

/* Details / CTA */
.details {
  padding: clamp(3rem, 8vw, 5rem) var(--space) clamp(4rem, 10vw, 6rem);
  background: linear-gradient(
    165deg,
    var(--paper) 0%,
    color-mix(in srgb, var(--mist) 65%, var(--paper)) 100%
  );
}

.details__card {
  max-width: 28rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 2px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--gold) 18%, transparent);
}

.details h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
}

.details__list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.details__list div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.details__list dt {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.details__list dd {
  margin: 0;
  color: var(--ink-soft);
}

.details__note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  padding: 1.5rem var(--space);
  background: var(--night);
  color: color-mix(in srgb, var(--mist) 85%, white);
  text-align: center;
  font-size: 0.9rem;
}

.site-footer__title {
  font-family: var(--font-display);
  color: var(--mist);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 820px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__cover {
    justify-self: center;
    width: 100%;
  }

  .hero__cover img {
    width: min(100%, 16rem);
    margin-inline: auto;
  }

  .story__inner {
    grid-template-columns: 1fr;
  }

  .author__layout {
    grid-template-columns: 1fr;
  }

  .author__portrait {
    max-width: 14rem;
  }

  .details__list div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 540px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-nav ul {
    justify-content: center;
    gap: 0.25rem 0.85rem;
  }

  .hero {
    padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
  }

  .pullquote p {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
  }

  .author__portrait {
    max-width: min(100%, 16.5rem);
    margin: 0 auto;
  }

  .author__heritage li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .story,
  .author,
  .details,
  .pullquote {
    padding-left: max(var(--space), env(safe-area-inset-left));
    padding-right: max(var(--space), env(safe-area-inset-right));
  }

  .site-footer {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}
