/* assets/css/style.css */

:root {
  /* Inspired by your hero image */
  --ink: #141414;
  --paper: #ffffff;

  --night: #0b0b0c;
  --night-2: #111114;

  --rose-ivory: #f6f0ee;
  --blush: #aa9087;     /* sampled vibe */
  --soft-rose: #7a5248; /* sampled vibe */

  --wine: #4a1720;      /* CTA */
  --wine-2: #6a2430;

  --muted: rgba(20,20,20,.65);
  --muted-on-dark: rgba(255,255,255,.75);

  --radius: 16px;
  --shadow: 0 18px 45px rgba(0,0,0,.16);

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Source Serif 4", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,20,20,.08);
}

.site-header--overlay {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand__link {
  text-decoration: none;
  color: inherit;
}
.brand__name {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: .02em;
  font-size: 28px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav__link {
  text-decoration: none;
  color: inherit;
  font-size: 15px;
  opacity: .85;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav__link:hover { opacity: 1; background: rgba(20,20,20,.05); }
.nav__link.is-active { opacity: 1; background: rgba(170,144,135,.18); }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 12px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(20,20,20,.7);
  margin: 5px 0;
  border-radius: 99px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, opacity .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--wine);
  color: #fff;
  border-color: rgba(255,255,255,.08);
}
.btn-primary:hover { background: var(--wine-2); }

/* Home (hero) */
.page-home { background: var(--night); color: #fff; }
.page-home .brand__name,
.page-home .nav__link { color: rgba(255,255,255,.92); }
.page-home .nav__link:hover { background: rgba(255,255,255,.08); }
.page-home .nav__link.is-active { background: rgba(170,144,135,.18); }

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--night);
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 80% at 20% 50%, rgba(0,0,0,.62), rgba(0,0,0,.25) 55%, rgba(0,0,0,.08) 78%);
}

.hero-content {
  position: relative;
  padding-top: 120px; /* gives room for overlay header */
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 520px;
  /* Push slightly lower than centre */
  transform: translateY(6vh);
}

.hero-kicker {
  font-family: var(--font-heading);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  opacity: .85;
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  margin: 0 0 14px;
}
.hero-title em { font-style: italic; }

.hero-sub {
  margin: 0 0 22px;
  color: var(--muted-on-dark);
  max-width: 46ch;
}

/* Fade-in vibe: elements start hidden; become visible when hero is ready */
.js-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 3.2s ease, transform 3.2s ease;
}
.is-hero-ready .js-fade {
  opacity: 1;
  transform: translateY(0);
}
.is-hero-ready .js-fade:nth-child(1) { transition-delay: .10s; }
.is-hero-ready .js-fade:nth-child(2) { transition-delay: .22s; }
.is-hero-ready .js-fade:nth-child(3) { transition-delay: .34s; }
.is-hero-ready .js-fade:nth-child(4) { transition-delay: .46s; }

/* Inner pages */
.page-inner { background: var(--paper); color: var(--ink); }
.content { padding-top: 30px; }

.page-head {
  padding: 10px 0 22px;
}
.page-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  margin: 0 0 12px;
}
.page-intro {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.content-block { padding: 32px 0 70px; }

/* Left-anchored reading column inside a centered container */
.prose{
  max-width: 100%;
  margin: 0 auto;     /* centers the column */
  text-align: left;   /* keeps text left-aligned */
}

.prose h2, .prose h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
}
.prose h2 { font-size: 30px; margin: 40px 0 10px; }
.prose h3 { font-size: 24px; margin: 28px 0 10px; }
.prose p { margin: 12px 0; color: rgba(20,20,20,.88); }




/* Image floats with text wrap */
.float-right, .float-left {
  width: min(360px, 46%);
  margin: 10px 0 10px 24px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--rose-ivory);
}
.float-left { float: left; margin: 10px 24px 10px 0; }
.float-right { float: right; }

.float-right img, .float-left img { display: block; width: 100%; }
.float-right figcaption, .float-left figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(20,20,20,.65);
}

.prose::after {
  content: "";
  display: table;
  clear: both;
}

.callout {
  margin: 34px 0;
  padding: 18px 18px;
  background: linear-gradient(180deg, rgba(170,144,135,.14), rgba(246,240,238,.85));
  border: 1px solid rgba(122,82,72,.18);
  border-radius: var(--radius);
}

/* Form */
.form { max-width: 680px; }
.form-row { margin: 14px 0; }
label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(20,20,20,.75);
}
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(20,20,20,.12);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: rgba(122,82,72,.35);
  box-shadow: 0 0 0 4px rgba(170,144,135,.18);
}

.form-actions { margin-top: 18px; }

/* Honeypot hidden safely */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Notices */
.notice {
  max-width: 680px;
  padding: 12px 14px;
  border-radius: 14px;
  margin: 0 0 18px;
  border: 1px solid rgba(20,20,20,.12);
}
.notice--ok { background: rgba(46, 125, 50, .08); border-color: rgba(46, 125, 50, .18); }
.notice--bad { background: rgba(183, 28, 28, .08); border-color: rgba(183, 28, 28, .18); }

/* Footer – restrained black & white */
.site-footer {
  padding: 42px 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
}

.footer-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  text-decoration: none;
  color: rgba(0,0,0,.75);
  padding: 6px 8px;
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}

.footer-nav a:hover {
  color: rgba(0,0,0,.95);
  background: rgba(0,0,0,.04);
}

.footer-meta {
  font-size: 13px;
  color: rgba(0,0,0,.55);
}








.footer-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-nav a {
  text-decoration: none;
  color: rgba(20,20,20,.8);
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 10px;
}
.footer-nav a:hover { background: rgba(20,20,20,.05); }
.footer-meta { color: rgba(20,20,20,.6); }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    right: 24px;
    top: 64px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(20,20,20,.08);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .hero-content { padding-top: 110px; }
  .hero-copy { max-width: 520px; transform: translateY(4vh); }
}

@media (max-width: 720px) {
  .container { width: min(1120px, calc(100% - 32px)); }

  .float-right, .float-left {
    float: none;
    width: 100%;
    margin: 16px 0;
  }
}

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .45s ease;
}

.page-transition.is-active {
  opacity: 1;
}


/* Make sure the page below is white */
.page-inner { background: #fff; }



/* Push main content down so it doesn't overlap the image header */
.page-inner .content-block {
  padding-top: 3px;
}




/* Overlay header base */
.site-header--overlay {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom: none;
}

/* When scrolled, become the normal white header */
.site-header--overlay.is-scrolled {
  position: sticky;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,20,20,.08);
}

.site-header--dark{
  background: rgba(11,11,12,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-header--dark .brand__name,
.site-header--dark .nav__link{
  color: rgba(255,255,255,.92);
}

.site-header--dark .nav__link:hover{
  background: rgba(255,255,255,.08);
}

.site-header--dark .nav-toggle span{
  background: rgba(255,255,255,.8);
}



/* Inner pages are white beneath the hero */
.page-inner {
  background: #fff;
  color: var(--ink);
}




/* Once you scroll into white content, the header should flip to white background + dark text */
.site-header--overlay.is-scrolled {
  position: sticky;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,20,20,.08);
}
.site-header--overlay.is-scrolled .brand__name,
.site-header--overlay.is-scrolled .nav__link {
  color: rgba(20,20,20,.88);
}
.site-header--overlay.is-scrolled .nav__link:hover {
  background: rgba(20,20,20,.05);
}

/* Banner page title can be non-italic if you want it distinct */
.hero-page-title {
  font-style: normal;
}

/* Content spacing immediately after hero */
.content-block--after-hero {
  padding-top: 40px;
}

@media (max-width: 900px){
  .site-header--dark.is-open .nav{
    background: rgba(11,11,12,.98);
    border: 1px solid rgba(255,255,255,.10);
  }
}


/* PJAX content transitions */
#pjax-container {
  opacity: 1;
  transition: opacity .22s ease;
}

#pjax-container.is-loading {
  opacity: 0;
}

.nav a.is-active,
.footer-nav a.is-active {
  opacity: 1;
  background: rgba(20,20,20,.06);
  border-radius: 10px;
}



