/* ========== Design tokens ========== */
:root{
  --c-white: #FFFFFF;
  --c-warm:  #E0E0DB;
  --c-blue:  #AEDBE0;
  --c-ink:   #003561;
  --c-ink2:  #005194;

  --bg: linear-gradient(var(--c-blue) 0%, var(--c-warm) 100%);
  --radius-xl: 28px;

  --shadow-soft: 0 12px 40px rgba(0, 53, 97, 0.10);

  --h1-size: clamp(2.1rem, 3.6vw, 4rem);
  --h2-size: clamp(1.6rem, 2.6vw, 2.8rem);
  --p-size:  1rem;

  --lh-head: 1.2;
  --lh-body: 1.5;
  --ls-head: -0.02em;
}

/* ========== Base typography ========== */
html, body { height: 100%; scrollbar-width: none;}
body{
  font-family: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: var(--lh-body);
  background: var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--c-ink);
}

h1, h2, h3, h4, h5{
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
  color: var(--c-ink);
}

h1{ font-size: var(--h1-size); }
h2{ font-size: var(--h2-size); }

p { font-size: var(--p-size); color: var(--c-ink); opacity: .95; }
.small, small { opacity: .85; }

/* ========== Layout helpers ========== */
.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main{
  flex: 1;
  display: flex;
  align-items: center;
}

.section-pad{
  padding-top: clamp(1rem, 5vw, 4rem);
  padding-bottom: clamp(1rem, 5vw, 4rem);
}

/* ========== Navbar ========== */
.navbar{
  padding-top: 1.4rem;
  padding-bottom: 1rem;
  background: transparent !important;
}

.brand-signature{
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-ink2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.brand-signature img{
  height: 54px; /* optional if you use an image logo */
  width: auto;
}

.nav-link{
  color: var(--c-ink) !important;
  opacity: .9;
  padding: .25rem .75rem !important;
}

.nav-link.active{
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
  opacity: 1;
}

/* ========== Buttons ========== */
.btn-pill{
  --bs-btn-padding-y: 1.1rem;
  --bs-btn-padding-x: 2.1rem;
  --bs-btn-border-radius: 999px;
  font-family: "Nunito Sans", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .95rem;
}

.btn-primary{
  --bs-btn-bg: var(--c-ink);
  --bs-btn-border-color: var(--c-ink);
  --bs-btn-hover-bg: #002b4d;
  --bs-btn-hover-border-color: #002b4d;
}

.btn-outline-primary{
  --bs-btn-color: var(--c-ink);
  --bs-btn-border-color: var(--c-ink);
  --bs-btn-hover-bg: rgba(0,53,97,.08);
  --bs-btn-hover-border-color: var(--c-ink);
}

.fullbleed{
  width: 100%;
}

.fullbleed.bg{
  background: var(--bg);
}

/* If you ever need true edge-to-edge inside a container */
.full-bleed{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ========== Hero image with soft fade (right + bottom) ========== */
.hero-image-wrap{
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 11 / 14;
  overflow: hidden;
}

.hero-image-wrap img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 48% 50%;

  /* mask fades to transparency (not a color) */
  -webkit-mask-image:
    linear-gradient(to right,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 70%,
      rgba(0,0,0,.2) 90%,
      rgba(0,0,0,0) 100%
    ),
    linear-gradient(to bottom,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 70%,
      rgba(0,0,0,.2) 90%,
      rgba(0,0,0,0) 100%
    );
  -webkit-mask-composite: intersect;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
}

/* ========== “How I work” snippet / cube area ========== */
.how-work{
  margin-top: 1.25rem;
  max-width: 520px;
}

.how-work .label{
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .25rem;
}

.how-work .desc{
  font-size: .9rem;
  opacity: .9;
}

/* ========== Cube (rotating values) ========== */
.cube-wrap{
  max-width: 520px;
  perspective: 900px;
  perspective-origin: 50% 50%;
}

.cube{
  position: relative;
  width: 100%;
  --depth: clamp(70px, 8vw, 110px);

  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cube .face{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 6px 0;
  backface-visibility: hidden;

  /* show only active */
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.cube .face.is-active{
  opacity: 1;
  pointer-events: auto;
}

.cube .face h5{
  margin: 0 0 .3rem;
  font-size: .83em;
  font-weight: 700;
}

.cube .face p{
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
  opacity: .9;
}

@media (prefers-reduced-motion: reduce){
  .cube{ transition: none; }
  .cube .face{ transition: none; }
}

/* ========== Footer ========== */
.site-footer{
  padding: 1.25rem 0 1.5rem;
  font-size: .95rem;
}

.site-footer .motto{
  font-style: italic;
  opacity: .95;
}

.site-footer .copy{
  text-align: right;
  opacity: .9;
}

/* ========== About page layout ========== */
.about-title{
  text-align: center;
  margin-bottom: 2.2rem;
}

.about-grid{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo{
  width: 100%;
  border-radius: 0; /* keep clean */
  display: block;
}

/* ========== Work page accordion ========== */
.work-accordion .accordion-item{
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(0,53,97,.55);
  border-bottom: 1px solid rgba(0,53,97,.55);
}

.work-accordion .accordion-button{
  background: transparent;
  padding: 2rem 0;
  font-size: 1.8rem;
  color: var(--c-ink);
  box-shadow: none;
}

.work-accordion .accordion-button::after{
  opacity: .8;
}

.work-accordion .accordion-body{
  padding: 0 0 2rem 0;
  max-width: 720px;
}

/* ========== Writing cards ========== */
.writing-card{
  border: 0;
  background: transparent;
}

.writing-card img{
  width: 100%;
  height: auto;
  display: block;
}

.writing-card .title{
  margin-top: 1.1rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.writing-card .blurb{
  font-size: .95rem;
  opacity: .9;
  min-height: 3.2em;
}

.writing-card .btn{
  margin-top: .75rem;
}

/* ========== Mobile ========== */
@media (max-width: 991.98px){
  .main{ align-items: flex-start; }

  .hero-image-wrap{
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

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

  .site-footer .copy{
    text-align: left;
    margin-top: .5rem;
  }
}

@media (min-width: 992px){
  .hero-copy { padding-left: 1.25rem; }
}

.cube-wrap h5 { color: #003561; }
.cube-wrap p  { color: rgba(0, 53, 97, .75); }
.hero-cta {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.site-gutter {
  padding-left: clamp(1rem, 4vw, 6rem);
  padding-right: clamp(1rem, 4vw, 6rem);
}