/* Gratitude Lock marketing site. Tokens from the Sunlit Journal style guide. */

:root {
  --parchment: #FFF8E8;
  --parchment-raised: #FFFCF4;
  --sunflower: #F4C43A;
  --sunflower-wash: #FFF1BE;
  --cocoa: #272018;
  --cocoa-muted: #6D6257;
  --amber: #C88818;
  --hairline: #E6D4AE;
  --night: #1D1713;
  --rust: #7A3B2E;
  --peach: #E37B4C;
  --warm-white: #FFF8EC;
  --serif: "New York", ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --rounded: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--cocoa);
  font-family: var(--rounded);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

header.site {
  padding: 28px 0 0;
}

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

header.site img.wordmark {
  height: 44px;
  width: auto;
  display: block;
}

header.site nav {
  display: flex;
  gap: 20px;
}

header.site nav a {
  color: var(--cocoa-muted);
  text-decoration: none;
  font-size: 15px;
}

header.site nav a:hover { color: var(--cocoa); }

/* Hero */

.hero {
  padding: 72px 0 56px;
  text-align: left;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 15ch;
}

.hero p.lede {
  margin-top: 20px;
  font-size: 19px;
  color: var(--cocoa-muted);
  max-width: 52ch;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

a.cta {
  display: inline-block;
  background: var(--sunflower);
  color: var(--cocoa);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  transition: transform 120ms ease;
}

a.cta:hover { transform: scale(0.98); }

.cta-note {
  font-size: 14px;
  color: var(--cocoa-muted);
}

/* Sections */

section {
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
}

h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 8px;
}

section p { margin-bottom: 14px; max-width: 62ch; }

.muted { color: var(--cocoa-muted); }

.small { font-size: 14px; }

/* How it works steps */

ol.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 8px;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 56px;
  max-width: 58ch;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sunflower);
  color: var(--cocoa);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.steps li strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  margin-bottom: 4px;
}

/* Quiet callout */

.callout {
  background: var(--parchment-raised);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 20px 0;
  max-width: 60ch;
}

.callout p { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

/* Legal pages */

main.legal { padding: 48px 0 24px; }

main.legal h1 { font-size: 34px; margin-bottom: 8px; }

main.legal .updated {
  color: var(--cocoa-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

main.legal h2 { font-size: 24px; margin: 36px 0 12px; }

main.legal p, main.legal li { max-width: 65ch; margin-bottom: 12px; }

main.legal ul { padding-left: 22px; margin-bottom: 16px; }

a { color: var(--rust); }

a:hover { color: var(--amber); }

/* Footer */

footer.site {
  margin-top: 48px;
  background: var(--night);
  color: var(--warm-white);
  padding: 40px 0 48px;
}

footer.site .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

footer.site nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

footer.site a {
  color: var(--warm-white);
  opacity: 0.8;
  text-decoration: none;
  font-size: 15px;
}

footer.site a:hover { opacity: 1; }

footer.site .legal-line {
  font-size: 13px;
  opacity: 0.55;
}

@media (max-width: 540px) {
  header.site img.wordmark { height: 36px; }
  .hero { padding: 48px 0 40px; }
}
