/* The public site's one stylesheet (issue #212): the homepage, the blog,
   the legal pages and the 404. Server-rendered pages load only this file,
   never frontend/src/styles.css, so the console and crew pages cannot be
   touched by it and it cannot be touched by them. The palette is the crew
   pages' Sunburst one (styles.css .crew-root). The display face is
   Bricolage Grotesque, self-hosted under SIL OFL 1.1 (fonts/OFL.txt). */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('/site/fonts/bricolage-grotesque-latin.woff2') format('woff2');
}
/* The design system's display face off Apple devices: ui-rounded is SF Pro
   Rounded there, Nunito everywhere else. Self-hosted, SIL OFL. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/site/fonts/Nunito-Variable.woff2') format('woff2');
}

:root {
  --yo-yellow: #fdb913;
  --ink: #1a1a1a;
  --ink-soft: #5E3A0C;
  --night: #1a1a1a;
  --night-2: #2a2826;
  --line: rgba(26, 26, 26, 0.14);
  --muted: #6B6862;
  --kemo-blue: #03A1F5;
  --display: 'SF Pro Rounded', ui-rounded, Nunito, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Nunito, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }

body.site {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.site a { color: inherit; }

.site-col { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.site-col-wide { max-width: 700px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.site-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 24px;
  background: var(--night); color: #fff;
}
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-brand img { width: 36px; height: 36px; border-radius: 50%; }
.site-brand span { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.site-getapp, .site-store {
  border: 0; cursor: pointer;
  background: var(--yo-yellow); color: var(--ink);
  font-family: var(--display); font-weight: 900;
  border-radius: 999px;
}
.site-getapp { font-size: 15px; padding: 8px 16px; }
.site-store { font-size: 20px; padding: 16px 40px; margin: 8px 0 56px; }

/* The yellow hero and the avatar on its edge (the Seam) */
.site-hero { background: var(--yo-yellow); padding: 96px 0 120px; }
.site-hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(44px, 7vw, 72px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.site-lede { font-size: 20px; line-height: 1.4; color: var(--ink-soft); margin: 0 0 20px; max-width: 560px; }
.site-lede a { text-decoration: underline; }
.site-crumb { display: inline-block; font-family: var(--display); font-weight: 900; font-size: 14px; margin-bottom: 20px; text-decoration: underline; text-underline-offset: 3px; }
/* The avatar's vertical centre sits exactly on the edge: absolutely placed in
   the yellow band, never the first child of the band below. */
.site-hero { position: relative; padding-bottom: 128px; }
.site-seam-avatar { position: absolute; left: 50%; top: 100%; width: 112px; height: 112px; transform: translate(-50%, -50%); z-index: 2; }
.site-seam-avatar img { width: 112px; height: 112px; border-radius: 50%; display: block; object-fit: cover; }
.site-seam-below { padding-top: 112px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-top :focus-visible, .site-footer :focus-visible, .hm-dark :focus-visible, .hm-hero-dark :focus-visible { outline-color: #f3efe5; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.site-meta { font-size: 13px; color: var(--muted); }
.site-byline { color: var(--ink-soft); }
.site-byline strong { color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 14px; margin-right: 8px; }

/* Blog list */
.site-post-list ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.site-post-item { padding: 36px 0; border-bottom: 1px solid var(--line); }
.site-post-item h2 {
  font-family: var(--display); font-weight: 900;
  font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; margin: 8px 0 12px; max-width: 640px;
}
.site-post-item h2 a { text-decoration: none; }
.site-post-item h2 a:hover { text-decoration: underline; }
.site-post-item p { margin: 0; color: var(--muted); max-width: 640px; }
.site-empty { color: var(--muted); padding: 24px 0 64px; }
.site-post-list { padding-bottom: 96px; }


/* Post body */
.site-prose { padding-bottom: 96px; }
.site-prose p, .site-prose li { font-size: 17px; line-height: 1.6; }
.site-prose p { margin: 0 0 22px; }
.site-prose h2, .site-prose h3 {
  font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15;
}
.site-prose h2 { font-size: 30px; margin: 48px 0 18px; }
.site-prose h3 { font-size: 22px; margin: 36px 0 14px; }
.site-prose a { text-decoration: underline; text-underline-offset: 2px; }
.site-prose ul, .site-prose ol { margin: 0 0 22px; padding-left: 24px; }
.site-prose blockquote { margin: 0 0 22px; padding-left: 18px; border-left: 3px solid var(--yo-yellow); }
/* The Kemosabe message bubble (mockup 3) */
.site-bubble {
  display: grid; grid-template-columns: 36px 1fr; column-gap: 12px;
  margin: 0 0 28px; padding: 18px 20px;
  background: var(--night); color: #fff; border-radius: 14px;
}
.site-bubble img { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; }
.site-bubble figcaption { font-size: 12px; font-weight: 700; color: var(--kemo-blue); }
.site-bubble blockquote { margin: 2px 0 0; padding: 0; border: 0; font-size: 15px; line-height: 1.45; }

/* More from the blog */
.site-more { background: var(--yo-yellow); padding: 64px 0 64px; }
.site-more-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.site-more-head h2 { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -0.02em; margin: 0; }
.site-more-head a { font-family: var(--display); font-weight: 900; font-size: 15px; text-decoration: underline; }
.site-more ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(26, 26, 26, 0.22); }
.site-more li { padding: 16px 0; border-bottom: 1px solid rgba(26, 26, 26, 0.22); }
.site-more li .site-meta { color: var(--ink-soft); font-size: 12px; }
.site-more li a { font-family: var(--display); font-weight: 900; font-size: 20px; text-decoration: none; letter-spacing: -0.01em; }
.site-more li a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--night); color: #fff; padding: 72px 0 40px; }
.site-footer-inner { max-width: 1072px; margin: 0 auto; padding: 0 24px; }
.site-footer-mark { font-family: var(--display); font-weight: 900; font-size: 44px; letter-spacing: -0.02em; line-height: 1.1; }
.site-footer-tag { color: rgba(255, 255, 255, 0.75); margin: 8px 0 24px; }
.site-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.site-footer-cols h2 { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.7); margin: 0 0 8px; }
.site-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.site-footer-cols li { margin: 0 0 6px; }
.site-footer-cols a, .site-footer-cols span, .site-linkbtn {
  font-family: var(--display); font-weight: 900; font-size: 16px; color: #fff; text-decoration: none;
}
.site-footer-cols a:hover, .site-linkbtn:hover { text-decoration: underline; }
.site-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; }
.site-footer-note { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin: 6px 0 0; max-width: 240px; }
.site-footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px; color: rgba(255, 255, 255, 0.75);
}

/* Legal pages: the prose column, with bracketed guesses left visible */
.site-legal h2:first-child { margin-top: 0; }
.site-legal { padding-bottom: 72px; }

/* Coming soon modal (both App Store buttons; plan doc D4) */
.site-modal[hidden] { display: none; }
.site-modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6); padding: 20px;
}
.site-modal-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--yo-yellow); color: var(--ink);
  border-radius: 20px; padding: 32px 28px 28px; text-align: center;
}
.site-modal-x {
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: var(--night); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.site-modal-logo { width: 96px; height: 96px; border-radius: 50%; }
.site-modal-card h3 { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0; }
.site-modal-card p { font-size: 15px; margin: 0 0 16px; }
.site-beta input {
  width: 100%; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 12px;
  font-size: 16px; background: #fff;
}
.site-beta-error { color: #8a1c0c; font-size: 14px; min-height: 18px; margin: 6px 0; }
.site-beta .site-beta-send { margin: 4px 0 0; width: 100%; font-size: 17px; padding: 14px; background: var(--night); color: #fff; }
.site-beta-done { font-family: var(--display); font-weight: 900; }

/* Homepage (variant 01, mockup 1) */
/* Hero: yellow headline over a dark band, the avatar on the seam (mockup 1) */
.hm-hero-yellow { position: relative; background: var(--yo-yellow); padding: 96px 24px 160px; min-height: 440px; text-align: center; }
.hm-hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 6.4vw, 92px); line-height: 0.95; letter-spacing: -0.02em; margin: 0 auto; max-width: 1000px; }
.hm-hero-dark { background: #1a1a1a; color: #f3efe5; text-align: center; padding: 152px 24px 96px; }
.hm-hero-avatar { position: absolute; left: 50%; top: 100%; width: 224px; height: 224px; transform: translate(-50%, -50%); border-radius: 50%; object-fit: cover; z-index: 2; }
.hm-hero-says { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--kemo-blue); margin-bottom: 12px; }
/* The Visor: one of the three sanctioned uses of blue on the site */
.hm-visor { position: relative; overflow: hidden; width: 72px; height: 22px; border-radius: 8px 8px 11px 11px; background: linear-gradient(100deg, #540FE8 0%, #265AFD 34%, #03A1F5 68%, #016890 100%); display: inline-block; }
.hm-visor::after { content: ''; position: absolute; top: 0; bottom: 0; width: 14px; left: -20px; background: rgba(255, 255, 255, 0.75); transform: skewX(-20deg); animation: hm-glint 0.9s linear infinite; }
@keyframes hm-glint { to { left: 80px; } }
.hm-agreed { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 6.4vw, 92px); line-height: 0.95; letter-spacing: -0.02em; margin: 0; }
.hm-voice { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.01em; margin: 24px 0 0; color: #f3efe5; }
.hm-hero-p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: #C4C1B8; max-width: 640px; margin: 16px auto 36px; }
.hm-hero .hm-hero-store { margin: 0 0 20px; font-size: 22px; height: 64px; padding: 0 44px; }
.site-store, .site-getapp, .hm-pill { transition: transform 120ms var(--ease); }
.site-store:active, .site-getapp:active, .hm-pill:active { transform: scale(0.97); }
.hm-blog .site-store, .hm-pocket .site-store, .hm-how .site-store, .hm-questions .site-store { background: var(--ink); color: var(--yo-yellow); }
.hm-hero-note { font-size: 14px; font-weight: 700; color: #C4C1B8; margin: 0; }

/* Phone and watch screenshots (mockup 1) */
.hm-shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; text-align: center; }
.hm-shots img { box-sizing: content-box; width: 280px; height: 606px; max-width: 100%; object-fit: cover; border-radius: 44px; border: 10px solid #1a1a1a; background: #1a1a1a; display: block; margin: 0 auto 24px; }
.hm-shots h3, .hm-steps h3, .hm-watch h3 { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 8px; }
.hm-shots p, .hm-steps p, .hm-watch p { font-size: 16px; color: var(--muted); margin: 0; }
.hm-watch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: center; margin: 56px 0 0; padding-top: 40px; border-top: 1px solid rgba(26, 26, 26, 0.14); }
.hm-watch-text { grid-column: 1; max-width: 320px; }
.hm-watch-shots { grid-column: 2 / span 2; display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-start; }
.hm-watch-shots img { box-sizing: content-box; width: 198px; height: 242px; object-fit: cover; border-radius: 56px; border: 12px solid #1a1a1a; background: #1a1a1a; }

/* He has done this for decades: video slot beside the text */
.hm-decades-grid { display: grid; grid-template-columns: 400px 1fr; gap: 88px; align-items: center; }
.hm-video { position: relative; height: 712px; max-height: 80vh; background: #2a2826; border-radius: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.hm-video p { font-size: 14px; font-weight: 700; margin: 20px 0 0; color: #C4C1B8; }
.hm-video small { position: absolute; bottom: 28px; left: 0; right: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #C4C1B8; }
.hm-play { width: 90px; height: 90px; border-radius: 50%; background: var(--yo-yellow); position: relative; display: block; }
.hm-play::after { content: ''; position: absolute; left: 36px; top: 28px; border-left: 26px solid var(--ink); border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.hm-avrow { display: flex; align-items: center; gap: 20px; margin-top: 32px; font-size: 14px; color: #C4C1B8; }
.hm-avrow img { width: 88px; height: 88px; flex: none; }

.site-col-home { max-width: 1072px; margin: 0 auto; padding: 0 24px; }
.hm-lede { font-size: 21px; line-height: 1.4; max-width: 640px; margin: 0 0 12px; color: var(--ink-soft); }
.hm-pocket, .hm-how { padding: 88px 0; }
.hm-pocket h2, .hm-how h2, .hm-questions h2, .hm-blog h2, .hm-dark h2 {
  font-family: var(--display); font-weight: 900; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 16px;
}
.hm-sub { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0 0 40px; }
.hm-dark { background: #1a1a1a; color: #f3efe5; padding: 88px 0; }
.hm-dark h2 { color: #f3efe5; }
.hm-split { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.hm-avatar { border-radius: 50%; display: block; max-width: 100%; height: auto; }
.hm-lede-dark { font-size: 19px; line-height: 1.5; margin: 0 0 16px; max-width: 640px; }
.hm-sub-dark { color: #C4C1B8; font-size: 16px; max-width: 640px; margin: 0 0 20px; }
.hm-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.hm-steps li { border-top: 3px solid var(--ink); padding-top: 16px; }
.hm-num { display: block; font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; margin-bottom: 12px; }
.hm-steps .hm-optional { border: 1.5px dashed #888; border-radius: 16px; padding: 24px 20px; }
.hm-tag { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.hm-optional h3, .hm-optional p { color: #5c5c5c; }
.hm-kicker { font-size: 13px; font-weight: 700; color: #C4C1B8; margin-bottom: 12px; }
.hm-replay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; align-items: start; }
.hm-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 20px 32px; margin: 0 0 28px; justify-content: start; }
.hm-stats div { margin: 0; }
.hm-stats dt { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; }
.hm-stats dt small { font-size: 15px; color: #C4C1B8; }
.hm-stats dd { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: #C4C1B8; }
.hm-pill { display: inline-block; background: var(--yo-yellow); color: var(--ink) !important; font-family: var(--display); font-weight: 900; font-size: 20px; padding: 14px 32px; border-radius: 999px; text-decoration: none; }

.rp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rp-who { font-size: 12px; color: #C4C1B8; margin: 0 0 4px 44px; }
.rp-kemo .rp-who strong { color: var(--kemo-blue); }
.rp-row { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: end; }
.rp-av { width: 32px; height: 32px; border-radius: 50%; }
.rp-init { display: flex; align-items: center; justify-content: center; background: #f3efe5; color: var(--ink); font-size: 12px; font-weight: 900; }
.rp-bubble { margin: 0; padding: 12px 16px; border-radius: 14px; font-size: 15px; line-height: 1.45; background: #f3efe5; color: var(--ink); }
.rp-kemo .rp-bubble { background: #2a2826; color: #f3efe5; }
.rp-joe .rp-bubble { background: var(--yo-yellow); }
.rp-note { font-size: 11px; font-weight: 700; color: #C4C1B8; margin: 4px 0 0 44px; }
.rp-foot { font-size: 12px; color: #C4C1B8; margin-top: 16px; }
.hm-questions { padding: 88px 0; }
.hm-questions .site-col > h2 { margin-bottom: 24px; }
.hm-q { border-bottom: 1px solid var(--line); }
.hm-q:first-of-type { border-top: 1px solid var(--line); }
.hm-q summary { font-family: var(--display); font-weight: 900; font-size: 20px; padding: 24px 40px 24px 0; cursor: pointer; list-style: none; position: relative; }
.hm-q summary::-webkit-details-marker { display: none; }
.hm-q summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); }
.hm-q[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.hm-a { padding: 0 0 20px; color: var(--muted); }
.hm-a p { margin: 0 0 10px; }
.hm-blog { background: var(--yo-yellow); padding: 72px 0; }
.hm-blog-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.hm-blog-head a { font-family: var(--display); font-weight: 900; text-decoration: underline; }
.hm-blog ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(26, 26, 26, 0.22); }
.hm-blog li { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(26, 26, 26, 0.22); }
.hm-blog time, .hm-cat { font-size: 13px; color: var(--ink-soft); }
.hm-blog h3 { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; }
.hm-blog h3 a { text-decoration: none; }
.hm-blog h3 a:hover { text-decoration: underline; }
.hm-blog p { margin: 0 0 6px; color: var(--ink-soft); }
.hm-broken { padding-bottom: 72px; }
.hm-broken .hm-split { grid-template-columns: 112px 1fr; }
@media (max-width: 900px) {
  .hm-steps { grid-template-columns: 1fr 1fr; }
  .hm-decades-grid { gap: 40px; grid-template-columns: 320px 1fr; }
  .hm-replay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hm-hero-yellow { padding: 64px 20px 160px; min-height: 0; }
  .hm-hero-avatar { width: 160px; height: 160px; }
  .hm-hero-dark { padding-top: 112px; }
  .hm-watch-text, .hm-watch-shots { grid-column: 1; }
  .hm-watch-shots img { width: min(198px, 100%); }
  .hm-pocket, .hm-how, .hm-dark, .hm-questions { padding: 56px 0; }
  .hm-shots, .hm-steps { grid-template-columns: 1fr; }
  .hm-watch, .hm-decades-grid { grid-template-columns: 1fr; gap: 32px; }
  .hm-hero .hm-hero-store { font-size: 19px; padding: 16px 32px; }
  .hm-video { height: 520px; }
  .hm-split, .hm-broken .hm-split { grid-template-columns: 1fr; gap: 24px; }
  .hm-avatar { max-width: 120px; }
  .hm-blog li { grid-template-columns: 1fr; gap: 6px; }
  .hm-lede { font-size: 18px; }
  .site-col-home { padding: 0 20px; }
}


/* Phone width */
@media (max-width: 720px) {
  body.site { font-size: 16px; }
  .site-top { padding: 0 16px; }
  .site-col, .site-col-wide, .site-footer-inner { padding: 0 20px; }
  .site-hero { padding: 56px 0 88px; }
  .site-lede { font-size: 18px; }
  .site-post-item h2 { font-size: 26px; }
  .site-prose h2 { font-size: 25px; }
  .site-footer-mark { font-size: 34px; }
  .site-store { font-size: 17px; padding: 14px 28px; }
  .site-footer-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
