/* Cetchup site styles. One file, no build step.
   The tokens follow the app's design system (DESIGN.md in the app repo): cream paper,
   warm ink, one ketchup thing per page, mustard only for what matters to
   you, hairlines instead of shadows, no gradients. */

:root {
  color-scheme: light dark;

  --cream: #fbf5ea;
  --card: #fffdf8;
  --rule: #eadfcc;
  --ink: #2a1e19;
  --ink-soft: #74655a;
  --ink-faint: #a99a8c;
  --on-ink: #fff8ee;
  --ketchup: #d7372b;
  --ketchup-text: #b22a20;
  --on-ketchup: #fff8ee;
  --mustard: #f3b33d;
  --on-mustard: #2a1e19;
  --pickle: #4f7a3a;

  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 16px;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #17120f;
    --card: #231c17;
    --rule: #3a302a;
    --ink: #f6eee2;
    --ink-soft: #b3a595;
    --ink-faint: #7a6c60;
    --on-ink: #17120f;
    --ketchup: #e8473a;
    --ketchup-text: #ff7b6b;
    --on-ketchup: #fff8ee;
    --mustard: #e9a92f;
    --on-mustard: #17120f;
    --pickle: #8cc07a;
  }
}

/* Base */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

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

img {
  height: auto;
}

a {
  color: var(--ketchup-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
}

h3 {
  font-size: 1.3125rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 68rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
}

.skip:focus {
  top: 10px;
}

/* Small mono caps over a headline or card. */
.kicker {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font: 500 0.75rem/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Mustard: this matters to you. Only on times, money and your name. */
.mark {
  padding: 0 0.12em;
  border-radius: 0.18em 0.45em 0.25em 0.4em;
  background: var(--mustard);
  color: var(--on-mustard);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand > svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.drop {
  fill: var(--ketchup);
}

.wordmark {
  position: relative;
  padding-bottom: 5px;
  font: italic 900 1.375rem/1 var(--serif);
  letter-spacing: -0.025em;
}

.wordmark svg {
  position: absolute;
  left: 2%;
  bottom: -3px;
  width: 92%;
  height: 7px;
}

.squiggle {
  fill: none;
  stroke: var(--mustard);
  stroke-width: 2.25px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.nav {
  display: flex;
  align-items: center;
  margin-right: -8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

@media (max-width: 380px) {
  .wordmark {
    font-size: 1.25rem;
  }

  .brand > svg {
    width: 26px;
    height: 26px;
  }

  .nav a {
    padding: 0 6px;
  }
}

/* Buttons: capsules. The ketchup red one is the one thing to press on a page. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1.0625rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
}

.btn-ketchup {
  background: var(--ketchup);
  color: var(--on-ketchup);
  font-weight: 700;
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--card);
}

/* Not ready yet: dashed, like the app's "Maybe" stamp. */
.btn-soon {
  border: 1.5px dashed var(--ink-soft);
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: default;
}

.soon {
  padding: 4px 8px;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 6px;
  color: var(--ink-soft);
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

/* Paper: card paper with a hairline, no shadow. */
.paper {
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}

/* Sections */

.section {
  padding-block: 56px;
  border-top: 1px solid var(--rule);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 28px;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.soft {
  color: var(--ink-soft);
}

.small {
  font-size: 0.9375rem;
}

/* Hero */

.hero {
  padding-block: 40px 56px;
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

.lede {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.1875rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 28px 0 12px;
}

.cta-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.hero-shot {
  justify-self: center;
  width: min(100%, 300px);
  margin: 0;
}

@media (min-width: 860px) {
  .hero {
    padding-block: 64px 72px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 56px;
  }

  .hero-shot {
    justify-self: end;
  }
}

/* A phone screenshot: paper edge, rounded like the screen. */
.phone {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 28px;
  background: var(--card);
}

.phone img {
  width: 100%;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.shots figure {
  margin: 0;
}

.shots figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (min-width: 760px) {
  .shots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .shots .phone {
    border-radius: 24px;
  }
}

@media (max-width: 759px) {
  .shots .phone {
    border-radius: 18px;
  }
}

/* What a catch-up holds */

.parts {
  display: grid;
  gap: 0 32px;
  margin: 0;
}

.parts div {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.parts dt {
  font: 700 1.1875rem/1.3 var(--serif);
}

.parts dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .parts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.brief {
  max-width: 40rem;
  margin-top: 32px;
}

.brief .gist {
  margin: 0 0 12px;
  font: 700 clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem)/1.35 var(--serif);
}

.byline {
  margin: 0;
  color: var(--ink-soft);
  font: 400 0.8125rem/1.5 var(--mono);
}

.byline b {
  color: var(--ink);
  font-weight: 600;
}

.brief-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* Cards in a grid */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

/* Two columns of text, used by the Instagram and Muse Spark sections */

.split {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }
}

/* Plans, as a menu on the counter */

.menu {
  display: grid;
  gap: 12px;
  max-width: 40rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan-name {
  font: 700 1.375rem/1.2 var(--serif);
}

.leader {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted var(--ink-faint);
  transform: translateY(-5px);
}

.price {
  font: 600 1.25rem/1.2 var(--mono);
  white-space: nowrap;
}

.price small {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
}

.plan-detail {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.after-menu {
  max-width: 40rem;
  margin-top: 16px;
}

/* Plain list with hairlines */

.lines {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.lines li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.lines li:last-child {
  border-bottom: 1px solid var(--rule);
}

.lines strong {
  font-weight: 650;
}

/* Footer */

.site-footer {
  padding-block: 32px 48px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 12px -8px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--ink);
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.site-footer p {
  max-width: 44rem;
  margin: 0 0 8px;
}

/* Legal pages and support: one readable column */

.doc {
  padding-block: 40px 72px;
}

.measure {
  max-width: 68ch;
}

.doc h1 {
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem);
}

.doc h2 {
  margin: 2.2em 0 0.6em;
  font-size: 1.5rem;
  scroll-margin-top: 16px;
}

.doc h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.1875rem;
  scroll-margin-top: 16px;
}

.doc ul,
.doc ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc li::marker {
  color: var(--ink-soft);
}

.doc strong {
  font-weight: 650;
}

.meta {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font: 400 0.875rem/1.5 var(--mono);
}

.summary {
  margin: 28px 0 8px;
}

.summary h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.summary ul {
  margin: 0;
}

.summary li:last-child {
  margin-bottom: 0;
}

.toc {
  margin: 32px 0 0;
}

.toc h2 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.toc ol {
  margin: 0;
  padding-left: 1.5em;
}

.toc li {
  margin: 0;
}

.toc a {
  display: inline-block;
  padding: 6px 0;
}

.contact {
  margin: 28px 0 8px;
}

.contact .kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
}

.contact .email {
  display: inline-block;
  margin: 4px 0 8px;
  font: 700 clamp(1.25rem, 1rem + 1.2vw, 1.625rem)/1.3 var(--serif);
  word-break: break-word;
}

.faq h2 {
  font-size: 1.375rem;
}

.not-found {
  padding-block: 72px 96px;
}

.not-found .drop-big {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  transform: rotate(-8deg);
}

@media print {
  .site-header .nav,
  .site-footer nav,
  .skip,
  .toc {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
