/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru&display=swap');


/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

/* === GLOBAL === */
:root{
  --bg: #E1DBCC;
  --ink: #2A4266;
  --hero: #404D1F;
  --ink-muted: rgba(42, 66, 102, 0.78);
  --rule: rgba(42, 66, 102, 0.35);
  --container: 1180px;
  --gutter: 72px;
  --gutter-sm: 24px;
  --footer-h: 92px;
}

@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  padding-bottom: calc(var(--footer-h) + 24px); /* space for fixed footer */
}

main, .aj-hero {
  animation: page-in 0.4s ease both;
  transition: opacity 0.25s ease;
}

main.is-leaving, .aj-hero.is-leaving {
  opacity: 0;
}

/* === NAV === */
header.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg);
  border-bottom: 1px solid transparent;
  transition: transform 0.3s ease, border-bottom-color 0.2s ease;
}

header.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

header.site-header.nav-hidden {
  transform: translateY(-100%);
}

.site-header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
}

.site-title{
  font-family: 'Kiwi Maru', serif;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

nav.site-nav{
  display: flex;
  gap: 22px;
}

.site-nav a{
  font-family: 'Kiwi Maru', serif;
  font-size: 20px;
  font-weight: 200;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover{ text-decoration: underline; }
.site-nav a.is-active{ text-decoration: underline; text-underline-offset: 0.18em; }

/* === FOOTER === */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Kiwi Maru', serif;
  font-size: 18px;
  text-align: left;
  z-index: 999;
  border-top: 1px solid var(--rule);
}

.site-footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  min-height: var(--footer-h);
}

.site-footer-left a{
  display: grid;
  gap: 6px;
  color: var(--ink-muted);
  text-decoration: none;
}

.site-footer-left a:hover {
  text-decoration: underline;
}

.site-footer-right{
  white-space: nowrap;
  color: var(--ink-muted);
}

/* === SHARED TYPOGRAPHY === */
.aj-h1 {
  font-family: 'Kiwi Maru', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}
.aj-h2 {
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.aj-body {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
}
.aj-body a{
  color:#EB8263;
  text-decoration: none;
}
.aj-body a:hover {
  text-decoration: underline;
}
.caption {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 10px;
}

/* === CONTAINERS === */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* === SHARED TWO-COLUMN LAYOUT === */
.aj-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 0;
  width: 100%;
}
@media (max-width: 768px) {
  .aj-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* === HERO (Home Section 1) === */
.aj-hero {
  background-color: var(--hero);
  color: var(--bg);
}

.aj-hero-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px var(--gutter);
}
.aj-hero-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.aj-hero-portrait{
  width: 100%;
  max-width: 520px;
}

.aj-hero-portrait img{
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.aj-hero-text body{
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--bg);
}
.aj-hero-text h1{
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--bg);
}

/* === IDEAS PAGE === */
.aj-ideas-title {
  text-align: center;
  padding: 46px 0 30px;
  width: 100%;
}

.aj-page{
  padding-top: 18px;
  padding-bottom: 28px;
}

.aj-section{
  padding: 32px 0;
  margin-bottom: 50px;
}

.aj-media{
  width: 100%;
}

.aj-media img{
  width: 100%;
  height: auto;
}

.aj-illustration-container{
  width: 100px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 26px;
}

.aj-illustration-container-sun{
    width: 100px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 26px;
  }

.aj-illustration img{
    width: 100%;
    height: auto;
  }

.aj-quote{
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  color: var(--ink);
  white-space: pre-line;
}

@media (max-width: 980px){
  :root{ --gutter: 40px; }
  .aj-hero-portrait{ max-width: none; }
}

/* === MOBILE MENU TOGGLE === */
.menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  width: 22px;
  height: 22px;
  position: relative;
}

/* Two lines — slide to center, then rotate into X */
.menu-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  /* Closing: first unrotate, then slide apart */
  transition: transform 0.25s ease, top 0.2s ease 0.2s;
}
.menu-toggle span:nth-child(1) { top: 6px; }
.menu-toggle span:nth-child(2) { top: 14px; }

/* Opening: first slide to center, then rotate */
header.site-header.menu-open .menu-toggle span {
  transition: top 0.15s ease, transform 0.25s ease 0.15s;
}
header.site-header.menu-open .menu-toggle span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
header.site-header.menu-open .menu-toggle span:nth-child(2) {
  top: 10px;
  transform: rotate(-45deg);
}

@media (max-width: 1024px){
  nav.site-nav{ display: none; }
  .menu-toggle{ display: flex; }

  /* Menu open: full-viewport overlay */
  header.site-header.menu-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    border-bottom-color: transparent;
  }
  header.site-header.menu-open .site-header-inner {
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    max-width: 100%;
    min-height: 100%;
  }
  header.site-header.menu-open .site-title {
    order: 1;
    flex: 1;
  }
  header.site-header.menu-open .menu-toggle {
    order: 2;
  }
  header.site-header.menu-open nav.site-nav {
    order: 3;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 8px;
  }
  header.site-header.menu-open .site-nav a {
    font-size: 28px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    width: 100%;
    text-decoration: none;
  }
  header.site-header.menu-open .site-nav a.is-active {
    text-decoration: none;
  }
}

@media (max-width: 640px){
  :root{ --gutter: var(--gutter-sm); --footer-h: 104px; }
  .site-header-inner{ padding: 22px var(--gutter); }
  .site-title{ font-size: 20px; }
  .site-footer-inner{ padding: 16px var(--gutter); flex-direction: column; align-items: flex-start; }
  .aj-hero-inner{ padding: 28px var(--gutter); }
  .aj-hero-grid{ grid-template-columns: 1fr; }
}

/* === IDEAS PAGINATION === */
.ideas-pag body{
  bottom: 0;
  left: 0;
  width: 100%;
  font-family: 'Kiwi Maru', serif;
  color: var(--ink);
  font-size: 18px;
  text-align: left;
}

.ideas-pag-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  min-height: var(--footer-h);
  font-family: 'Kiwi Maru', serif;
  color: var(--ink);
  font-size: 18px;
  text-align: left;
}

.ideas-pag-inner a{
  font-family: 'Kiwi Maru', serif;
  font-size: 18px;
  color: var(--ink);
  display: grid;
  gap: 6px;
  text-decoration: none;
}

.ideas-pag-inner a:hover {
  text-decoration: underline;
}