/* ==========================================================================
   The header and the footer.

   One stylesheet and one set of class names, used by the compiled landing
   bundle and by every EJS page. They were two different bars before -- the
   homepage rendered the bundle's own header and every other page rendered
   ours, so the site changed shape the moment you clicked a link.

   Anything here is shared. Do not fork it: if the bundle's header and this
   one drift apart again, the site goes back to having two.
   ========================================================================== */

.ci-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  min-height: 32px;
  padding: 8px 16px;
  background: #e1a84d;
  color: #4c2029;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}

/* The sale's countdown, beside the bar's own words (lib/sale.js). */
.ci-top-sale {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #4c2029;
  color: #f8ecd9;
  white-space: nowrap;
}
.ci-top-sale b { font-weight: 700; color: #e1a84d; }

.ci-head {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #d7c3a9;
  background: rgba(247, 237, 221, .92);
  backdrop-filter: blur(18px);
}

.ci-head-in {
  max-width: 1400px;
  margin: 0 auto;
  height: 74px;
  padding: 0 clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ci-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

/* The real monogram, not a drawn stand-in. It lifts very slightly when you
   point at the brand -- it is the only thing in the bar that moves, and the
   artwork is detailed enough that turning it would just look wobbly. */
.ci-mark {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  display: block;
  border-radius: 8px;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.ci-brand:hover .ci-mark { transform: translateY(-2px) scale(1.04); }

/* The name itself is set in /css/wordmark.css and is the same everywhere. All
   the bar decides is how big it is here and what colour it is against. */
.ci-brand .ci-wordmark { --ci-wordmark-size: 27px; color: #762337; }

.ci-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.ci-nav a {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: .17em; text-transform: uppercase;
  color: rgba(118, 35, 55, .7);
  text-decoration: none;
  transition: color .3s ease;
}
.ci-nav a:hover, .ci-nav a.is-here { color: #c65d55; }

.ci-head-acts { display: flex; align-items: center; gap: 10px; }

.ci-signin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(118, 35, 55, .25);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
  color: #762337; text-decoration: none;
  transition: border-color .3s ease, background .3s ease;
}
.ci-signin:hover { border-color: #c65d55; background: #fff7e9; }
.ci-signin svg { transition: transform .3s ease; }
.ci-signin:hover svg { transform: translate(2px, -2px); }

.ci-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: #762337; color: #f8ecd9;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none;
  transition: background .3s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.ci-cta:hover { background: #8d2b42; transform: translateY(-1px); }

.ci-burger {
  display: none;
  padding: 8px; border: 0; border-radius: 999px;
  background: transparent; color: #762337; cursor: pointer;
}

@media (max-width: 900px) {
  .ci-nav { display: none; }
  .ci-burger { display: inline-flex; }
  .ci-head-in { height: 64px; }
  /* Log in moves into the burger. Both buttons plus the wordmark plus the
     burger do not fit across a phone -- what happened instead was that "Log
     in" wrapped onto two lines and then fell off the right edge. */
  .ci-signin { display: none; }
}

/* Narrower still, and the CTA goes too: it is the first item in the menu,
   which is one tap away rather than half a word wide. */
@media (max-width: 620px) {
  .ci-cta { display: none; }
  .ci-brand .ci-wordmark { --ci-wordmark-size: 22px; }
  /* The flex-basis has to shrink with the box: left at 38 it stretched the 32px
     mark to 38 x 32, which is a squashed logo (and a failed image-ratio audit). */
  .ci-mark { width: 32px; height: 32px; flex-basis: 32px; }
}

/* The panel the burger opens. Plain checkbox-free markup: the EJS pages have
   no framework, so it is toggled with six lines of script that both sides
   can use. */
/* The two buttons the bar drops on a phone, at the top of the menu that
   replaced them. */
.ci-menu-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 22px; padding: 14px 20px; border-radius: 999px;
  background: #e1a84d; color: #4c2029;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none;
}

.ci-menu {
  position: fixed; inset: 0; z-index: 50;
  background: #762337; color: #f8ecd9;
  padding: 24px;
  display: none;
  flex-direction: column;
}
.ci-menu.is-open { display: flex; }
.ci-menu-top { display: flex; align-items: center; justify-content: space-between; }
.ci-menu-top .ci-wordmark { --ci-wordmark-size: 27px; color: #f8ecd9; }
.ci-menu-close { padding: 8px; border-radius: 999px; border: 1px solid rgba(248,236,217,.25); background: transparent; color: inherit; cursor: pointer; }
.ci-menu nav { margin-top: 64px; display: flex; flex-direction: column; gap: 26px; }
.ci-menu nav a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 44px; font-weight: 600; line-height: .86;
  letter-spacing: -.04em; color: inherit; text-decoration: none;
}

/* -------------------------------------------------------------- the footer */
.ci-foot {
  background: #762337;
  color: #f8ecd9;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px);
}
.ci-foot-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; gap: 40px;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
}
.ci-foot-mark {
  display: inline-flex; align-items: center; gap: 12px;
  --ci-wordmark-size: 40px;
  color: #f8ecd9; text-decoration: none;
}
.ci-foot-mark img { width: 44px; height: 44px; border-radius: 8px; }
.ci-foot-blurb { margin: 16px 0 0; max-width: 38ch; font-size: 14px; line-height: 1.6; color: rgba(248, 236, 217, .6); }
.ci-foot-note {
  display: flex; align-items: center; gap: 8px; margin-top: 24px;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #e1a84d;
}
.ci-foot-h {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #e1a84d;
}
.ci-foot-col a, .ci-foot-col span {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; font-size: 14px;
  color: rgba(248, 236, 217, .65); text-decoration: none;
  transition: color .3s ease;
}
.ci-foot-col a:hover { color: #e1a84d; }
.ci-foot-base {
  max-width: 1400px; margin: 48px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(248, 236, 217, .15);
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(248, 236, 217, .4);
}
@media (max-width: 900px) {
  .ci-foot-grid { grid-template-columns: 1fr; }
  .ci-foot-base span:last-child { display: none; }
}

/* Log out, in the phone menu, styled as the links beside it. It is a form
   button because signing out changes state and must not be a link somebody's
   browser can prefetch. */
.ci-menu nav form { margin: 0; }
.ci-menu nav form button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

/* A design the studio is looking at while it is off sale. Never rendered for a
   shopper -- the route answers them with a 404 -- so it is allowed to be loud. */
.ci-offsale-note {
  margin: 0;
  padding: 10px 18px;
  background: #4c2029;
  color: #f8ecd9;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  text-align: center;
}
.ci-offsale-note strong { font-weight: 700; }
.ci-offsale-note a { color: #e1a84d; }
