/* 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;
  --display: "Inter Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

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

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

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

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: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

section {
  margin-top: 88px;
}

/* Type */

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

h1 {
  font-size: clamp(40px, 10vw, 56px);
}

h2 {
  font-size: clamp(28px, 6.5vw, 34px);
}

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

p {
  margin: 16px 0 0;
}

.lead {
  font-size: 21px;
  line-height: 1.5;
  margin-top: 24px;
}

.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;
}

/* Home */

.intro {
  margin-top: 56px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--fill);
  text-decoration: none;
}

.app-card:hover {
  text-decoration: none;
}

.app-card:hover .app-card-go {
  color: var(--text);
}

.app-card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex: none;
}

.app-card-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-card-tagline {
  color: var(--secondary);
  font-size: 15px;
}

.app-card-go {
  margin-left: auto;
  color: var(--secondary);
  font-size: 15px;
  white-space: nowrap;
}

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

/* Barley */

.hero {
  margin-top: 80px;
  text-align: center;
}

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

.hero-wordmark {
  width: 200px;
  margin: 36px auto 0;
}

.hero .lead {
  margin-top: 20px;
}

.badge {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
}

.features {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 28px;
}

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

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

.premium-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 20px;
}

.trial {
  margin-top: 28px;
  font-weight: 600;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.shot {
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 13px;
}

/* Legal */

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

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

.legal h1 {
  margin-top: 16px;
}

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

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

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

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

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

.legal a {
  overflow-wrap: anywhere;
}

.toc {
  margin-top: 40px;
  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: 120px;
}

/* Footer */

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

.site-footer p {
  margin: 0;
}

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

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

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

@media (max-width: 420px) {
  .app-card-go {
    display: none;
  }
}

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

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

.topics + .link-list {
  margin-top: 40px;
}

@media (min-width: 600px) {
  .topics {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop: home and Barley sections use a wider container, text keeps its reading width. */

@media (min-width: 1024px) {
  .wide .wrap {
    max-width: 1008px; /* 960px of content plus the 24px gutters */
  }

  .wide main :is(h1, h2, p),
  .wide .premium {
    max-width: 640px;
  }

  .wide .hero :is(h1, p) {
    max-width: none;
  }

  .topics {
    grid-template-columns: repeat(4, 1fr);
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
