/* eltonrenda.com: shared site chrome (every page loads this first).
   Header, footer, tokens and buttons live here so every book and project page matches.
   Palette from the places: Galilee basalt, Jerusalem limestone, the lake, lamp-light ochre. */
:root {
  --basalt: #2A2926;
  --basalt-2: #3A3934;
  --limestone: #EAE4D7;
  --limestone-2: #DED6C4;
  --paper: #F5F2EB;
  --lake: #2C6A78;
  --lake-deep: #1E4B56;
  --ochre: #C08A2E;
  --text: #2A2926;
  --muted: #6A665C;
  /* corner rounding: three sizes only, used the same way on every page */
  --r-control: 999px; /* buttons and inputs: pills */
  --r-panel: 8px;     /* panels, cards and bands */
  --r-print: 2px;     /* book covers and printed pages */
  --sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--serif); font-size: 18px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* site header: identical on every page */
.site-head { background: var(--paper); border-bottom: 1px solid var(--limestone-2); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 28px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.sig { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -.01em; text-decoration: none; color: var(--basalt); }
.site-nav { display: flex; gap: 6px 26px; font-family: var(--sans); font-size: 16px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--lake); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px var(--ochre); }

/* site footer: identical on every page */
.site-foot { background: var(--basalt); color: #bdb6a6; font-family: var(--sans); font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 48px; padding-bottom: 28px; }
.site-foot .sig { color: #f4efe4; display: inline-block; margin-bottom: 8px; }
.site-foot p { margin: 0; max-width: 22em; line-height: 1.6; }
.site-foot h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: #f4efe4; margin: 0 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 6px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: #f4efe4; }
.site-foot .base { grid-column: 1 / -1; border-top: 1px solid #4a4842; padding-top: 18px; margin-top: 10px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8f897c; }

/* buttons, shared */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; padding: 14px 22px; border-radius: var(--r-control); }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .site-foot .about { grid-column: 1 / -1; }
}

/* notify-me form, shared by every book */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notify { max-width: 460px; }
.notify-row { display: flex; gap: 10px; flex-wrap: wrap; }
.notify input { flex: 1 1 220px; min-width: 0; font: 16px/1.2 var(--sans); padding: 13px 18px; border-radius: var(--r-control); border: 1.5px solid var(--limestone-2); background: #fff; color: var(--text); }
.notify input:focus { outline: none; border-color: var(--lake); box-shadow: 0 0 0 3px rgba(44,106,120,.18); }
.notify button { font: 600 16px/1.2 var(--sans); padding: 13px 22px; border-radius: var(--r-control); border: 0; background: var(--basalt); color: var(--paper); cursor: pointer; }
.notify button:hover { background: var(--lake-deep); }
.notify button:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.notify button:disabled { opacity: .6; cursor: default; }
.notify-msg { margin: 10px 0 0; font: 15px/1.4 var(--sans); min-height: 0; }
.notify-msg:empty { display: none; }
.notify-msg.ok { color: var(--lake); font-weight: 600; }
.notify-msg.err { color: #a23b2a; }
.notify-small { margin: 10px 0 0; font: 13.5px/1.45 var(--sans); color: var(--muted); }
.notify.done .notify-row, .notify.done .notify-small { display: none; }
/* on dark book bands */
.notify-dark input { background: transparent; border-color: #5b5e62; color: #f2f2f0; }
.notify-dark input::placeholder { color: #9a9d9d; }
.notify-dark input:focus { border-color: #C9CCCC; box-shadow: none; }
.notify-dark button { background: #C9CCCC; color: #0A0A0B; }
.notify-dark button:hover { background: #fff; }
.notify-dark .notify-small { color: #8e9292; }
.notify-dark .notify-msg.ok { color: #e8e8e6; }
.notify-dark .notify-msg.err { color: #f0a38c; }
