:root {
  --ink: #1b1b1b;
  --muted: #5d5d5d;
  --paper: #f6f4ef;
  --card: #ffffff;
  --accent: #1f6feb;
  --line: #dedad2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.6 var(--sans);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h2 { font-size: 2rem; margin: 0 0 1.5rem; text-align: center; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }

code {
  font: .85em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #ebe7de;
  padding: .1em .35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #fbfaf7 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { font: 600 1.4rem var(--serif); letter-spacing: .01em; }
.links a { color: var(--ink); margin-left: 1.4rem; font-size: .95rem; }

.hero-body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.3rem); margin: 0 0 1.2rem; }
.lede { font-size: 1.2rem; color: #333; max-width: 34em; }
.cta { margin: 2rem 0 1rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.button {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.button:hover { text-decoration: none; background: #333; }
.button.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.button.ghost:hover { background: #ebe7de; }
.fine { font-size: .85rem; color: var(--muted); }

/* A Kobo-like bezel around screenshots */
.device {
  margin: 0;
  background: #2b2b2b;
  padding: 14px 14px 30px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18), inset 0 0 0 1px #3a3a3a;
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #fff;
}
.hero-device { max-width: 400px; justify-self: center; transform: rotate(1.5deg); }

main section { max-width: 1120px; margin: 0 auto; padding: 4.5rem 1.5rem 0; }

/* Features */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.2rem;
}
.grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.grid p { margin: 0; color: #3b3b3b; }

/* Screens */
.note { text-align: center; color: var(--muted); margin: -.8rem 0 2rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 2rem 1.6rem;
}
.gallery .device { padding: 10px 10px 22px; border-radius: 18px; }
.gallery figcaption {
  color: #d9d9d9;
  font-size: .85rem;
  text-align: center;
  margin-top: 10px;
  line-height: 1.35;
}

/* Install */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cols > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.8rem;
}
.cols li { margin-bottom: .6rem; }

/* Honest notes */
.honest ul { max-width: 46em; margin: 0 auto; padding-left: 1.2rem; }
.honest li { margin-bottom: .9rem; }

footer {
  margin-top: 5rem;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
footer p { margin: .3rem 0; }

@media (max-width: 820px) {
  .hero-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-device { max-width: 300px; transform: none; }
  .cols { grid-template-columns: 1fr; }
  .links a:not(:last-child) { display: none; }
}
