/* ============================================
   JOANNA STANISZEWSKA — Personal Website
   Two paths: Day (outer) · Night (inner)

   Typography — two families, three sizes:
   • Cormorant Garamond  — headings, prose (serif)
   • Inter               — labels, navigation, captions (sans-serif)

   Palette — Day:
   • Dusty Rose  #BE8B85 · rose-light #EDD9D6 · rose-deep #9E6B65
   Palette — Night:
   • Deep indigo #1e1a38 · soft lavender #c5b8e8 · gold #d4af7a
   ============================================ */

:root {
  /* Layout */
  --max-w: 760px;

  /* Backgrounds */
  --bg:       #FAF8F6;
  --bg-alt:   #F3EEEC;
  --bg-night: #1e1a38;

  /* Day palette */
  --rose:       #BE8B85;
  --rose-light: #EDD9D6;
  --rose-deep:  #9E6B65;

  /* Night palette */
  --night-mid:  #2a2550;
  --star:       #c5b8e8;
  --gold:       #d4af7a;

  /* Text */
  --text:       #1E1C1B;
  --text-muted: #7A7368;
  --text-light: #B5AEA9;
  --text-night: #e8e2f8;
  --text-night-muted: #a396c8;

  /* Borders */
  --border:       #E8DFDC;
  --border-night: rgba(197, 184, 232, 0.18);
}

/* ——— Reset ——— */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ——— Navigation ——— */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.bis-currently {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.bis-globe {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.45;
  filter: saturate(0.3) brightness(1.05);
  background: rgba(243,238,236,0.5);
  border: 1px solid var(--border);
  padding: 6px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--rose); }

/* ——— Hero ——— */

.hero {
  position: relative;
  overflow: hidden;
  /* Parallax background */
  background-image: url('hero_bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  /* Cream overlay so text is legible */
  padding: 0;
}

/* Overlay gradient — warm cream from top, transparent at bottom */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(250,248,246,0.93) 0%,
    rgba(250,248,246,0.86) 50%,
    rgba(250,248,246,0.75) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero > * { position: relative; z-index: 2; }

/* Inner centering wrapper */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5.5rem 2rem 6rem;
  max-width: 100%;
}

/* Fix: re-scope inner content width */
.hero h1,
.hero .tagline,
.hero .tagline-inner,
.hero .hero-badges,
.hero .hero-cta,
.hero .hero-welcome {
  max-width: var(--max-w);
}

/* Central identity headshot */
.hero-center-photo-wrap {
  margin-bottom: 2.5rem;
}

.hero-center-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--rose-light);
  box-shadow:
    0 0 0 8px rgba(190,139,133,0.12),
    0 8px 32px rgba(190, 139, 133, 0.25);
}

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

.tagline-inner {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  opacity: 1;
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.32rem 0.9rem;
  border-radius: 100px;
}

.badge--day {
  color: var(--rose-deep);
  background: var(--rose-light);
}

.badge--night {
  color: #4a3f7a;
  background: rgba(197, 184, 232, 0.28);
  border: 1px solid rgba(123, 111, 160, 0.45);
}

.badge:not(.badge--day):not(.badge--night) {
  color: var(--text-muted);
  background: rgba(243, 238, 236, 0.85);
  border: 1px solid var(--border);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-welcome {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* ——— Buttons ——— */

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--rose);
  color: #fff;
  border: 2px solid var(--rose);
}

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

.btn-outline {
  background: transparent;
  color: var(--rose);
  border: 2px solid var(--rose-light);
}

.btn-outline:hover {
  border-color: var(--rose);
  background: var(--rose-light);
}

/* ——— Section base ——— */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem 2rem;
  border-top: 1px solid var(--border);
}

.section-wide {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 2rem;
}

.section-wide-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 2.5rem;
}

/* ——— About prose ——— */

.about-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
}

.about-text + .about-text {
  margin-top: 1.25rem;
}

.about-text strong {
  font-weight: 500;
  color: var(--rose-deep);
}

.about-text em {
  color: var(--text-muted);
}

.inline-link {
  color: var(--rose-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.inline-link:hover { color: var(--rose); }

/* ——— About wide atmospheric photo ——— */

.about-wide-photo {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 2.5rem;
}

.about-wide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.about-wide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250,248,246,0.15) 0%,
    rgba(250,248,246,0.55) 100%
  );
}

/* ——— Role card photo thumbnails ——— */

.role-card {
  overflow: hidden; /* clip the photo thumbnail */
}

.card-photo {
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  height: 90px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s ease;
}

.role-card:hover .card-photo {
  transform: scale(1.04);
}

.card-photo--night {
  border-bottom: 1px solid var(--border-night);
  filter: saturate(0.7) brightness(0.75);
}

/* ——— Fork / Merge SVG visuals ——— */

.fork-visual,
.merge-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto 0;
}

.fork-visual svg {
  width: 200px;
  height: 172px;
}

.merge-visual svg {
  width: 200px;
  height: 172px;
}

.fork-label {
  display: flex;
  justify-content: space-between;
  width: 280px;
  margin-top: 0.5rem;
}

.fork-label--day {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.fork-label--night {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7b6fa0;
}

.merge-visual {
  margin-top: 0;
  margin-bottom: 0;
}

.merge-caption {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* ——— Two Paths grid (About) ——— */

.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2.5rem 0;
}

.path {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.path-photo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.path-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.path--day .path-photo-wrap {
  border: 2px solid var(--rose-light);
}

.path--night .path-photo-wrap {
  border: 2px solid rgba(197, 184, 232, 0.4);
}

/* Zoom in on the face and drop below the picture frame at the top */
.path--day .path-photo {
  object-position: 67% 58%;
  transform: scale(1.82);
  transform-origin: 67% 58%;
}

.path--night .path-photo {
  filter: saturate(0.8) brightness(0.95);
}

.path-label-small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.path--day .path-label-small { color: var(--rose); }
.path--night .path-label-small { color: #7b6fa0; }

/* ——— Invitation / Work section ——— */

.offers-block {
  margin-bottom: 3rem;
}

.offers-block--night {
  padding: 2.5rem;
  background-color: var(--bg-night);
  background-image: url('night_bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  background-blend-mode: multiply;
  border-radius: 6px;
  margin-bottom: 0;
  position: relative;
}

/* Second layer: petals as ::before overlay */
.offers-block--night::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('Joanna_petals.jpeg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.12;
  border-radius: 6px;
  pointer-events: none;
}

.offers-subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.5rem;
}

.offers-subtitle--night {
  color: var(--star);
  opacity: 0.8;
}

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

.role-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--rose-light);
  background: var(--bg);
  transition: border-top-color 0.2s ease;
}

.role-card:hover { border-top-color: var(--rose); }

.role-card--night {
  background: var(--night-mid);
  border: 1px solid var(--border-night);
  border-top: 3px solid rgba(197, 184, 232, 0.3);
}

.role-card--night:hover {
  border-top-color: var(--star);
}

.role-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.role-title--night {
  color: var(--text-night);
}

.role-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.role-desc--night {
  color: var(--text-night-muted);
}

/* ——— Being in Systems section ——— */

/* ——— Credentials ——— */

.cred-path-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}

.cred-path-label:first-of-type { margin-top: 0; }
.cred-path-label { color: var(--rose); }
.cred-path-label--night { color: #7b6fa0; }

.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.cred-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.cred-item:first-child { border-top: 1px solid var(--border); }

.cred-item--night {
  border-bottom: 1px solid rgba(197, 184, 232, 0.12);
}

.cred-item--night:first-child {
  border-top: 1px solid rgba(197, 184, 232, 0.12);
}

.cred-org {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--rose);
  min-width: 230px;
  flex-shrink: 0;
}

.cred-org--night { color: #7b6fa0; }

.cred-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cred-name--night { color: var(--text-muted); }

/* ——— Book ——— */

.book-inner {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.book-cover-img {
  width: 152px;
  height: 224px;
  object-fit: cover;
  box-shadow: 5px 5px 28px rgba(0, 0, 0, 0.14);
}

.badge-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rose-deep);
  padding: 0.32rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.book-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.book-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--rose);
  margin-bottom: 1.5rem;
}

.book-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 2rem;
  max-width: 460px;
}

/* Inline notify form — Book section */
.notify-form-inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.notify-form-inline input[type="email"] {
  flex: 1 1 200px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.notify-form-inline input[type="email"]:focus {
  border-color: var(--rose);
}

.notify-form-inline button {
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: 1px solid var(--rose);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--rose);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.notify-form-inline button:hover {
  background: var(--rose);
  color: #fff;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
  cursor: pointer;
  width: 100%;
}

.consent-label input[type="checkbox"] {
  margin-top: 0.15em;
  flex-shrink: 0;
  accent-color: var(--rose);
}

.consent-label a {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ——— Contact ——— */

.contact-intro {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.contact-list {
  display: flex;
  flex-direction: column;
}

.contact-link {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1.1rem 0;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.contact-link:first-child { border-top: 1px solid var(--border); }

.contact-link:hover .contact-link-value { color: var(--rose); }

.contact-link-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  min-width: 72px;
  flex-shrink: 0;
}

.contact-link-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text);
  transition: color 0.2s ease;
}

/* ——— Contact form ——— */

.contact-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 520px;
}

.contact-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form-row label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form-row input,
.contact-form-row textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.contact-form-row input:focus,
.contact-form-row textarea:focus {
  border-color: var(--rose);
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 0.4rem;
}

/* ——— Footer ——— */

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-philosophy {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-sep {
  color: var(--text-light);
  font-size: 0.8rem;
}

.footer-org {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-org:hover { color: var(--rose); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ——— Responsive ——— */

/* ——— Mobile parallax fallback ——— */
/* background-attachment: fixed is broken on iOS Safari */
@media (max-width: 768px) {
  .hero,
  .offers-block--night {
    background-attachment: scroll;
  }
}

@media (max-width: 680px) {

  nav {
    padding: 1.1rem 1.5rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .nav-links a {
    font-size: 0.7rem;
  }

  .hero {
    padding: 3.5rem 1.5rem 4.5rem;
  }

  .hero-center-photo {
    width: 130px;
    height: 130px;
  }

  .about-wide-photo {
    height: 150px;
  }

  .section,
  .section-wide {
    padding: 3rem 1.5rem;
  }

  .paths-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .offers-block--night {
    padding: 1.5rem;
  }

  .book-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-cover-wrapper {
    display: flex;
    justify-content: center;
  }

  .cred-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .cred-org { min-width: unset; }

  .fork-label { width: 240px; }

  footer { padding: 2rem 1.5rem; }
}
