/* ============================================================
   From the Archives of You — Pearl
   Palette: porcelain #f7f6f2 · charcoal #26282b · mist-blue accent #8d95a1
   Type: Shippori Mincho (serif) · Jost (sans) · IBM Plex Mono (mono)
   ============================================================ */

:root {
  --porcelain: #f7f6f2;
  --charcoal: #26282b;
  --ink: #26282b;
  --panel: #eef0ee;
  --accent: #8d95a1;      /* mist blue — the chosen Pearl accent */
  --grey: #6b7280;        /* body grey */
  --grey-serif: #565b63;  /* muted serif grey */
  --hairline: #dcded9;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Shippori Mincho', serif;
  --sans: 'Jost', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #8d95a1; color: #f7f6f2; }

a { color: inherit; }

.accent { color: var(--accent); }
.ink { color: var(--charcoal); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 56px;
  mix-blend-mode: difference;
  color: #f7f6f2;
}
.nav__brand {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.3em;
  font-weight: 400;
}
.nav__links {
  display: flex;
  gap: 38px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
}
.nav__link {
  text-decoration: none;
  display: block;
  overflow: hidden;
  height: 16px;
  line-height: 16px;
}
.nav__link span {
  display: block;
  transition: transform .35s cubic-bezier(.65,0,.35,1);
}
.nav__link:hover span { transform: translateY(-16px); }

/* Hamburger toggle (shown on small screens only) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 30px;
  height: 26px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.nav__toggle-line {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: transform .35s cubic-bezier(.65,0,.35,1);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ============ MOBILE MENU ============ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s ease;
}
.menu__links { display: flex; flex-direction: column; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(141,149,161,.25);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--porcelain);
}
.menu__links .menu__link:first-child { border-top: 1px solid rgba(141,149,161,.25); }
.menu__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.menu__cta {
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(172,169,167,.92);
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
@media (min-width: 721px) { .menu { display: none; } }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 56px 80px;
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url(assets/photo-stack.jpg) center 62% / cover no-repeat;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(247,246,242,0.97) 0%,
    rgba(247,246,242,0.92) 34%,
    rgba(247,246,242,0.55) 60%,
    rgba(247,246,242,0.15) 100%);
}
.hero__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(247,246,242,0.6) 0%, transparent 26%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(20px, 8vw, 120px);
}
.hero__col { max-width: 640px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--charcoal);
  margin-bottom: 44px;
}
.hero__headline {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.32;
}
.hero__sub-wrap { margin-top: 42px; }
.hero__sub {
  font-size: 16px;
  line-height: 2.15;
  color: #000;
  max-width: 400px;
}
.hero__cta-wrap { margin-top: 48px; }

/* ---- masked line intro ---- */
.mask { overflow: hidden; }
.hero__headline .mask { padding: 0.06em 0; }

/* CTA (shared: hero + begin) */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.28em;
}
.cta__label {
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 6px;
  transition: letter-spacing .4s ease;
}
.cta:hover .cta__label { letter-spacing: 0.34em; }

/* ============ LAYOUT PRIMITIVES ============ */
.section { padding: 120px 56px; }
.panel {
  background: var(--panel);
  border-radius: 22px;
  margin: 0 16px;
  padding: 100px 56px;
}
.wrap { max-width: 820px; margin: 0 auto; }
.measure { max-width: 640px; }
.measure--600 { max-width: 600px; }

.kicker {
  margin: 0 0 40px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--charcoal);
}

/* ============ 01 LETTER ============ */
.letter__salutation,
.letter__open {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.8;
  margin: 0;
}
.letter__salutation {
  font-style: italic;
  color: var(--grey-serif);
  margin-bottom: 28px;
}
.letter__open { margin-bottom: 44px; }
.letter__body {
  font-size: 14.5px;
  line-height: 2.15;
  color: var(--grey);
}
.letter__body p { margin: 0 0 24px; }
.letter__body p.last { margin: 0; }
.letter__sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--grey-serif);
  margin: 40px 0 0;
}

/* ============ 02 PATHS ============ */
.paths { display: flex; flex-direction: column; }
.path {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 38px 0;
  transition: padding-left .45s cubic-bezier(.2,.65,.2,1);
}
.path:hover { padding-left: 20px; }
.path__num {
  font-family: var(--mono);
  font-size: 12px;
}
.path__body { flex: 1; }
.path__title {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  margin-bottom: 10px;
}
.path__desc {
  display: block;
  font-size: 14px;
  line-height: 2;
  color: var(--grey);
  max-width: 420px;
}
.path__arrow { font-size: 18px; }

.start__note {
  margin: 56px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 2;
  color: var(--grey-serif);
  max-width: 520px;
}
.start__note em { font-style: italic; }

/* ============ 03 CLEAR PATHS (packages) ============ */
.package__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
}
.package--gap { margin-top: 70px; }
.package__name {
  font-family: var(--serif);
  font-size: 29px;
}
.package__price {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--grey-serif);
  white-space: nowrap;
}
.package__price--quote {
  font-size: 12px;
  text-align: right;
  line-height: 1.8;
  width: 202px;
}
.package__body {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--grey);
  margin-top: 20px;
}
.package__body p { margin: 0 0 20px; }
.package__body p:last-child { margin: 0; }

.aside {
  margin-top: 80px;
  padding-top: 44px;
  border-top: 1px solid var(--hairline);
}
.aside__title {
  font-family: var(--serif);
  font-size: 23px;
  margin-bottom: 18px;
}
.aside__body {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--grey);
  margin: 0;
}
.aside__body em { font-style: italic; }

/* ============ 04 PIECE BY PIECE ============ */
.pieces { display: flex; flex-direction: column; gap: 64px; }
.piece__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
}
.piece__name {
  font-family: var(--serif);
  font-size: 25px;
}
.piece__tag {
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
}
.piece__price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--grey-serif);
  white-space: nowrap;
}
.piece__body {
  font-size: 14px;
  line-height: 2.1;
  color: var(--grey);
  margin: 16px 0 0;
}

/* ============ 05 PAYMENT ============ */
.prose {
  font-size: 14.5px;
  line-height: 2.15;
  color: var(--grey);
}
.prose p { margin: 0 0 24px; }
.prose p:last-child { margin: 0; }
.prose__mid {
  margin: 40px 0;
  font-size: 14.5px;
  line-height: 2.15;
  color: var(--grey);
}
.prose__mid em { font-style: italic; }
.prose__tail {
  margin: 0;
  font-size: 14.5px;
  line-height: 2.15;
  color: var(--grey);
}

/* ============ 06 WHAT YOU'RE LEFT HOLDING ============ */
.holding__heading {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.6;
}
.holding__heading em { font-style: italic; }
.holding__list {
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--grey);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.holding__item { display: flex; gap: 20px; }
.holding__num {
  font-family: var(--mono);
  font-size: 11px;
  padding-top: 5px;
  min-width: 20px;
}

/* ============ 07 HOW WE BEGIN ============ */
.panel--center { padding: 120px 56px; text-align: center; }
.begin { max-width: 680px; margin: 0 auto; }
.begin__headline {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.45;
}
.begin__headline em { font-style: italic; }
.begin__body {
  font-size: 15px;
  line-height: 2.15;
  color: var(--grey);
  max-width: 500px;
  margin: 36px auto 0;
}
.begin__cta-wrap { margin-top: 52px; }
.panel--center .cta { font-size: 12.5px; letter-spacing: 0.26em; }
.panel--center .cta:hover .cta__label { letter-spacing: 0.32em; }
.begin__note {
  font-size: 13.5px;
  line-height: 2.2;
  margin: 44px 0 0;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--charcoal);
  color: #f7f6f2;
  border-radius: 22px 22px 0 0;
  margin: 16px 16px 0;
  padding: 120px 56px 70px;
  text-align: center;
}
.footer__quote {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.85;
  max-width: 760px;
  margin: 0 auto;
}
.footer__quote em { font-style: italic; color: #aeb4bc; }

.footer__wordmark {
  position: relative;
  width: 380px;
  max-width: 78vw;
  margin: 100px auto 0;
  padding: 44px 0;
}
.footer__mark {
  font-size: 14.5px;
  letter-spacing: 0.3em;
  color: #f7f6f2;
}
.bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(141,149,161,.65);
  border-style: solid;
  border-width: 0;
}
.bracket--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.bracket--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.bracket--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.bracket--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.footer__links {
  display: flex;
  justify-content: center;
  gap: 44px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-top: 50px;
}
.footer__link {
  color: rgba(172,169,167,.92);
  text-decoration: none;
  transition: color .3s ease;
}
.footer__link:hover { color: #f7f6f2; }
.footer__legal {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--grey-serif);
  margin-top: 80px;
}

/* ============ MOTION ============ */
/* Masked line intro: lines start below their clip, released by main.js */
.line {
  transform: translateY(110%);
  will-change: transform;
}
.motion-ready .line {
  transition: transform 1.15s cubic-bezier(.2,.65,.2,1);
}
.line.is-in { transform: translateY(0); }

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}
.motion-ready .reveal {
  transition: opacity 1.05s ease, transform 1.05s cubic-bezier(.2,.65,.2,1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* If JS never runs or motion is reduced, nothing stays hidden */
.no-js .line,
.no-js .reveal {
  transform: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .line, .reveal { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .nav { padding: 22px 24px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .hero { padding: 130px 24px 64px; min-height: auto; }
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(247,246,242,0.95) 0%,
      rgba(247,246,242,0.9) 45%,
      rgba(247,246,242,0.7) 100%);
  }
  .section { padding: 90px 24px; }
  .panel { padding: 80px 28px; margin: 0 10px; }
  .panel--center { padding: 90px 28px; }
  .footer { padding: 90px 28px 56px; margin: 10px 10px 0; }
  .footer__links { flex-direction: column; gap: 16px; align-items: center; }
  .package__price--quote { width: auto; }
  /* Let CTAs wrap and break long tokens (e.g. the email) instead of overflowing */
  .cta { flex-wrap: wrap; }
  .panel--center .cta { justify-content: center; }
  .cta__label { overflow-wrap: anywhere; }
  .panel--center .cta__label { letter-spacing: 0.12em; }
}

@media (max-width: 460px) {
  .nav__brand { font-size: 10px; letter-spacing: 0.22em; }
  .panel--center .cta__label { font-size: 11px; }
  .footer__link { overflow-wrap: anywhere; text-align: center; }
}
