/* Forum Labs, Inc. site styles. No external fonts, scripts or trackers. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #1d1b19;
  --muted: #6b645c;
  --line: #e7e0d6;
  --accent: #a8432a;
  --button: #b54a2d;
  --button-text: #ffffff;
  --night-top: #1b1d48;
  --night-bottom: #0a0c23;
  --radius: 20px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1d1a17;
    --text: #f3eee7;
    --muted: #a69e94;
    --line: #2f2a25;
    --accent: #e8805f;
    --button: #e8805f;
    --button-text: #141210;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 12px;
  background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 10px;
}
.skip-link:focus { left: 12px; z-index: 10; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
/* Narrow sections keep the page's left edge and just limit line length. */
.narrow > * { max-width: 720px; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--line); }

/* Type */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 700; max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 640px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.muted { color: var(--muted); }

/* Sections */

main section { padding: 72px 0; }
main section + section { border-top: 1px solid var(--line); }
.hero { padding: 96px 0 80px; }
.page-head { padding: 72px 0 24px; }
.page-head + section { border-top: 0; padding-top: 24px; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--button); color: var(--button-text); text-decoration: none;
  font-weight: 600; padding: 12px 20px; border-radius: 999px;
}
.button:hover { filter: brightness(1.06); }
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .grid.two { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.card p:last-child { margin-bottom: 0; }

/* Product cards. Hushling's card borrows the app's night sky. */

.products {
  display: grid; gap: 20px; margin-top: 36px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.product { display: flex; flex-direction: column; border-radius: 28px; padding: 32px; }
.product h3 { font-size: 1.7rem; margin: 0 0 2px; }
.product .tagline { font-weight: 600; margin-bottom: 18px; }
.product .more { margin: auto 0 0; padding-top: 8px; font-weight: 600; }
.product-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.product-head img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }

.pill {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: rgba(196, 81, 47, 0.12); color: var(--accent); margin-bottom: 14px;
}

.product-light { background: var(--surface); border: 1px solid var(--line); }
.product-light p { color: var(--muted); }
.product-light .tagline { color: var(--text); }

.product-night { background: linear-gradient(160deg, var(--night-top), var(--night-bottom)); color: #f4f2ff; }
.product-night p { color: rgba(244, 242, 255, 0.75); }
.product-night .tagline { color: #f4f2ff; }
.product-night a { color: #f6cb7a; }
.product-night .pill { background: rgba(246, 203, 122, 0.16); color: #f6cb7a; }

@media (max-width: 600px) {
  .product { padding: 24px; border-radius: 24px; }
}

.product-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.product-hero img { width: 120px; height: 120px; border-radius: 27px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }

.list { padding-left: 1.2em; margin: 0 0 16px; }
.list li { margin-bottom: 8px; }

.faq h3 { margin-top: 28px; margin-bottom: 6px; }

dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; }
@media (max-width: 520px) {
  dl.details { grid-template-columns: 1fr; gap: 2px; }
  dl.details dd { margin-bottom: 12px; }
}

.prose h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 10px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
address { font-style: normal; }
.site-footer address { margin-top: 4px; font-size: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
