/* =========================================================
   MOONSEA — GLOBAL STYLES
   ========================================================= */

:root{
  --ink:#13203A;
  --ink-2:#1C2C4E;
  --paper:#F6F4EF;
  --paper-2:#EDEAE1;
  --brass:#B8862E;
  --brass-light:#D8B15E;
  --slate:#5B6472;
  --line:#DAD5C8;
  --line-on-ink:rgba(246,244,239,0.18);
  --white:#FFFFFF;
  --text:#1F2328;

  --font-display:"Fraunces", Georgia, "Times New Roman", serif;
  --font-body:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap:1280px;
}


/* =========================================================
   RESET
   ========================================================= */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--paper);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

img,
svg{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
}

h1,
h2,
h3{
  font-family:var(--font-display);
  font-weight:500;
  line-height:1.1;
  margin:0 0 .5em;
}

p{
  margin:0 0 1em;
  max-width:62ch;
}

.wrap{
  width:100%;
  max-width:var(--wrap);
  margin:0 auto;
  padding-left:36px;
  padding-right:36px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link{
  position:absolute;
  left:-999px;
  top:0;
  background:var(--brass);
  color:var(--ink);
  padding:10px 16px;
  z-index:200;
}

.skip-link:focus{
  left:12px;
  top:12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:2px solid var(--brass);
  outline-offset:2px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:13px 26px;

  font-family:var(--font-body);
  font-weight:500;
  font-size:.95rem;

  text-decoration:none;

  border-radius:2px;
  border:1px solid transparent;

  cursor:pointer;

  white-space:nowrap;

  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease;
}

.btn--brass{
  background:var(--brass);
  color:var(--ink);
}

.btn--brass:hover{
  background:var(--brass-light);
}

.btn--ghost{
  background:transparent;
  border-color:var(--line);
  color:var(--text);
}

.btn--ghost:hover{
  border-color:var(--brass);
}

.hero .btn--ghost,
.section--ink .btn--ghost{
  color:var(--paper);
  border-color:var(--line-on-ink);
}

.hero .btn--ghost:hover,
.section--ink .btn--ghost:hover{
  border-color:var(--brass-light);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header{
  position:sticky;
  top:0;
  z-index:100;

  background:var(--paper);
  border-bottom:1px solid var(--line);
}

.header__row{
  display:flex;
  align-items:center;
  justify-content:space-between;

  min-height:92px;
}

.brand{
  font-family:var(--font-display);
  text-decoration:none;
  color:var(--ink);

  display:flex;
  flex-direction:row;
  align-items:center;

  gap:14px;
  margin:0;

  flex-shrink:0;
}

.brand__logo{
  height:56px;
  width:auto;
  object-fit:contain;
  flex-shrink:0;
}

.brand__logo--footer{
  height:60px;
  background:var(--paper);
  padding:8px 12px;
  border-radius:8px;
}

.brand__name{
  font-size:1.7rem;
  font-weight:500;
  letter-spacing:.01em;
  color:var(--ink);
}

.brand__name--footer{
  color:var(--paper);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav{
  display:flex;
  align-items:center;
  gap:34px;
}

.nav a{
  text-decoration:none;
  font-size:.95rem;
  color:var(--text);

  padding:4px 2px;

  border-bottom:1px solid transparent;

  white-space:nowrap;
}

.nav a:hover{
  border-bottom-color:var(--brass);
}

.nav__cta{
  background:var(--ink);
  color:var(--paper) !important;

  padding:10px 18px;

  border-radius:2px;
}

.nav__cta:hover{
  border-bottom-color:transparent !important;
  background:var(--ink-2);
}

.nav-toggle{
  display:none;

  flex-direction:column;
  gap:5px;

  background:none;
  border:none;

  cursor:pointer;
  padding:8px;
}

.nav-toggle span{
  width:22px;
  height:2px;

  background:var(--ink);

  display:block;
}


/* =========================================================
   HERO
   ========================================================= */

.hero{
  background:var(--ink);
  color:var(--paper);

  padding-top:72px;
}


/*
  IMPORTANT:

  The left column is deliberately larger than the right.
  This prevents the heading/body from becoming squeezed.

  The right column is still large enough for the artwork.
*/

.hero__row{
  display:grid;

  grid-template-columns:minmax(0,1.15fr) minmax(420px,.85fr);

  gap:48px;

  align-items:center;

  padding-bottom:64px;
}


/* -------------------------
   HERO COPY
   ------------------------- */

.hero__copy{
  position:relative;
  z-index:2;

  min-width:0;
}

.hero__copy h1{
  font-size:clamp(2.7rem,4.5vw,4rem);

  color:var(--paper);

  /*
    Keep the heading on approximately
    the intended two-line layout.
  */
  max-width:16ch;

  margin-bottom:24px;
}

.hero__lede{
  color:#C9CEDA;

  font-size:1.08rem;

  max-width:54ch;

  margin-bottom:0;
}

.hero__actions{
  display:flex;

  align-items:center;

  gap:16px;

  flex-wrap:nowrap;

  margin-top:24px;
}


/* -------------------------
   HERO ART CONTAINER
   ------------------------- */

.hero__art{
  width:100%;

  /*
    Prevent the image from affecting
    the width of the grid.
  */
  min-width:0;

  min-height:460px;

  display:flex;

  align-items:center;

  justify-content:center;

  position:relative;

  z-index:1;

  overflow:visible;

  padding:0;
}


/*
  The image is intentionally large,
  but NOT allowed to overflow the
  actual right column horizontally.

  This is the key correction from
  the previous version.
*/

.hero__image{
  display:block;

  width:100%;

  max-width:600px;

  height:auto;

  max-height:none;

  object-fit:contain;

  transform:none;
}


/* SVG fallback */

.hero__fallback{
  display:block;

  width:100%;

  max-width:600px;

  height:auto;

  transform:none;
}

.hero__image[hidden],
.hero__fallback[hidden]{
  display:none;
}


/* =========================================================
   HERO STATS
   ========================================================= */

.stats{
  border-top:1px solid var(--line-on-ink);

  display:grid;

  grid-template-columns:repeat(4,1fr);

  padding:30px 0;
}

.stats__item{
  display:flex;
  flex-direction:column;
  gap:4px;

  padding:0 24px;

  border-left:1px solid var(--line-on-ink);

  min-width:0;
}

.stats__item:first-child{
  border-left:none;
  padding-left:0;
}

.stats__num{
  font-family:var(--font-display);

  font-size:1.7rem;

  color:var(--brass-light);
}

.stats__label{
  font-size:.85rem;
  color:#B8BECC;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section{
  padding:88px 0;
}

.section--ink{
  background:var(--ink);
  color:var(--paper);
}

.section--ink h2{
  color:var(--paper);
}

.section--ink p{
  color:#C9CEDA;
}

.section--paper2{
  background:var(--paper-2);
}

.section--ink + .section--ink{
  border-top:1px solid var(--line-on-ink);
}

.section__head{
  max-width:640px;
  margin-bottom:48px;
}

.section__head h2{
  font-size:clamp(1.6rem,2.6vw,2.1rem);
}

.section__head p{
  color:var(--slate);
}

.section--ink .section__head p{
  color:#C9CEDA;
}


/* =========================================================
   GRID / CARDS
   ========================================================= */

.grid{
  display:grid;

  gap:1px;

  background:var(--line-on-ink);
}

.grid--3{
  grid-template-columns:repeat(3,1fr);
}

.grid--2{
  grid-template-columns:repeat(2,1fr);
}

.section:not(.section--ink) .grid{
  background:var(--line);
}

.card{
  background:var(--ink);

  padding:34px 30px;

  border-top:2px solid var(--brass);
}

.section:not(.section--ink) .card{
  background:var(--paper);
}

.card__icon{
  width:34px;
  height:34px;

  color:var(--brass);

  margin-bottom:18px;
}

.card h3{
  font-size:1.08rem;
  color:var(--paper);
}

.section:not(.section--ink) .card h3{
  color:var(--text);
}

.card p{
  color:#C9CEDA;

  font-size:.95rem;

  margin-bottom:0;
}

.section:not(.section--ink) .card p{
  color:var(--slate);
}

.feature{
  padding:6px 0;
}

.feature h3{
  font-size:1.05rem;
  color:var(--paper);
}

.feature p{
  color:#C9CEDA;
  font-size:.95rem;
}


/* =========================================================
   CHIPS
   ========================================================= */

.chips{
  list-style:none;

  margin:0;
  padding:0;

  display:flex;
  flex-wrap:wrap;

  gap:12px;
}

.chips li{
  border:1px solid var(--line);

  padding:10px 18px;

  font-size:.92rem;

  border-radius:2px;

  background:var(--white);
}


/* =========================================================
   STEPS
   ========================================================= */

.steps{
  list-style:none;

  margin:0;
  padding:0;

  display:grid;

  grid-template-columns:repeat(4,1fr);

  gap:0;

  border-top:1px solid var(--line);
}

.steps__item{
  padding:26px 22px 0 0;

  border-left:1px solid var(--line);

  padding-left:22px;
}

.steps__item:first-child{
  border-left:none;
  padding-left:0;
}

.steps__index{
  font-family:var(--font-display);

  color:var(--brass);

  font-size:.95rem;

  display:block;

  margin-bottom:10px;
}

.steps__item h3{
  font-size:1.02rem;
}

.steps__item p{
  font-size:.93rem;
  color:var(--slate);
}


/* =========================================================
   ABOUT
   ========================================================= */

.about__row{
  max-width:760px;
}

.about h2{
  font-size:clamp(1.6rem,2.6vw,2.1rem);
}

.about p{
  font-size:1.05rem;
  color:var(--slate);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact__row{
  display:grid;

  grid-template-columns:.9fr 1.1fr;

  gap:56px;
}

.contact__intro h2{
  font-size:clamp(1.6rem,2.6vw,2.1rem);
}

.contact__intro p{
  color:var(--slate);
}

.contact__details{
  margin-top:28px;
}

.contact__details div{
  padding:12px 0;

  border-top:1px solid var(--line);

  display:flex;

  justify-content:space-between;

  gap:16px;
}

.contact__details dt{
  color:var(--slate);
  font-size:.9rem;
}

.contact__details dd{
  margin:0;
  font-weight:500;
}

.form{
  background:var(--white);

  border:1px solid var(--line);

  padding:32px;

  border-radius:2px;
}

.form__row{
  margin-bottom:18px;

  display:flex;
  flex-direction:column;

  gap:6px;
}

.form__row label{
  font-size:.88rem;
  color:var(--slate);
}

.form__row input,
.form__row select,
.form__row textarea{
  font-family:var(--font-body);

  font-size:.98rem;

  padding:11px 12px;

  border:1px solid var(--line);

  border-radius:2px;

  background:var(--paper);

  color:var(--text);
}

.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus{
  outline:2px solid var(--brass);
  outline-offset:1px;
}

.form__note{
  margin:14px 0 0;

  font-size:.9rem;

  color:var(--slate);

  min-height:1.2em;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer{
  background:var(--ink);

  color:#C9CEDA;

  padding:64px 0 0;
}

.footer__row{
  display:grid;

  grid-template-columns:1.4fr 1fr 1fr;

  gap:40px;

  padding-bottom:48px;

  border-bottom:1px solid var(--line-on-ink);
}

.brand--footer{
  color:var(--paper);
}

.footer__tag{
  max-width:32ch;
  font-size:.92rem;
}

.footer__col h4{
  font-family:var(--font-body);

  font-size:.85rem;

  color:var(--paper);

  margin:0 0 14px;

  font-weight:600;
}

.footer__col a{
  display:block;

  text-decoration:none;

  color:#C9CEDA;

  font-size:.92rem;

  padding:5px 0;
}

.footer__col a:hover{
  color:var(--brass-light);
}

.footer__legal{
  padding:22px 0;

  font-size:.82rem;

  color:#8992A3;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width:1400px){

  .hero__row{
    grid-template-columns:minmax(0,1.2fr) minmax(500px,.8fr);

    gap:40px;
  }

  .hero__image,
  .hero__fallback{
    max-width:640px;
  }

  .hero__copy h1{
    font-size:4.2rem;
  }
}


/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width:1100px){

  .wrap{
    padding-left:28px;
    padding-right:28px;
  }

  .nav{
    gap:22px;
  }

  .hero{
    padding-top:56px;
  }

  .hero__row{
    /*
      Keep the left side dominant.
    */
    grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);

    gap:28px;
  }

  .hero__copy h1{
    font-size:clamp(2.5rem,5vw,3.5rem);
  }

  .hero__art{
    min-height:400px;
  }

  .hero__image,
  .hero__fallback{
    max-width:540px;
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:900px){

  .header__row{
    min-height:78px;
  }

  .nav{
    display:none;
  }

  .nav-toggle{
    display:flex;
  }

  .hero__row{
    grid-template-columns:1fr;

    gap:36px;

    padding-bottom:48px;
  }

  /*
    On tablet the image becomes a separate
    full-width visual above the text.
  */
  .hero__art{
    order:-1;

    width:100%;

    min-height:360px;

    max-width:620px;

    margin:0 auto;

    justify-self:center;
  }

  .hero__image,
  .hero__fallback{
    width:100%;
    max-width:620px;

    transform:none;
  }

  .hero__copy h1{
    max-width:15ch;
  }

  .stats{
    grid-template-columns:repeat(2,1fr);

    row-gap:20px;
  }

  .stats__item:nth-child(3){
    border-left:none;
    padding-left:0;
  }

  .grid--3,
  .grid--2{
    grid-template-columns:1fr 1fr;
  }

  .steps{
    grid-template-columns:1fr 1fr;

    row-gap:26px;
  }

  .steps__item:nth-child(3){
    border-left:none;
    padding-left:0;
  }

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

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


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:640px){

  .wrap{
    padding-left:20px;
    padding-right:20px;
  }

  .header__row{
    min-height:72px;
  }

  .brand__logo{
    height:48px;
  }

  .brand__name{
    font-size:1.45rem;
  }

  .nav{
    position:absolute;

    top:72px;

    left:0;
    right:0;

    background:var(--paper);

    flex-direction:column;

    align-items:flex-start;

    gap:0;

    border-bottom:1px solid var(--line);

    max-height:0;

    overflow:hidden;

    transition:max-height .25s ease;
  }

  .nav.is-open{
    max-height:400px;
  }

  .nav a{
    width:100%;

    padding:14px 20px;

    border-bottom:1px solid var(--line);
  }

  .nav__cta{
    border-radius:0;
  }

  .hero{
    padding-top:42px;
  }

  .hero__row{
    grid-template-columns:1fr;

    gap:24px;
  }

  .hero__art{
    order:-1;

    width:100%;

    min-height:280px;

    max-width:100%;

    overflow:hidden;

    margin:0 auto;
  }

  .hero__image,
  .hero__fallback{
    width:100%;

    max-width:520px;

    margin:0 auto;
  }

  .hero__copy h1{
    font-size:clamp(2.45rem,12vw,3.2rem);

    max-width:14ch;
  }

  .hero__lede{
    font-size:1rem;
  }

  /*
    Allow buttons to wrap only on very small screens.
  */
  .hero__actions{
    flex-wrap:wrap;

    gap:12px;
  }

  .btn{
    padding:12px 20px;
  }

  .stats{
    grid-template-columns:1fr 1fr;

    padding:26px 0;
  }

  .stats__item{
    padding:0 12px;
  }

  .stats__item:nth-child(3),
  .stats__item:nth-child(4){
    border-top:1px solid var(--line-on-ink);

    padding-top:18px;
  }

  .grid--3,
  .grid--2{
    grid-template-columns:1fr;
  }

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

  .steps__item{
    border-left:none;

    padding-left:0;

    border-top:1px solid var(--line);

    padding-top:22px;
  }

  .steps__item:first-child{
    border-top:none;

    padding-top:0;
  }

  .footer__row{
    grid-template-columns:1fr;

    gap:28px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion:reduce){

  html{
    scroll-behavior:auto;
  }

  *{
    transition:none !important;
  }
}