/* QuickNotes – Books (Light Theme)
   Palette:
   - Background: #F8F4E8  (parchment)
   - Surface:    #FFFBF2  (light card panel)
   - Text:       #1A1A1A  (near-black ink)
   - Accent:     #D5A873  (warm brass)
*/

:root {
  --bg: #F8F4E8;           /* main background */
  --surface: #FFFBF2;      /* lighter card/surface tone */
  --ink: #1A1A1A;          /* primary text */
  --accent: #D5A873;       /* brass accent */
  --muted: #4A4A4A;        /* subdued secondary text */
  --border: rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Layout */
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
header {
  padding: 20px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, #D5A873, #B98B53);
  display: grid; place-items: center;
  color: #FFF;
  font-weight: 700;
}
.kicker { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.topnav a { margin-left: 16px; color: var(--muted); }
.topnav a:hover { color: var(--accent); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  padding: 16px 0 8px;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.lede { color: var(--muted); margin: 0 0 16px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 0; }
.btn {
  background: var(--accent);
  color: #1A1A1A;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
}
.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* Cards & Grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.grid { display: grid; gap: 16px; margin-top: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.list { margin: 0; padding-left: 18px; }

/* Screenshot layout */
.screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.screenshots .shot {
  flex: 1 1 45%;             /* two per row on wide screens */
  max-width: 48%;            /* prevent oversizing */
  border-radius: 12px;
  display: block;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

@media (max-width: 700px) {
  .screenshots .shot {
    flex-basis: 100%;
    max-width: 100%;         /* stack on narrow screens */
  }
}


.screenshots .shot {
  width: 100%;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--border);
}
.screenshots .shot + .shot { margin-top: 12px; }

/* Ad demo */
.adbar { margin-top: 12px; }
.adslot {
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface);
}

/* Footer */
footer {
  opacity: .9;
  font-size: 14px;
  padding: 28px 0 8px;
  color: var(--muted);
}
footer a { color: var(--accent); }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topnav a { margin-left: 0; margin-right: 16px; }
}
