/* book.free4ever.org: shared styles */
:root {
  --bg: #f6f4ef;
  --bg-2: #efece4;
  --surface: #ffffff;
  --ink: #1d2125;
  --ink-2: #3d4248;
  --muted: #6b6f76;
  --line: rgba(29, 33, 37, 0.11);
  --line-2: rgba(29, 33, 37, 0.2);
  --accent: #1f6b57;          /* deep green, AA on white and ivory */
  --accent-2: #17503f;
  --accent-soft: rgba(31, 107, 87, 0.1);
  --warm: #c2562f;            /* used sparingly: the selected time, "next" */
  --danger: #a8322a;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(29, 33, 37, .06), 0 6px 18px -8px rgba(29, 33, 37, .14);
  --shadow-lg: 0 2px 4px rgba(29, 33, 37, .05), 0 24px 48px -20px rgba(29, 33, 37, .25);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(31, 107, 87, .4); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.textlink { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 9; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand small { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: 0; }

.top { border-bottom: 1px solid var(--line); background: rgba(246, 244, 239, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.top nav { display: flex; gap: 18px; align-items: center; font-size: 15px; font-weight: 600; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 15px; line-height: 1;
  padding: 13px 20px; border-radius: 11px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn--pop, .btn--blue { background: var(--accent); color: #fff; }
.btn--pop:hover, .btn--blue:hover { background: var(--accent-2); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* messages */
.bk-error { background: #fbeae8; color: #7f241d; padding: 12px 16px; border-radius: 11px; font-weight: 600; margin: 0 0 14px; }
.bk-notice { background: #fdf1df; color: #6b4610; padding: 12px 16px; border-radius: 11px; font-weight: 600; margin: 0 0 14px; }
.bk-success { background: #e5f2ec; color: #164a3b; padding: 12px 16px; border-radius: 11px; font-weight: 600; margin: 0 0 14px; }

.foot { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); }
.top nav a.btn, .top nav a.btn:hover { color: #fff; }
