/* Ravhaus — one stylesheet for every page. White, black and grey only. */

@font-face {
  font-family: "Inter Display";
  src: url("/fonts/InterDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #000000;
  --secondary: #6e6e73;
  --line: #e5e5ea;
  --fill: #f5f5f7;
  --fill-strong: #ebebef;
  --display: "Inter Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f5f5f7;
    --secondary: #98989d;
    --line: #2c2c2e;
    --fill: #1c1c1e;
    --fill-strong: #2c2c2e;
  }
}

*,
*::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(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--bg);
  padding: 8px 12px;
}

/* Layout */

.wrap {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  margin-top: 52px;
  scroll-margin-top: 24px;
}

/* Header */

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

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.mark {
  width: 24px;
  height: 24px;
  flex: none;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

.site-nav a {
  color: var(--secondary);
  text-decoration: none;
}

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

/* Type */

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

p {
  margin: 16px 0 0;
}

.lead {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.5;
  margin-top: 20px;
}

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

.small {
  font-size: 15px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 20px;
}

.section-sub {
  margin-top: 8px;
}

/* Buttons and links */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.pill:hover {
  opacity: 0.85;
}

.text-link {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.pills {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pills a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--secondary);
  font-size: 14px;
  text-decoration: none;
}

.pills a:hover {
  color: var(--text);
  background: var(--fill-strong);
}

/* Home */

.home-hero {
  padding: 72px 0 8px;
}

.home-hero h1 {
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.home-hero .lead {
  max-width: 34em;
}

.home-hero .pill {
  margin-top: 32px;
}

.app-feature {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 24px;
  border-radius: 28px;
  background: var(--fill);
  overflow: hidden;
}

.app-feature-art {
  display: grid;
  place-items: center;
  padding: 40px 24px 0;
}

.app-feature-art img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
}

.app-feature-text {
  padding: 28px 24px 32px;
}

.app-feature-name {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.app-feature-text .lead {
  margin-top: 8px;
}

.app-feature-text p:not(.lead) {
  max-width: 32em;
}

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

.topic-cards li {
  padding: 20px;
  border-radius: 20px;
  background: var(--fill);
}

.topic-cards p {
  margin-top: 6px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.45;
}

/* Eve */

.app-hero {
  padding-top: 56px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line);
}

.app-hero h1 {
  margin-top: 28px;
}

.app-hero .lead {
  margin-top: 12px;
}

.store-badge {
  display: inline-block;
  margin-top: 28px;
}

.store-badge img {
  width: 160px;
  height: auto;
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-grid li {
  padding: 24px;
  border-radius: 24px;
  background: var(--fill);
}

.feature-icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 8px;
}

.feature-grid p {
  margin-top: 4px;
  color: var(--secondary);
}

.premium {
  padding: 32px 24px;
  border-radius: 28px;
  background: var(--fill);
}

.premium > p.muted {
  margin-top: 8px;
}

.premium-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 32px;
}

.premium-list p {
  margin-top: 4px;
  color: var(--secondary);
}

.trial {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

/* Legal */

.legal > * {
  max-width: 720px;
}

.back {
  display: inline-block;
  margin-top: 40px;
  color: var(--secondary);
  font-size: 15px;
  text-decoration: none;
}

.back:hover {
  color: var(--text);
}

.legal h1 {
  margin-top: 16px;
  font-size: clamp(36px, 6vw, 56px);
}

.legal h2 {
  font-family: var(--body);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 40px;
}

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

.legal li + li {
  margin-top: 8px;
}

.legal h3 {
  margin-top: 28px;
}

.legal :is(h2, h3) {
  scroll-margin-top: 24px;
}

.legal a {
  overflow-wrap: anywhere;
}

.toc {
  margin-top: 32px;
  padding: 24px;
  border-radius: 20px;
  background: var(--fill);
}

.legal .toc h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.55;
  margin: 0 0 12px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
}

.legal .toc li + li {
  margin-top: 6px;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* 404 */

.not-found {
  margin-top: 72px;
}

/* Footer */

.site-footer {
  margin-top: 72px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 14px;
}

.footer-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.footer-brand .mark {
  width: 20px;
  height: 20px;
}

.site-footer .link-list {
  margin: 0;
  gap: 8px 20px;
}

.site-footer p {
  margin: 0;
}

.site-footer .link-list a {
  text-decoration: none;
}

.site-footer .link-list a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Phones: the footer follows the content instead of sitting at the bottom of the screen. */

@media (max-width: 719px) {
  body {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  :root {
    --gutter: 20px;
  }

  .site-nav {
    gap: 18px;
  }

  .wordmark {
    font-size: 20px;
  }
}

/* Tablet and up */

@media (min-width: 720px) {
  .topic-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-grid,
  .premium-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium {
    padding: 48px;
  }

  .app-feature {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }

  .app-feature-art {
    order: 2;
    padding: 40px;
  }

  .app-feature-art img {
    width: 200px;
    height: 200px;
    border-radius: 44px;
  }

  .app-feature-text {
    padding: 48px;
  }

  .footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .premium-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
