/* Morning Valet: the public site. Same palette and type as the app (DESIGN.md → Brand). */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --page: #f3ede3;
  --surface: #e9e2d6;
  --ink: #2a2420;
  --ink-2: #645b53;
  --line: #ddd4c6;
  --horn: #5e3b24;
  --well: #dfdbd3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #1e1a17;
    --surface: #2a2420;
    --ink: #efe6d8;
    --ink-2: #b4a999;
    --line: #3a322b;
    --horn: #c18a52;
    --well: #2e2925;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: hidden;
  overflow-wrap: break-word;
  background: var(--page);
  color: var(--ink);
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
img {
  display: block;
  max-width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 680px;
}

/* The horizontal lockup: the small tile at 1.5x the wordmark, gap 0.45em. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}
.lockup picture,
.lockup img {
  width: 1.5em;
  height: 1.5em;
}
.wordmark {
  display: inline-block;
  height: 1em;
  aspect-ratio: 4757 / 1040;
  background: currentColor;
  -webkit-mask: url("/assets/wordmark.svg") no-repeat center / contain;
  mask: url("/assets/wordmark.svg") no-repeat center / contain;
}

header.top {
  padding-top: 28px;
}

.display {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin: 0;
}

/* Home */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-block: 48px 72px;
}
.hero h1 {
  font-size: clamp(52px, 9vw, 92px);
}
.hero .lede {
  margin: 22px 0 0;
  max-width: 30em;
  font-size: 1.1875rem;
  color: var(--ink-2);
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-weight: 600;
  font-size: 1rem;
}
.soon svg {
  width: 17px;
  height: 20px;
  fill: currentColor;
}
.soon-note {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.art {
  justify-self: center;
  width: min(100%, 360px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--well);
}
.art img {
  width: 100%;
  height: auto;
}
@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    padding-block: 72px 96px;
  }
}

.steps {
  display: grid;
  gap: 28px;
  padding-block: 56px 64px;
  border-top: 1px solid var(--line);
}
.steps h2 {
  font-size: 40px;
}
.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  line-height: 1;
  color: var(--horn);
  margin-bottom: 8px;
}
.steps h3 {
  margin: 0 0 6px;
  font-size: 1.125rem;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
}
@media (min-width: 820px) {
  .steps ol {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.beta {
  padding-block: 56px 72px;
  border-top: 1px solid var(--line);
}
.beta h2 {
  font-size: 40px;
}
.beta p {
  max-width: 34em;
  color: var(--ink-2);
  margin: 14px 0 0;
}

footer.bottom {
  border-top: 1px solid var(--line);
  padding-block: 28px 48px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
footer.bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 14px;
}
footer.bottom p {
  margin: 0;
}

/* Reading pages: privacy, terms, support */
.doc {
  padding-block: 40px 72px;
}
.doc h1 {
  font-size: 50px;
  line-height: 0.9;
}
.doc .updated {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.doc .body {
  margin-top: 32px;
}
.doc .body > * + * {
  margin-top: 16px;
}
.doc h2 {
  margin: 32px 0 0;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.doc ul {
  padding-left: 20px;
}
.doc li + li {
  margin-top: 8px;
}
.doc dt {
  font-weight: 700;
  margin-top: 22px;
}
.doc dd {
  margin: 4px 0 0;
}
