/* ============================================================================
   MUVIN WEEK: stylesheet

   Tokens, type pairing and component idiom are the same as the Muvin Partners
   page. Outfit stands in for Azo Sans, which is licensed and not servable
   from here.

   Mobile first. Every layout rule opens at the phone width and widens with
   min-width queries.
   ========================================================================== */

:root {
  --teal-950: #032423;
  --teal-900: #052F2F;
  --teal-800: #094545;
  --teal-700: #0C5757;
  --teal-600: #11706B;
  --mint: #7ED9C3;
  --mint-2: #4FB9A2;
  --brass: #C9A86A;

  --paper: #FBF9F6;
  --paper-2: #F2EEE9;
  --paper-3: #E8E2D9;
  --ink: #0A1E1E;
  --muted: #586C6B;
  --line: rgba(9, 69, 69, .14);
  --line-dark: rgba(255, 255, 255, .16);

  --display: 'Outfit', 'Archivo', system-ui, sans-serif;
  --body: 'Poppins', system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: 20px;
  --radius: 4px;
  --radius-lg: 10px;
  --section-y: clamp(56px, 8vw, 116px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 720px) { :root { --gutter: 36px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------------------------------------------------------------- type ---- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.h-xl { font-size: clamp(2.5rem, 10vw, 5.6rem); letter-spacing: -.035em; text-transform: uppercase; font-weight: 800; }
.h-lg { font-size: clamp(1.9rem, 6vw, 3.4rem); letter-spacing: -.03em; text-transform: uppercase; font-weight: 800; }
.h-md { font-size: clamp(1.4rem, 4vw, 2.1rem); letter-spacing: -.025em; text-transform: uppercase; font-weight: 700; }

.kicker {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 18px;
}
.on-dark .kicker { color: var(--mint); }

.lede { font-size: clamp(1.02rem, 2.4vw, 1.24rem); line-height: 1.55; font-weight: 300; }
.on-dark .lede { color: rgba(255, 255, 255, .88); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.on-dark .muted { color: rgba(255, 255, 255, .62); }
.small { font-size: .85rem; line-height: 1.55; }

/* ------------------------------------------------------------ structure ---- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-y) 0; position: relative; }
.on-dark { background: var(--teal-900); color: #fff; }
.on-deep { background: var(--teal-950); }
.on-paper-2 { background: var(--paper-2); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.on-dark .rule { background: var(--line-dark); }

.grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .g-3 { grid-template-columns: repeat(3, 1fr); } }

.section-head { margin-bottom: clamp(28px, 4.5vw, 52px); }
.section-head .lede { margin-top: 16px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal-900); color: #fff; padding: 12px 18px; border-radius: 100px;
  font-family: var(--display); font-size: .8rem; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--mint-2);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-dark :where(a, button, [tabindex]):focus-visible { outline-color: var(--mint); }

/* --------------------------------------------------------------- header ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: var(--teal-950);
}
.top .mark { width: 104px; display: block; flex: none; }
.top .mark img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.top-nav { display: none; gap: 28px; align-items: center; }
@media (min-width: 880px) { .top-nav { display: flex; } }
.top-link {
  font-family: var(--display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .8);
  transition: color .2s;
}
.top-link:hover { color: var(--mint); }

/* ------------------------------------------------------------------ hero --- */

.hero {
  background: var(--teal-950);
  color: #fff;
  padding: clamp(52px, 9vw, 104px) 0 clamp(48px, 8vw, 92px);
}
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 22px; }
.hero-note {
  margin-top: clamp(30px, 5vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: .9rem;
  color: rgba(255, 255, 255, .66);
}

/* ------------------------------------------------------------------ week --- */
/* The week is one grid: six day columns left to right, two bands down the
   left. The bands carry different shades so morning and afternoon separate
   before a word is read. Below 1020px the six columns cannot hold, so each
   day becomes a card and the band shading moves onto the cells inside it. */

.wrap.wide { max-width: 1440px; }

.wk {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.wk-corner, .wk-band { display: none; }

/* .wk-col is a <section>, so the global section padding has to come off. */
.wk-col { padding: 0; }

.wk-day {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal-900);
  margin: 0;
  padding: 13px 16px;
}

.wk-cell { padding: 14px 16px 16px; }
.wk-cell.am { background: #fff; }
.wk-cell.pm { background: #D9E8E4; }
.wk-cell.allday { background: var(--paper-2); }

.blk { margin: 0; padding: 11px 0; border-top: 1px solid var(--line); }
.blk:first-child { border-top: 0; padding-top: 3px; }
.wk-cell.pm .blk { border-top-color: rgba(9, 69, 69, .18); }
.blk .t {
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--teal-800);
  white-space: nowrap;
  display: block;
  margin-bottom: 3px;
}
/* AM and PM are stated once on the left edge of the grid. */
.blk .t.part { display: none; }
.blk .l { font-size: .92rem; line-height: 1.4; display: block; }

/* The three Prospect and Connect blocks are the spine of the week. */
.blk.spine {
  background: var(--mint);
  border-radius: var(--radius);
  border-top: 0;
  border-left: 3px solid var(--teal-700);
  padding: 11px 12px;
  margin: 3px 0 4px;
}
.blk.spine + .blk { border-top: 0; }
.blk.spine .t { color: var(--teal-950); }
.blk.spine .l { font-weight: 600; color: var(--teal-950); }
.blk.spine .l::after {
  content: 'Spine';
  font-family: var(--display);
  font-size: .56rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mint);
  background: var(--teal-900);
  border-radius: 100px;
  padding: 3px 9px;
  margin-left: 8px;
  white-space: nowrap;
  display: inline-block;
  vertical-align: 2px;
}

.none {
  font-family: var(--display);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(88, 108, 107, .62);
  display: block;
}
.wk-cell.allday .none { margin-top: 10px; }

.wk-foot { display: none; }
.wk-foot.is-blank { background: #fff; }
.wk-foot.is-rule {
  display: block;
  margin: 0;
  padding: 12px 16px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8A6A28;
}

.spine-key {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: .86rem;
  color: var(--muted);
}
.spine-key i { width: 16px; height: 16px; border-radius: 4px; background: var(--mint); display: block; flex: none; }

/* --- phone and tablet: one card a day, band shading kept on the cells --- */
@media (max-width: 1019.98px) {
  .wk { border: 0; background: none; border-radius: 0; display: grid; gap: 14px; }
  .wk-col {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .wk-cell { position: relative; padding-left: 58px; }
  .wk-cell::before {
    content: 'AM';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 42px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 16px;
    font-family: var(--display);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--teal-800);
    background: var(--paper-2);
    border-right: 1px solid var(--line);
  }
  .wk-cell.pm::before { content: 'PM'; background: #C3DCD6; }
  .wk-cell.allday::before { content: 'All day'; background: var(--paper-3); font-size: .58rem; letter-spacing: .1em; }
}
@media (min-width: 640px) and (max-width: 1019.98px) {
  .wk { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* --- desktop: the sheet grid, six columns and two bands --- */
@media (min-width: 1020px) {
  .wk {
    display: grid;
    grid-template-columns: 56px repeat(6, 1fr);
    grid-template-rows: auto auto auto auto;
  }

  .wk-corner { display: block; background: var(--teal-900); grid-column: 1; grid-row: 1; }
  .wk-corner-foot { background: #fff; grid-column: 1; grid-row: 4; border-top: 1px solid var(--line); }

  .wk-band {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1;
    font-family: var(--display);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--teal-900);
    border-top: 1px solid var(--line);
  }
  .wk-band span { writing-mode: vertical-rl; transform: rotate(180deg); }
  .wk-band-am { grid-row: 2; background: var(--paper-2); }
  .wk-band-pm { grid-row: 3; background: #C3DCD6; }

  .wk-col {
    grid-row: 1 / 5;
    display: grid;
    grid-template-rows: subgrid;
    border-left: 1px solid var(--line);
  }
  .wk-day { text-align: center; border-left: 1px solid rgba(255, 255, 255, .14); margin-left: -1px; }
  .wk-cell { border-top: 1px solid var(--line); }
  .wk-cell.allday { grid-row: 2 / 4; }
  .wk-foot { display: block; background: #fff; border-top: 1px solid var(--line); }
  .wk-foot.is-rule { border-left: 0; }
  .wk-col.is-either .wk-day { background: var(--teal-800); }
}

@supports not (grid-template-rows: subgrid) {
  @media (min-width: 1020px) {
    .wk-col { grid-template-rows: auto 1fr 1fr auto; }
  }
}

/* -------------------------------------------------------------- together -- */

.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.rung {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--mint-2);
  padding: 20px 22px;
  display: grid;
  gap: 6px 26px;
}
@media (min-width: 760px) { .rung { grid-template-columns: 148px 1fr; padding: 24px 28px; } }

.rung .freq {
  font-family: var(--display);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-700);
  padding-top: 3px;
}
.rung h3 { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 8px; }
.rung p { font-size: .95rem; margin-bottom: .6em; }
.rung p:last-child { margin-bottom: 0; }

.rung.is-big { border-left-color: var(--teal-700); }
.rung.is-opt { border-left-color: var(--brass); border-left-style: dashed; background: transparent; }
.rung.is-opt .freq { color: #8A6A28; }

.tag {
  font-family: var(--display);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: #8A6A28;
  border-radius: 100px;
  padding: 4px 10px;
  margin-left: 8px;
  vertical-align: 3px;
  white-space: nowrap;
}

/* --------------------------------------------------------------- run/rest -- */

.card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
}
.card .idx {
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--mint);
  display: block;
  margin-bottom: 14px;
}
.card h3 { font-size: .98rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: .93rem; color: rgba(255, 255, 255, .7); margin: 0; }

.callout {
  margin-top: clamp(26px, 4vw, 40px);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  background: rgba(126, 217, 195, .1);
  font-size: .95rem;
  color: rgba(255, 255, 255, .88);
}

/* ---------------------------------------------------------------- balance -- */

.balance .lede { margin-top: 14px; }

/* ---------------------------------------------------------------- footer --- */

.site-foot {
  background: var(--teal-950);
  color: rgba(255, 255, 255, .6);
  padding: clamp(40px, 6vw, 64px) 0 36px;
  font-size: .84rem;
}
.site-foot .mark { width: 120px; margin-bottom: 20px; }
.site-foot .mark img { filter: brightness(0) invert(1); }
