:root {
  --cgw-bg: #F8EBDF;
  --cgw-bg-soft: #F2DFCD;
  --cgw-paper: #FFFAF4;
  --cgw-text: #4A2915;
  --cgw-text-2: #8F7464;
  --cgw-brown: #633923;
  --cgw-brown-soft: #7D5039;
  --cgw-peach: #D9A98E;
  --cgw-white: #FFFFFF;

  --cgw-hair: rgba(74, 41, 21, .2);
  --cgw-hair-cream: rgba(242, 223, 205, .3);

  --gutter: 24px;
  --measure: 34em;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cgw-bg);
  color: var(--cgw-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--cgw-brown); }
a:hover { color: var(--cgw-text); }

:focus-visible {
  outline: 2px solid var(--cgw-brown);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--cgw-brown);
  color: var(--cgw-bg-soft);
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cgw-bg);
  border-bottom: 1px solid var(--cgw-hair);
}
.site-header--dark {
  background: var(--cgw-brown);
  border-bottom-color: var(--cgw-hair-cream);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
}

.wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--cgw-text);
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  padding: 10px 0;
  min-height: 44px;
  line-height: 1;
}
.wordmark em { font-style: italic; }
.wordmark:hover { color: var(--cgw-brown); }
.site-header--dark .wordmark,
.site-header--dark .wordmark:hover { color: var(--cgw-bg-soft); }

.header-nav { display: none; }
.header-nav a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cgw-peach);
}
.header-nav a:hover { color: var(--cgw-bg-soft); }

/* hamburger, mobile only */

.nav-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--cgw-hair-cream);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--cgw-bg-soft);
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-header:not(.site-header--dark) .nav-toggle { border-color: var(--cgw-hair); }
.site-header:not(.site-header--dark) .nav-toggle span { background: var(--cgw-text); }

/* full-screen menu */

/* while the menu is open the header is pinned, so the wordmark and the X stay
   on screen on iOS, where a sticky header drops out of view once scrolling is locked */
html.menu-open .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
html.menu-open,
html.menu-open body { overflow: hidden; }

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: var(--cgw-brown);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 73px;
}
.site-menu[hidden] { display: none; }
.site-menu .wrap {
  padding-top: 42px;
  padding-bottom: 37px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.site-menu-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cgw-peach);
  margin: 0;
}
.site-menu-list {
  margin-top: 14px;
  border-bottom: 1px solid rgba(242, 223, 205, .22);
}
.site-menu-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(242, 223, 205, .22);
  text-decoration: none;
}
.site-menu-list a[aria-current='page']::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cgw-peach);
}
.site-menu-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--cgw-peach);
  line-height: 1;
}
.site-menu-body { flex: 1; min-width: 0; }
.site-menu-title {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  line-height: 1.1;
  color: var(--cgw-bg-soft);
}
.site-menu-ctx {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cgw-peach);
  margin-top: 5px;
}
.site-menu-arrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  color: var(--cgw-peach);
  line-height: 1;
}
.site-menu-get {
  margin-top: auto;
  padding-top: 44px;
}
.site-menu-get-line {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cgw-bg-soft);
  margin: 0 0 14px;
  white-space: nowrap;
}
.site-menu-get-line em { font-style: italic; color: var(--cgw-peach); }

.site-menu-cta {
  display: inline-flex;
}
.site-menu-cta img { height: 54px; width: auto; }

/* return to top */

.to-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  padding: 17px 22px;
  border: 1px solid var(--cgw-hair);
  border-radius: 3px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cgw-brown);
  text-decoration: none;
  min-height: 44px;
}
.to-top:hover { border-color: var(--cgw-brown); color: var(--cgw-text); }

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

.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cgw-brown-soft);
  margin: 0;
}
.kicker--peach { color: var(--cgw-peach); }

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -.03em;
  color: var(--cgw-text);
  text-wrap: pretty;
}

h1 em, h2 em, h3 em { font-style: italic; color: var(--cgw-peach); }

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

.hero {
  background: var(--cgw-brown);
  color: var(--cgw-bg-soft);
  padding: 0 0 30px;
  min-height: calc(100svh - 73px);
  display: flex;
  flex-direction: column;
}

.hero-wrap { display: block; }

/* mobile hero: full-bleed portrait with the wordmark set into it */

.hero-figure {
  position: relative;
  margin: 0;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--cgw-hair-cream);
}
.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 34%,
    rgba(0, 0, 0, .30) 56%,
    rgba(0, 0, 0, .52) 70%,
    rgba(0, 0, 0, .70) 100%);
  pointer-events: none;
}

.hero-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  background: var(--cgw-bg-soft);
}
.hero-overlay {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 26px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(52px, 15.5vw, 68px);
  line-height: .92;
  letter-spacing: -.035em;
  color: var(--cgw-bg-soft);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}
.hero-overlay em { font-style: italic; }

.hero-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(52px, 15vw, 88px);
  line-height: .92;
  letter-spacing: -.045em;
  color: var(--cgw-bg-soft);
}
.hero-mark em { font-style: italic; }

.hero-copy .hero-mark { display: none; margin: 0; }

.hero-get-line {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cgw-bg-soft);
  margin: 0 0 14px;
  white-space: nowrap;
}
.hero-get-line em { font-style: italic; color: var(--cgw-peach); }

.hero-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero-wrap > .hero-copy { padding-top: 46px; }
.hero-wrap > .hero-get { margin-top: auto; padding-top: 34px; }

.hero-line {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  color: var(--cgw-peach);
  max-width: 20em;
  margin: 0;
}
/* The second half of the hero line sits a line below the first, so the two
   read as separate thoughts rather than one run-on block. */
.hero-line .q { display: block; margin-top: 1em; }

.hero-actions { margin-top: 36px; }

/* ---------- App Store badge ---------- */

.badge {
  display: inline-block;
  min-height: 44px;
  line-height: 0;
}
.badge img { height: 54px; width: auto; }

/* ---------- feature blocks ---------- */

.features { padding: 64px 0 48px; }

.features-head {
  border-top: 1px solid var(--cgw-hair);
  padding-top: 26px;
}
.features-head h2 {
  font-size: clamp(36px, 10vw, 46px);
  line-height: 1.0;
  margin: 14px 0 0;
}
.features-intro {
  font-size: 17px;
  line-height: 1.5;
  color: var(--cgw-brown-soft);
  margin: 16px 0 0;
}

.feature-grid {
  display: grid;
  gap: 48px;
  margin-top: 48px;
}

.feature { margin: 0; }

.feature-copy { margin-top: 22px; }

.feature-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--cgw-peach);
}

.feature h3 {
  font-size: 28px;
  line-height: 1.1;
  margin: 10px 0 0;
}

.feature p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--cgw-brown-soft);
  max-width: 26em;
  margin: 12px 0 0;
}

/* A break between paragraphs, not the tighter gap used under the heading. */
.feature p + p { margin-top: 22px; }

/* square image placeholder */

.shot {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 4px;
  background-color: var(--cgw-bg-soft);
  border: 1px solid var(--cgw-hair);
}
.shot span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cgw-brown-soft);
}

/* ---------- closing ---------- */

.closing {
  border-top: 1px solid var(--cgw-hair);
  padding: 72px 0 88px;
}
.closing h2 {
  font-size: clamp(38px, 11vw, 56px);
  line-height: 1;
  margin: 18px 0 0;
}
.closing .hero-actions { margin-top: 32px; }

/* ---------- legal pages ---------- */

.doc { padding: 56px 0 48px; }

.doc h1 {
  font-size: clamp(38px, 11vw, 54px);
  line-height: 1.0;
  margin: 14px 0 0;
}

.doc-date {
  font-size: 14px;
  color: var(--cgw-brown-soft);
  margin: 20px 0 0;
}

.doc-body {
  max-width: var(--measure);
  margin-top: 40px;
  border-top: 1px solid var(--cgw-hair);
  padding-top: 8px;
}

.doc-body h2 {
  font-size: 26px;
  line-height: 1.15;
  margin: 44px 0 0;
}

.doc-body h3 {
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cgw-brown-soft);
  margin: 32px 0 0;
}

.doc-body p,
.doc-body li {
  font-size: 16px;
  line-height: 1.68;
  color: var(--cgw-brown-soft);
}
.doc-body p { margin: 16px 0 0; }

.doc-body strong { color: var(--cgw-text); font-weight: 600; }

.doc-body ul,
.doc-body ol { margin: 16px 0 0; padding-left: 0; }
.doc-body li { margin-top: 10px; }

.doc-body ul { list-style: none; }
.doc-body ul li {
  padding-left: 28px;
  position: relative;
}
.doc-body ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 18px;
  font-weight: 300;
  color: var(--cgw-peach);
}

.doc-body ol { padding-left: 24px; }
.doc-body ol li { padding-left: 4px; }
.doc-body ol li::marker {
  color: var(--cgw-peach);
  font-weight: 600;
}

.doc-body a { text-decoration: underline; overflow-wrap: anywhere; }

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.doc-body th,
.doc-body td {
  text-align: left;
  padding: 12px 16px 12px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cgw-brown-soft);
  border-bottom: 1px solid var(--cgw-hair);
  vertical-align: top;
}
.doc-body th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cgw-text);
}

/* editorial note — delete once the real copy is pasted in */
.pending {
  border: 1.5px solid var(--cgw-brown);
  border-radius: 4px;
  background: var(--cgw-paper);
  padding: 24px 26px;
  margin-top: 28px;
}
.pending p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cgw-text);
}
.pending p + p { margin-top: 12px; }

/* ---------- 404 ---------- */

.notfound { padding: 64px 0 72px; }

.notfound h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 11vw, 54px);
  line-height: 1.0;
  letter-spacing: -.03em;
  margin: 14px 0 0;
}
.notfound h1 em { font-style: italic; color: var(--cgw-peach); }

.notfound-line {
  max-width: 24em;
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--cgw-text-2);
}

.notfound-list {
  margin-top: 40px;
  border-bottom: 1px solid var(--cgw-hair);
}
.notfound-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--cgw-hair);
  text-decoration: none;
  min-height: 44px;
}
.notfound-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  color: var(--cgw-text);
}
.notfound-list a:hover .notfound-title { color: var(--cgw-brown); }
.notfound-arrow {
  font-size: 15px;
  line-height: 1;
  color: var(--cgw-peach);
}

.notfound-get { margin-top: 44px; }
.notfound-get-line { color: var(--cgw-text); }

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

.site-footer {
  border-top: 1px solid var(--cgw-hair);
  padding: 44px 0 56px;
}

.footer-top { width: max-content; max-width: 100%; }

.footer-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-social { display: flex; }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-legal {
  max-width: 40em;
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--cgw-brown-soft);
}
.footer-legal a { text-decoration: underline; }

/* ---------- wider screens ---------- */

/* short phone viewports (browser bars showing): the portrait gives up height so the
   lede and the download lockup still sit inside the fold. On an 844px viewport it is unchanged. */
@media (max-width: 699px) {
  .hero-portrait {
    aspect-ratio: auto;
    height: clamp(360px, calc(100svh - 330px), 125vw);
  }
}

@media (min-width: 700px) {
  :root { --gutter: 56px; }

  /* the design sits everything 56px in from the screen edges at every width:
     no centred container cap, so the header, hero, blocks and footer share one edge */
  .wrap { max-width: none; }
  /* legal pages: the text column starts on the gutter and stops growing at 1320px */
  .doc .wrap { max-width: 1320px; margin: 0; }

  .hero {
    padding: 0;
    min-height: calc(100svh - 112px);
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .hero-wrap { width: 100%; padding-top: 40px; padding-bottom: 72px; }
  .hero-wrap > .hero-copy { padding-top: 0; }
  .hero-copy .hero-mark { display: block; font-size: clamp(64px, 9vw, 104px); }
  .hero-line { font-size: 22px; margin-top: 30px; max-width: 20em; }

  .hero-wrap {
    display: flex;
    flex-direction: row;
    flex: 0 1 auto;
    align-items: flex-end;
    justify-content: space-between;
    gap: 56px;
  }
  .hero-wrap > .hero-get { margin-top: 0; }
  .hero-get { flex: 0 0 auto; text-align: right; }
  .hero-get-line { font-size: clamp(34px, 3.2vw, 42px); margin-bottom: 18px; }
  .hero-get .badge img { height: 62px; width: auto; }

  .header-nav {
    display: flex;
    align-items: center;
    gap: 34px;
  }
  .nav-toggle { display: none; }
  .site-menu { display: none !important; }

  .features { padding: 88px 0 72px; }
  .features-head { padding-top: 32px; }
  .features-intro { font-size: 18px; }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
    margin-top: 56px;
  }
  .feature h3 { font-size: 26px; }
  .feature p { font-size: 15px; }

  .closing { padding: 96px 0 120px; }

  .doc { padding: 80px 0 64px; }
  .doc-body { max-width: none; }
  .doc-body p, .doc-body li { font-size: 17px; line-height: 1.7; }

  .site-header .wrap { min-height: 112px; }
  .wordmark { font-size: 30px; }
}

@media (min-width: 1100px) {
  .hero-line { font-size: 24px; }
  .feature-grid { gap: 48px 40px; }
  .feature h3 { font-size: 30px; }
  .feature p { font-size: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .badge img { transition: color .2s ease, opacity .2s ease; }
  .badge:hover img { opacity: .82; }
}


/* ---------- desktop split hero (signed off) ---------- */

@media (min-width: 700px) {
  .hero {
    flex-direction: row-reverse;
    align-items: stretch;
    padding: 0;
    min-height: calc(100svh - 112px);
    max-height: 900px;
  }

  .hero-figure {
    display: block;
    flex: 0 0 50%;
    border-bottom: 0;
    border-left: 1px solid var(--cgw-hair-cream);
  }
  .hero-portrait {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    object-position: 50% 14%;
  }
  .hero-figure::after { background: none; }
  .hero-overlay { display: none; }

  .hero-wrap {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 72px var(--gutter);
    max-width: none;
    margin: 0;
  }

  .hero-copy .hero-mark {
    font-size: clamp(80px, 8.4vw, 126px);
    line-height: .9;
  }
  .hero-line {
    font-size: 25px;
    line-height: 1.42;
    max-width: 22em;
    margin-top: 34px;
  }

  .hero-wrap > .hero-get {
    margin-top: 0;
    padding-top: 0;
    text-align: left;
  }
  .hero-copy { margin-bottom: 0; }
  .hero-wrap { gap: 58px; }
  .hero-get-line {
    font-size: 45px;
    margin-bottom: 18px;
  }
  .hero-get .badge img { height: 70px; width: auto; }
}

@media (min-width: 700px) {
  .notfound { padding: 96px 0 104px; }
  .notfound-line { font-size: 18px; }
  .notfound-list { max-width: 640px; }
  .notfound-title { font-size: 27px; }
  .notfound-get-line { font-size: 34px; margin-bottom: 14px; }
  .notfound-get .badge img { height: 58px; width: auto; }
}
