﻿/* LeafBinder website */

@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FBF7EE;
  --band: #F4EDDF;
  --card: #FFFDF8;
  --ink: #2A1D17;
  --ink-2: #4A3A30;
  --muted: #5E4F44;
  --line: #DDD2BF;
  --accent: #7B1E2B;
  --accent-deep: #5C1520;
  --accent-text: #7B1E2B;
  --accent-text-hover: #5C1520;
  --on-accent: #FFFDF8;
  --tree-bg: #1F1511;
  --tree-line: #4A3D34;
  --gold: #A8752A;
  --gold-light: #E3B866;
  --dark: #2A1D17;
  --dark-text: #F1EADC;
  --dark-muted: #D9CBB8;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

/* Dark theme: used when the visitor's system is set to dark. Declaring it
   also stops browsers from darkening the page on their own. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17120F;
    --band: #1F1915;
    --card: #241D18;
    --ink: #F1E8D6;
    --ink-2: #DDD0BD;
    --muted: #BCAE99;
    --line: #3A302A;
    --accent: #8E2333;
    --accent-deep: #A72C3E;
    --accent-text: #EBA5AE;
    --accent-text-hover: #F5C4CA;
    --gold: #C99A4B;
    --dark: #0E0A08;
    --tree-bg: #17120F;
    --tree-line: #3A302A;
  }
  .fr { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-text-hover); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: 1rem; }

.w { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.ser { font-family: var(--serif); }
.mut { color: var(--muted); }

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
.eb {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Buttons */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.cta:hover { background: var(--accent-deep); color: var(--on-accent); }
.cta--small { min-height: 44px; padding: 0 18px; font-size: 15px; }
button.cta { font: inherit; font-weight: 600; cursor: pointer; }
.cta:disabled,
.cta:disabled:hover {
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: not-allowed;
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-header .brand { display: flex; }
.site-header .brand img { height: 46px; width: auto; }
.site-header .spacer { flex: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover { color: var(--accent-text); }
@media (max-width: 720px) {
  .w { padding: 0 16px; }
  .site-header { gap: 8px 12px; }
  .site-header .nav { display: none; }
  .site-header .brand img { height: 36px; }
  .hero { padding-top: 24px; }
}

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 56px;
  padding-top: 56px;
  padding-bottom: 84px;
}
.hero__text { display: flex; flex-direction: column; gap: 22px; flex: 1 1 460px; min-width: 0; }
.hero__art { flex: 1.2 1 520px; min-width: 0; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--accent-text); }
.hero__lede { margin: 0; max-width: 520px; font-size: 19px; color: var(--ink-2); }
.hero__note { margin: 0; font-size: 15px; }
.hero__note strong { color: var(--ink); font-weight: 600; }
.hero__lede { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink); }
.hero__sub { margin: -8px 0 0; max-width: 520px; font-size: 17px; color: var(--ink-2); }

/* Novels and nonfiction */

.kinds { padding-top: 84px; padding-bottom: 84px; }
.kinds .h2 { margin: 14px 0 30px; }
.kinds__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 32px 64px; }
.kinds__grid h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 21px; font-weight: 600; }

/* Trial note by the download buttons */

.closing__trial {
  max-width: 520px;
  margin-top: 8px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--band);
}
.closing__trial p { margin: 0; }
.closing__trial p + p { margin-top: 6px; font-size: 15px; }

/* Screenshot frames */

.fr {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 44px rgba(42, 29, 23, 0.13);
  overflow: hidden;
}
.fr img { display: block; width: 100%; }
.fr--page { max-width: 380px; margin: 0 auto; }

/* Promise band */

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--band); }
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 36px 48px;
  padding-top: 52px;
  padding-bottom: 52px;
}
.promise { display: flex; flex-direction: column; gap: 8px; }
.promise svg { color: var(--accent-text); }
.promise h3 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.promise p { margin: 0; font-size: 16px; }

/* Feature rows */

.ft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px 64px;
  padding: 84px 0;
  border-top: 1px solid var(--line);
}
.ft--plain { border-top: 0; }
.ft > .tx { display: flex; flex-direction: column; gap: 16px; flex: 1 1 380px; min-width: 0; }
.ft > .art { flex: 1.2 1 480px; min-width: 0; }
.ft.flip > .art { order: -1; }
@media (max-width: 900px) { .ft.flip > .art { order: 0; } }
.ft p { margin: 0; }

.ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.ul li { display: flex; gap: 12px; }
.ul li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.aside { font-family: var(--serif); font-size: 18px; font-style: italic; margin-top: 4px !important; }
.strong { font-weight: 600; margin-top: 4px !important; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.chips span { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

/* Safety and ownership */

.dark { background: var(--dark); color: var(--dark-text); }
.dark__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 56px 72px;
  padding-top: 88px;
  padding-bottom: 88px;
}
.dark__grid > div { display: flex; flex-direction: column; gap: 16px; }
.dark .eb { color: var(--gold-light); }
.dark .h2 { color: var(--on-accent); }
.dark p { margin: 0; color: var(--dark-muted); }
.dark .ul { color: var(--dark-text); }
.tree {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
  padding: 16px 18px;
  border: 1px solid var(--tree-line);
  border-radius: 10px;
  background: var(--tree-bg);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--dark-muted);
}
.tree .root { color: var(--gold-light); }
.tree .l1 { padding-left: 18px; }
.tree .l2 { padding-left: 36px; }

/* Questions */

.faq { padding-top: 84px; padding-bottom: 84px; }
.faq .h2 { margin: 14px 0 30px; }
.faq__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 0 64px; }
.q { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.q h3 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.q p { margin: 0; }

/* Download */

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
}
.closing img { width: 64px; height: 64px; }
.closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1.1;
}
.closing__lede { margin: 0; font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--accent-text); }
.closing .ctas { justify-content: center; margin-top: 8px; }
.closing__note { margin: 0; font-size: 15px; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); }
.site-footer .w {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 26px;
  padding-bottom: 30px;
  font-size: 14.5px;
  color: var(--muted);
}
.site-footer .spacer { flex: 1; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Privacy policy */

.doc { max-width: 760px; padding-top: 40px; padding-bottom: 96px; }
.doc h1 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(34px, 4.6vw, 48px); font-weight: 600; line-height: 1.1; }
.doc .effective { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 40px 0 12px; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.25; }
.doc h3 { margin: 28px 0 10px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 1.25rem; }
.doc li > ul { margin: 8px 0 0; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--gold); }
.doc .short {
  margin: 8px 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--band);
}
.doc .short h2 { margin-top: 0; }
.doc .short p:last-child { margin-bottom: 0; }
.doc address { font-style: normal; }
