/* ============================================================
   BASE — reset, variables, body, nav, typography, animations,
   shared sections (julie, book), footer, panels/forms,
   accessibility, responsive for shared elements
   ============================================================ */

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

/* VARIABLES */
:root {
  --linen: #EDE8DF;
  --cream: #F7F3EE;
  --walnut: #3D2410;
  --walnut-mid: #6B3F22;
  --walnut-light: #9B7355;
  --sage: #4E6042;
  --sage-light: #647A57;
  --slate: #5C7178;
  --stone: #A09488;
  --text: #2E1A0E;
  --text-mid: #6B4F38;
  --text-light: #9B8070;
}

/* BASE */
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
::selection { background: var(--sage); color: var(--cream); }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
.container { max-width: 1100px; margin: 0 auto; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.75rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease, padding 0.4s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(247,243,238,0.97);
  backdrop-filter: blur(12px);
  padding: 1.1rem 3rem;
  border-bottom-color: rgba(61,36,16,0.1);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #F7F3EE;
  text-decoration: none;
  transition: color 0.5s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
nav.scrolled .nav-logo { color: var(--walnut); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,243,238,0.75);
  text-decoration: none;
  transition: color 0.3s;
}
nav.scrolled .nav-links a { color: var(--text-mid); }
.nav-links a:hover { color: #fff; }
nav.scrolled .nav-links a:hover { color: var(--walnut); }
.nav-cta {
  color: var(--walnut) !important;
  background: rgba(247,243,238,0.92) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2rem;
  transition: background 0.2s, color 0.2s !important;
}
nav.scrolled .nav-cta { color: var(--cream) !important; background: var(--walnut) !important; }

/* TYPOGRAPHY */
.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--walnut-light);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--walnut);
  margin-bottom: 2rem;
}
.section-title em { font-style: italic; }
.divider {
  width: 48px;
  height: 1px;
  background: var(--walnut-light);
  opacity: 0.4;
  margin-bottom: 3rem;
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ABOUT JULIE */
.julie-section { background: var(--linen); padding: 7rem 3rem; }
.julie-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: center;
}
.julie-img {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #C4B8A8;
}
.julie-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.julie-bio {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.95;
  margin-bottom: 1.25rem;
}
.julie-credential {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(61,36,16,0.12);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--walnut-light);
  line-height: 2;
}

/* BOOK */
.book-section {
  background: var(--sage);
  padding: 8rem 3rem;
  position: relative;
  overflow: hidden;
}
.book-photo {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42%;
  overflow: hidden;
  opacity: 0.35;
}
.book-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.book-inner { position: relative; z-index: 1; max-width: 580px; }
.book-section .section-label { color: rgba(247,243,238,0.35); }
.book-section .section-title { color: #F7F3EE; margin-bottom: 1rem; }
.book-title { max-width: 530px; }
.book-desc {
  font-size: 1rem;
  color: rgba(247,243,238,0.6);
  max-width: 440px;
  margin-bottom: 2.75rem;
  line-height: 1.95;
}
.book-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: #F7F3EE;
  color: var(--sage);
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 2.25rem;
  border-radius: 2rem;
  border: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #fff; }
.btn-outline-light {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(247,243,238,0.3);
  color: rgba(247,243,238,0.75);
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 2.25rem;
  border-radius: 2rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-light:hover { border-color: rgba(247,243,238,0.65); color: #F7F3EE; }
.book-contact-line { margin-top: 2.5rem; font-size: 0.82rem; color: rgba(247,243,238,0.3); }
.book-contact-line a { color: rgba(247,243,238,0.45); text-decoration: none; transition: color 0.2s; }
.book-contact-line a:hover { color: rgba(247,243,238,0.75); }

/* FOOTER */
footer { background: var(--walnut); padding: 5rem 3rem 3rem; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 4rem;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.footer-logo-img { width: 26px; height: 26px; object-fit: contain; opacity: 0.6; }
.footer-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #F7F3EE;
  letter-spacing: 0.02em;
}
.footer-tagline { font-size: 0.82rem; color: rgba(247,243,238,0.32); line-height: 1.85; max-width: 230px; }
.footer-col h4 {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247,243,238,0.28);
  margin-bottom: 1.25rem;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.93rem;
  color: rgba(247,243,238,0.5);
  text-decoration: none;
  margin-bottom: 0.65rem;
  line-height: 1.6;
  transition: color 0.2s;
}
.footer-col a:hover { color: rgba(247,243,238,0.88); }
.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(247,243,238,0.07);
  font-size: 0.74rem;
  color: rgba(247,243,238,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* PANELS / FORMS */
.panel-wrap { height: 0; overflow: hidden; transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.inline-panel { background: var(--linen); padding: 5rem 3rem; border-top: 1px solid rgba(61,36,16,0.1); }
.panel-inner { max-width: 860px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.panel-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; color: var(--walnut); margin-bottom: 0.4rem; }
.panel-sub { font-size: 0.87rem; color: var(--text-light); }
.panel-close {
  background: none;
  border: 1px solid rgba(61,36,16,0.2);
  border-radius: 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem 1.1rem;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.panel-close:hover { color: var(--walnut); border-color: rgba(61,36,16,0.4); }
.acuity-frame { width: 100%; height: 700px; border: none; border-radius: 3px; }
.panel-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 600px; }
.bot-field-wrap { display: none; }
.form-error { font-size: 0.83rem; color: #b94a3a; margin-top: 0.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--walnut-light);
}
.form-optional { text-transform: none; letter-spacing: 0; font-size: 0.72rem; opacity: 0.6; }
.form-group input, .form-group textarea {
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(61,36,16,0.15);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--walnut-light); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-light); opacity: 0.6; }
.btn-submit {
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--sage);
  color: var(--cream);
  border: none;
  border-radius: 2rem;
  padding: 0.95rem 2.25rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--sage-light); }
.panel-success { text-align: center; padding: 3rem 0; }
.panel-success p:first-child { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; color: var(--walnut); margin-bottom: 0.75rem; }
.panel-success p:last-child { font-size: 0.9rem; color: var(--text-light); }

/* ACCESSIBILITY */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--cream);
  color: var(--walnut);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-family: 'Jost', sans-serif;
  border-radius: 0 0 4px 4px;
  z-index: 999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 2px solid var(--walnut-light); }
*:focus-visible { outline: 2px solid var(--walnut-light); outline-offset: 3px; border-radius: 2px; }
button:focus-visible, a:focus-visible { border-radius: 4px; }
a, button { -webkit-tap-highlight-color: transparent; }
nav { padding-left: max(1.75rem, env(safe-area-inset-left)); padding-right: max(3rem, env(safe-area-inset-right)); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .julie-grid { grid-template-columns: 1fr; gap: 3rem; }
  .julie-img { max-width: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  nav { padding: 1.25rem 1.5rem; }
  nav.scrolled { padding: 1rem 1.5rem; }
  nav { padding-left: max(1.5rem, env(safe-area-inset-left)); padding-right: max(1.5rem, env(safe-area-inset-right)); }
  .nav-links li:not(:last-child) { display: none; }
  .nav-links { gap: 0; }
  .julie-section, .book-section { padding: 5rem 1.5rem; }
  .julie-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .julie-img { max-width: 100%; aspect-ratio: 3/4; }
  .book-photo { display: none; }
  .book-actions { flex-direction: column; align-items: flex-start; }
  .book-title { max-width: 100%; }
  footer { padding: 4rem 1.5rem 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-tagline { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .inline-panel { padding: 4rem 1.5rem; }
  .panel-header { flex-direction: column; gap: 1rem; }
  .acuity-frame { height: 75dvh; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .julie-section, .book-section { padding: 4rem 1.25rem; }
  footer { padding: 3.5rem 1.25rem 2rem; }
  nav { padding: 1.1rem 1.25rem; }
}
