/* =========================================================
   Umbral Clarity — Global Styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  animation: fadein 1.5s ease-out both;
}

:root {
  --bg:            #0D0505;
  --surface:       #120A0A;
  --border:        #5574A6;
  --text-primary:  #C7BFBB;
  --text-secondary:#A09994;
  --text-muted:    #6A6260;
  --link:          #385DFF;
  --hover:         #B3051C;
  --pink:          #FFBDC1;
  --white:         #ffffff;
  --black:         #000000;
}

body {
  background-image: 
    linear-gradient(to bottom, transparent 0%, var(--bg) 40%),
    linear-gradient(to top, var(--bg) 0%, transparent 25%),
    linear-gradient(rgba(13,5,5,0.9), rgba(13,5,5,0.9)),
    url('../images/smoke-background.png'),
    linear-gradient(var(--bg), var(--bg));
  background-size: cover, cover, cover, 100% 800px, cover;
  background-position: center top, center top, center top, center top, center top;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, scroll, scroll;
  color: var(--text-primary);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 21px;
  line-height: 1.3em;
  -webkit-font-smoothing: antialiased;
}

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

p { margin-bottom: 1.15rem;
    font-size: 21px; }

@media (max-width: 600px) {
  	body {
   	font-size: 20px;
  }
  }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease-in-out;
}

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



/* ── Header ── */


header {
  background: transparent;
  padding: 0.5rem 2rem;
  height: 140px;
  display: flex;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.logo {
  display: block;
  width: 133px;
  height: 133px;
  flex-shrink: 0;
  padding-top: 0.75rem;
  z-index: 1001;
  position: relative;
}

.logo img {
  width: 133px;
  height: 133px;
  border-radius: 50%;
  display: block;
}

header nav {
  display: flex;
  position: absolute;
  right: 17rem;
  gap: 3rem;
  align-items: center;
}

header nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease-in-out;
}

header nav a:hover {
  color: var(--hover);
}

header nav a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* ── Mobile hamburger ── */


.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 47px;
  height: 47px;
  position: relative;
  z-index: 1001;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  top: 50%;
  transition: transform 0.2s ease;
}

.hamburger::before { transform: translateY(-9px); }
.hamburger::after  { transform: translateY(9px); }

.hamburger.open::before { transform: rotate(45deg); }
.hamburger.open::after  { transform: rotate(-45deg); }

.patty {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  top: calc(50% + 1px);
  margin-top: -1.5px;
  transition: opacity 0.2s ease;
}

.hamburger.open .patty {
  opacity: 0;
}


/* ── Mobile menu overlay ── */

.mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--border);
  z-index: 1000;
  flex-direction: column;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}


.mobile-menu nav {
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 80%;
  line-height: 3.5em;
}

.mobile-menu nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--pink);
  display: block;
  padding: 0.25rem 0;
  text-decoration: none;
}

.mobile-menu nav a:hover {
  color: var(--hover);
}


/* ── Main ── */


main {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 5.95vmax;
  padding-bottom: 5.95vmax;
  padding-right: 3.5rem;
  padding-left: 3.5rem;
}

/* ── Footer ── */

footer {
  padding: 1rem 5rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

footer a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

footer svg {
  width: 28px;
  height: 28px;
  fill: var(--link);
  transition: fill 0.2s ease-in-out;
}

footer a:hover svg {
  fill: var(--hover);
}

/* –– Disclosure –– */

details.disclosure {
  margin-bottom: 1.15rem;
}

details.disclosure summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  color: var(--text-primary);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 21px;
  margin-left: -1.95em;
}

details.disclosure summary::-webkit-details-marker {
  display: none;
}

details.disclosure summary::before {
  content: '›';
  font-size: 1.1em;
  transition: transform 0.2s ease;
  display: inline-block;
  line-height: 1;
  width: 1.2em;
  text-align: left;
}

details.disclosure[open] summary::before {
  content: '⌄';
}

details.disclosure .disclosure-body {
  margin-top: 0.75rem;
  margin-top: 2rem;
}

/* ── Startpage ── */


.startpage-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 4rem;
  align-items: start;
}

.startpage-text {
  margin-top: 30px;
  margin-left: -1.5rem;
  margin-right: 40px;
}

.disclosure {
  margin-top: 40px;
}

.startpage-photo {
  align-self: start;
  margin-top: 90px;
  
}

.startpage-photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-right: -3em;
  margin-left: 3em;
  border-radius: 25px;
  filter: opacity(0.6);
}

.social-icons {
  display: flex;
  Gap: 0.77rem;
  margin-top: 2.5rem;
  justify-content: right;
}

.social-icons a {
  display: inline-flex;
  text-decoration: none;
}

.social-icons svg {
  width: 27px;
  height: 27px;
  color: var(--border);
  transition: fill 0.2s ease-in-out;
}

.social-icons a:hover svg {
  Color: var(--hover);
}




/* ── Writing page ── */



.writing-layout {
  display: grid;
  grid-template-columns: 640px 360px;
  gap: 6rem;
  align-items: start;
}

.writing-main h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.substack-link {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--link);
}

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

#substack-feed {
  margin-top: 0;
}

.substack-post {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  align-items: flex-start;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
}

.substack-post:last-child {
  border-bottom: none;
}

.substack-post img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  filter: saturate(0);
  transition: filter 0.3s ease;
}

.substack-post:hover img {
  filter: saturate(0.75);
}

.substack-post:hover .substack-post-title a {
  color: var(--hover);
}

.substack-post-info {
  flex: 1;
}

.substack-post-date {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 6px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.substack-post-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.substack-post-title a {
  text-decoration: none;
  color: var(--text-primary);
}

.substack-post-title a:hover {
  color: var(--hover);
}

.substack-post-excerpt {
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
  font-size: 1rem;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.archive-box {
  border: 1.5px solid color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: 25px;
  padding: 2rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  background: var(--surface);
}

.archive-box h3 {
  text-align: center;
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-box p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-secondary);
}




/* ── Natal consultations ── */



.natal-layout {
  display: grid;
  grid-template-columns: 460px 650px;
  gap: 5rem;
  align-items: start;
}

.natal-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: -40px;
  margin-right: 40px;
}

.natal-text {
  margin-left: 2.5rem;
  margin-right: -2.5rem;
  margin-top: 20px;
}

.natal-chart-col img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  filter: opacity(0.7);
}

.chart-caption {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-family: 'Bricolage Grotesque', sans-serif;
  text-align: center;
}

.book-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: var(--border);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 2rem;
  transition: background 0.2s ease-in-out;
}

.book-btn:hover {
  background: var(--link);
  color: var(--white);
}


/* ── Responsive ── */



@media (max-width: 900px) {

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

  .startpage-text {
    margin-left: 0px;
    margin-right: 0px;
  }

  .startpage-photo {
    order: -1;
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
    max-width: 400px;
    margin: 0 auto;
  }

  .startpage-photo img {
    max-width: 100%;
    margin: 0 auto;
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
  }

  .natal-chart-col {
    margin-top: 0px;
    margin-left: 0px;
    max-width: 460px;
    margin: 0 auto;
  }

  .natal-text {
    margin-left: 0rem;
    margin-right: 0rem;
    margin-top: -20px;
  }

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

  .writing-layout aside {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .substack-post img {
    width: 90px;
    height: 60px;
  }

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

  .natal-chart-col img {
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 1.25rem;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo {
    width: 110px;
    height: 110px;
    margin-top: 2rem;
  }

  .logo img {
    width: 110px;
    height: 110px;
  }

  .hamburger {
    display: block;
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
  }

  header nav {
    display: none;
  }

  main {
    padding: 7rem 1.25rem 4rem;
  }

  details.disclosure summary {
    margin-left: 0;
  }

  .startpage-photo .social-icons {
    display: none;
  }

  .startpage-text {
    margin-top: 10px;
  }

  .mobile-nav-icons {
    margin-top: 2.5rem;
    justify-content: left;
    gap: 22px;
  }

  .mobile-nav-icons svg {
    width: 32px;
    height: 32px;
    color: var(--pink);
  }

  footer {
    padding: 1rem 1.25rem 2rem;
  }

}
