/* LectorTome site: one stylesheet for every page. The app's own colours (Paper, the leather
   brown of AccentColor and the gilt of the icon's page edges), in the GNUware family of sites. */
:root {
  color-scheme: light dark;
  --bg: #fbf6ee;          /* the app's Paper */
  --panel: #fffdf8;
  --panel-2: #efe3d0;     /* the app's Tile */
  --line: #e6d9c4;
  --line-2: #d3c0a2;
  --ink: #2e2218;
  --ink-2: #514330;
  --muted: #76664f;
  --accent: #8a5a33;      /* AccentColor */
  --accent-hover: #6e4626;
  --accent-soft: #f1e2cf;
  --on-accent: #fffaf0;
  --gilt: #d4a53f;
  --gilt-hi: #f6dc8c;
  --gilt-ink: #7a5512;
  --soon-bg: #f6ecd6;
  --soon-line: #e6d3a8;
  --deep: #2a1e15;        /* the dark bands */
  --deep-2: #3a2a1d;
  --on-deep: #f6ead6;
  --on-deep-2: #d6c3a6;
  --shadow: 46, 34, 24;
  --maxw: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1612;
    --panel: #251d17;
    --panel-2: #33271e;
    --line: #3d3026;
    --line-2: #55432f;
    --ink: #f3e8d8;
    --ink-2: #d9c9b1;
    --muted: #ab9a80;
    --accent: #d6a570;
    --accent-hover: #e8bd8b;
    --accent-soft: #3a2c20;
    --on-accent: #1c1612;
    --gilt-ink: #ecc56a;
    --soon-bg: #3a2e18;
    --soon-line: #5c4823;
    --deep: #120d0a;
    --deep-2: #231a13;
    --shadow: 0, 0, 0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px / 1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font: 600 clamp(2.4rem, 6vw, 4rem) / 1.06 var(--serif); letter-spacing: -.02em; }
h2 { font: 600 clamp(1.7rem, 4vw, 2.6rem) / 1.12 var(--serif); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
em.gilt, .gilt { font-style: italic; color: var(--accent); }
code { font: .88em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--panel-2); padding: .1em .4em; border-radius: 5px; }
kbd { font: .88em var(--sans); font-weight: 600; background: var(--panel-2); border: 1px solid var(--line-2); padding: .05em .45em; border-radius: 6px; white-space: nowrap; }

.wrap { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* "coming soon" strip above the header */
.soon-banner { background: var(--soon-bg); color: var(--gilt-ink); border-bottom: 1px solid var(--soon-line); font-size: .93rem; text-align: center; padding: 8px 16px; }
.soon-banner a { color: var(--gilt-ink); font-weight: 600; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 62px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.25rem var(--serif); color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-hover); }
.nav a[aria-current="page"] { font-weight: 600; }

/* buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-size: 1rem; line-height: 1.3; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--accent-hover); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent); }
/* gold leaf, like the icon's page edges */
.btn--gilt { background: linear-gradient(180deg, var(--gilt-hi), var(--gilt) 60%, #b98a2c); color: #3d2a08; border-color: #a97a22; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--gilt:hover { background: linear-gradient(180deg, #fae6a6, #ddb04a 60%, #c09232); color: #3d2a08; border-color: #8c6418; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.pill { display: inline-block; border-radius: 999px; padding: 4px 14px; font-size: .88rem; font-weight: 600; background: var(--soon-bg); color: var(--gilt-ink); border: 1px solid var(--soon-line); }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9em; }
.fine { color: var(--muted); font-size: .9rem; }

/* hero: words on the left, the iPad shelf with the iPhone player in front of it on the right */
.hero { padding: 64px 0 72px; overflow: hidden; background: radial-gradient(1200px 520px at 85% 10%, var(--accent-soft), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.22rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.5em; }
.hero h1 .gilt { display: block; }
.hero .pill { margin-bottom: 1.3em; }
.hero .fine { margin-top: 1.1em; }
.ticks { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 1.4em 0 0; color: var(--ink-2); font-size: .95rem; font-weight: 600; }
.ticks li::before { content: "✓"; color: var(--accent); margin-right: 6px; }
.devices { position: relative; padding: 0 0 40px 0; }
.devices .tablet { width: 100%; }
.devices .phone { position: absolute; right: -6px; bottom: 0; width: 34%; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .devices { max-width: 640px; margin-inline: auto; }
}

/* device frames for screenshots */
.tablet { border-radius: 26px; border: 12px solid #1b1612; background: #1b1612; box-shadow: 0 30px 70px rgba(var(--shadow), .28); overflow: hidden; }
.tablet img { border-radius: 14px; }
.phone { border-radius: 40px; border: 9px solid #1b1612; background: #1b1612; box-shadow: 0 26px 60px rgba(var(--shadow), .34); overflow: hidden; }
.phone img { border-radius: 31px; }
.panel-shot { border-radius: 24px; overflow: hidden; box-shadow: 0 22px 54px rgba(var(--shadow), .26); }

/* sections */
section { padding: 72px 0; }
.alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 40px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }

/* the strip of quick facts under the hero */
.facts { background: var(--deep); color: var(--on-deep); padding: 26px 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.facts strong { display: block; font: 600 1.45rem var(--serif); color: var(--gilt-hi); }
.facts span { font-size: .9rem; color: var(--on-deep-2); }

/* big feature rows: picture one side, words the other */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature--flip .feature__copy { order: 2; }
.feature__copy p { color: var(--ink-2); font-size: 1.06rem; }
.feature__copy ul { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 10px; }
.feature__copy li { padding-left: 30px; position: relative; color: var(--ink-2); }
.feature__copy li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--gilt-hi), var(--gilt)); box-shadow: 0 0 0 1px #a97a22 inset; }
.feature__copy li strong { color: var(--ink); }
.feature__art .phone { max-width: 320px; margin-inline: auto; }
.feature__art--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.feature__art--pair .phone { max-width: none; }
.feature__art--stack { display: grid; gap: 20px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__copy { order: 0; }
  .feature + .feature { margin-top: 72px; }
}

/* the bedtime band */
.night { background: linear-gradient(180deg, var(--deep), var(--deep-2)); color: var(--on-deep); border: 0; }
.night h2 { color: var(--on-deep); }
.night .feature__copy p, .night .feature__copy li { color: var(--on-deep-2); }
.night .feature__copy li strong { color: var(--on-deep); }
.night .kicker { color: var(--gilt-hi); }
.night .phone { border-color: #000; box-shadow: 0 26px 70px rgba(0, 0, 0, .6); }
.moon { font-size: 2.4rem; line-height: 1; margin-bottom: .3em; }

/* cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; }
.alt .card { background: var(--bg); }
.card h3 { margin-bottom: .35em; font-family: var(--serif); font-size: 1.22rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }
.card .icon { font-size: 1.6rem; line-height: 1; margin-bottom: .5em; display: block; }

/* Wi-Fi Transfer steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 22px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem var(--sans); background: linear-gradient(180deg, var(--gilt-hi), var(--gilt)); color: #3d2a08; }
.browser { font: .92rem ui-monospace, "SF Mono", Menlo, monospace; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 2px 8px; white-space: nowrap; }

/* privacy band */
.private { text-align: center; }
.private h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.private .big-no { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 34px; margin: 10px 0 26px; font: 600 clamp(1.3rem, 3vw, 1.8rem) var(--serif); color: var(--accent); }
.private p { max-width: 40rem; margin-inline: auto; color: var(--ink-2); }

/* formats */
#formats .fine { max-width: 40rem; margin-inline: auto; }
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.formats li { font: 700 1rem var(--sans); letter-spacing: .04em; padding: 8px 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); }

/* quote-style pull lines */
.pull { font: italic 500 clamp(1.4rem, 3.2vw, 2rem) / 1.35 var(--serif); color: var(--ink); text-align: center; max-width: 44rem; margin: 0 auto; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin-bottom: 10px; }
.alt details { background: var(--bg); }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: .5em; }
details p:last-child { margin-bottom: 0; }

.cta { text-align: center; }
.cta img { width: 112px; margin: 0 auto 22px; filter: drop-shadow(0 12px 22px rgba(var(--shadow), .3)); }
.cta p { color: var(--ink-2); max-width: 34rem; margin: 0 auto 1.4em; font-size: 1.08rem; }
.cta .btn-row { justify-content: center; }

/* article pages (privacy, support) */
.page { padding: 48px 0 72px; max-width: 780px; }
.page h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); }
.page h2 { margin-top: 1.8em; font-size: 1.6rem; }
.page h3 { margin-top: 1.4em; }
.page li { margin-bottom: .35em; }
.page .lead { font-size: 1.12rem; color: var(--ink-2); }
.meta { color: var(--muted); font-size: .92rem; }
.callout { background: var(--accent-soft); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 18px; margin: 1.2em 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .92rem; color: var(--ink-2); background: var(--panel); }
.toc a:hover { border-color: var(--accent); color: var(--accent-hover); }
.page details { margin-top: 10px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); padding: 30px 0; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }

/* the 404 page */
.page--center { text-align: center; max-width: 640px; }
