/* ATHENAEUM: the look of the site.

   grimoire.css, loaded before this file, holds the structure and the plain defaults.
   This file holds the colours, the type, the wallpaper and the pictures.

   HOW TO CHANGE THINGS
   - Colours: the list of names just below (--oxblood, --green, --brass ...). Change a value there
     and it changes everywhere.
   - Fonts: --display is the pixel face for titles, --serif (kept under its old name) is the body text,
     --italic is used for buttons and the strip under each title.
   - Wallpaper: static/art/wall.jpg. Banners: static/art/band-*.jpg. Moon above the site name: static/banner.jpg.
   - Grain: static/art/grain.svg. Delete the "film grain" rule below to turn it off.

   Every rule here begins with ":root". That is only to make sure it wins over the plainer rule
   of the same name in grimoire.css; it has no other meaning. */

@font-face {
  font-family: "Pixelify Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/pixelify-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Pixelify Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/pixelify-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Colours, wallpaper and frame ---------- */
:root {
  color-scheme: light;
  --paper: #EFE6CF;
  --leaf: #F7F0DC;
  --ink: #2A211B;
  --ink-2: #6A5947;
  --rule: #BDAA80;
  --gold: #7A2630;
  --saturn: #3F3A36; --jupiter: #2B4A8C; --mars: #9C2B24; --sun: #846008; --venus: #2C6A45; --mercury: #9A4A16; --moon: #5E4690; --warn: #8E2A1C;
  --oxblood: #5E1F25;
  --oxblood-deep: #2A1412;
  --green: #2F4A3A;
  --brass: #E6D29A;
  --brass-deep: #8C7435;
  --serif: Verdana, "Trebuchet MS", "Segoe UI", Geneva, sans-serif;
  --display: "Pixelify Sans", "Courier New", monospace;
  --italic: Georgia, "Iowan Old Style", "Times New Roman", serif;
  scrollbar-color: #5E1F25 #D8CCA8;
}
:root ::selection { background: var(--oxblood); color: var(--brass); }
:root body { font-size: 15px; line-height: 1.6; }
/* film grain over everything; it never takes a click */
:root body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background-image: url("art/grain.svg");
  mix-blend-mode: multiply;
}
@media print { :root body::after { display: none; } }

:root .frame { max-width: 64rem; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 0 0.7rem; padding: 0 0.7rem; }
:root .contents {
  position: static; height: auto; overflow: visible; padding: 0; border: 0; gap: 0;
  background: var(--paper); border-left: 1px solid #A8915A; border-right: 1px solid #A8915A; border-bottom: 1px solid #A8915A;
}
:root .contents .title {
  background: var(--oxblood);
  color: var(--brass); font-family: var(--display); font-size: 2rem; line-height: 1.05; text-align: center;
  padding: 0.8rem 0.6rem 0.9rem;
}
:root .contents .title small { color: #E3CFC0; letter-spacing: 0.22em; font-size: 11px; margin-top: 0.45rem; }
:root .contents nav { gap: 0; }
:root .contents .part { gap: 0.02rem; padding-bottom: 0.75rem; }
:root .contents .part > span {
  background: var(--green);
  color: var(--paper); text-align: center; letter-spacing: 0.3em; font-size: 11px; padding: 0.45rem 0.6rem 0.55rem; margin: 0 0 0.55rem;
}
:root .contents .part a { padding: 0.05rem 0.8rem 0.05rem 0; margin-left: 0.9rem; border: 0; font-size: 0.86rem; color: var(--ink); }
:root .contents .part a::before { content: "\25B8\00A0"; color: var(--brass-deep); }
:root .contents .part a:hover { color: var(--gold); text-decoration: underline; border: 0; }
:root .contents .part a[aria-current="page"] { color: var(--gold); font-weight: 700; border: 0; }

:root main { background: var(--paper); padding: 0 1.1rem 2.5rem; gap: 1.3rem; border: 1px solid #A8915A; border-top: 0; }
:root .head {
  position: relative; margin: 0 -1.1rem; padding: 2.4rem 1.2rem 0; gap: 0.5rem; text-align: center; align-items: center;
  background: var(--oxblood);
}
:root .head .eyebrow, :root .head .eyebrow a { color: #E3CFC0; letter-spacing: 0.3em; }
:root h1 {
  font-family: var(--display); color: var(--brass); font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.05; letter-spacing: 0.02em; padding-bottom: 1.1rem;
}
:root .head .glyph { color: inherit; }
:root .head .lede {
  align-self: stretch; max-width: none; margin: 0 -1.2rem; padding: 0.55rem 1.4rem 0.6rem; text-align: center;
  font-size: 1rem; line-height: 1.5; background: var(--green); color: #F3EBD3;
  border-top: 2px solid var(--brass-deep);
}
:root h2 {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase; text-align: center; color: var(--paper);
  background: var(--green); padding: 0.5rem 0.7rem 0.6rem; margin-top: 0.3rem;
}
:root h2 .planet, :root h2 .glyph { color: inherit; }
:root h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 400; color: var(--oxblood); }
:root .prose, :root .note, :root dl.facts, :root .verse, :root .caution { max-width: 62ch; }
:root main a:not(.entry):not(.button):not(.leaf) { color: var(--gold); text-decoration: underline; text-decoration-color: var(--rule); }
:root main a:not(.entry):not(.button):not(.leaf):hover { color: var(--green); text-decoration-color: currentColor; }
:root .head a:not(.entry):not(.button):not(.leaf) { color: #E3CFC0; }
:root .eyebrow, :root .field > span, :root dl.facts dt, :root th { letter-spacing: 0.2em; }
:root dl.facts dt { color: var(--gold); }
:root th { border-bottom: 3px double var(--brass-deep); color: var(--ink-2); }
:root td { border-bottom: 1px dotted var(--rule); }
:root hr { border-top: 3px double var(--rule); }
:root .leaf, :root .entry, :root .plate, :root .verse, :root .fig {
  border-radius: 0; border-color: #A8915A;
}
:root .entry .name { font-family: var(--display); font-size: 1.22rem; color: var(--oxblood); }
:root .entry:hover { border-color: var(--oxblood); }
:root .now .big { font-family: var(--display); font-size: 1.6rem; color: var(--oxblood); }
:root .now .big .planet { color: var(--p); }
:root .verse { font-family: var(--italic); font-size: 1.02rem; border: 3px double #A8915A; }
:root button, :root .button {
  font-family: var(--italic); font-style: italic; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: lowercase;
  background: var(--oxblood); color: var(--brass); border: 1px solid #8E4A50; border-radius: 0; padding: 0.35rem 0.9rem;
}
:root button:hover, :root .button:hover { background: var(--green); color: var(--brass); border-color: #5F7D6B; }
:root button.quiet { background: #E6DBBB; color: var(--ink); border: 1px solid #D5C79E; }
:root button.quiet:hover { background: #F1E8CC; color: var(--ink); border-color: #D5C79E; }
:root button[aria-pressed="true"], :root button.quiet[aria-pressed="true"], :root button.quiet[aria-pressed="true"]:hover {
  background: var(--green); color: var(--brass); border: 1px solid #5F7D6B;
}
:root input, :root select, :root textarea { background: #FFFDF4; border-radius: 0; border: 1px solid #D5C79E; font-size: 0.95rem; }
:root .tag { border-style: dotted; border-color: var(--brass-deep); }
:root footer.colophon {
  background: var(--oxblood); color: #E3CFC0; border: 1px solid #A8915A; justify-content: center; text-align: center; font-size: 0.7rem; letter-spacing: 0.08em;
  padding: 0.7rem 1rem; margin: 0.7rem 0 1.2rem;
}
:root footer.colophon a { color: var(--brass); background: var(--green); border: 1px solid #5F7D6B; padding: 0.1rem 0.5rem; text-decoration: none; }
@media (max-width: 860px) {
  :root .frame { padding: 0; }
  :root .contents { padding: 0 0 0.7rem; border: 0; border-bottom: 1px solid #A8915A; }
  :root .menu > summary {
    align-self: center; margin: 0.7rem 0 0; font-family: var(--italic); font-style: italic; text-transform: lowercase; letter-spacing: 0.04em; font-size: 0.92rem;
    background: var(--oxblood); color: var(--brass); border: 1px solid #8E4A50; border-radius: 0;
  }
  :root .menu[open] > summary { background: var(--green); color: var(--brass); border: 1px solid #5F7D6B; }
  :root .contents .part { padding-bottom: 0.4rem; }
  :root .contents .part > span { min-width: 100%; }
  :root main { border-left: 0; border-right: 0; padding: 0 0.9rem 2rem; }
  :root .head { margin: 0 -0.9rem; padding-top: 1.6rem; }
  :root .head .lede { margin: 0 -1.2rem; }
  :root footer.colophon { margin: 0; border-left: 0; border-right: 0; }
}

/* ---------- 2. Page width, type sizes, link lists and the ruled strip ----------
   A fixed-width page in pixels, small dense type, plain link lists, and ordinary words for labels. */
:root body { font-size: 14px; line-height: 1.55; }
:root .frame { width: 880px; max-width: 100%; grid-template-columns: 196px minmax(0, 1fr); gap: 0 10px; padding: 0; }
:root .contents .title { font-size: 26px; padding: 12px 8px 13px; }
:root .contents .part a { font-size: 12px; margin-left: 10px; }
:root .contents .part > span { font-size: 11px; padding: 6px 8px; margin-bottom: 7px; }
:root main { padding: 0 14px 30px; gap: 16px; }
:root .head { margin: 0 -14px; padding: 26px 14px 0; }
:root .head .lede { margin: 0 -14px; padding: 8px 18px 9px; font-size: 13px; line-height: 1.55; }
:root h1 { font-size: 38px; padding-bottom: 14px; }
:root h2 { font-size: 11px; letter-spacing: 0.24em; padding: 6px 8px; }
:root .head .eyebrow:not(:has(a)) { display: none; }
:root .eyebrow, :root .field > span, :root dl.facts dt, :root th, :root .tag, :root .entry .meta {
  font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700;
}
:root .head .eyebrow, :root .head .eyebrow a { letter-spacing: 0; font-weight: 400; }
:root .tag, :root .entry .meta { font-weight: 400; }
:root td.t, :root .mono { font-size: 12px; }

/* link lists, two columns, where the cards were */
:root .entries, :root .entries.wide { display: block; columns: 2; column-gap: 18px; }
:root .entries li { break-inside: avoid; }
:root .entry {
  display: block; position: relative; height: auto; padding: 4px 8px 5px 17px; margin: 0 0 4px; background: none;
  border: 0; border-bottom: 1px dotted var(--rule);
}
:root .entry::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; background: var(--p, var(--brass-deep)); }
:root .entry:hover { border-color: var(--rule); background: var(--leaf); }
:root .entry .name { display: inline; font-family: var(--serif); font-size: 14px; line-height: 1.4; font-weight: 700; color: var(--gold); text-decoration: underline; text-decoration-color: var(--rule); }
:root .entry .sub { display: block; font-family: var(--serif); font-style: normal; font-size: 12px; color: var(--ink-2); }
:root .entry > span:nth-child(n+3) { display: block; font-size: 12px; padding: 0; margin: 0; }
:root div.entry .name { color: var(--ink); text-decoration: none; }
:root .entries .entry > span:nth-child(n+3) { font-size: 13px; line-height: 1.5; }
:root .entry .seal.thumb { float: left; width: 44px; margin: 2px 8px 2px 0; padding: 2px; }
:root .entry::after { content: ""; display: block; clear: both; }

/* one ruled strip where the floating panels were */
:root .now { gap: 0; border: 1px solid #A8915A; background: var(--leaf); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
:root .now .leaf { border: 0; border-right: 1px dotted #A8915A; background: none; padding: 8px 10px 9px; gap: 2px; }
:root .now .leaf:last-child { border-right: 0; }
:root .now .big { font-size: 20px; }
:root .now .note { font-size: 12px; }
:root .log { border-color: #A8915A; font-size: 12px; }
:root .log b { font-family: var(--serif); font-weight: 700; color: var(--gold); }
:root button, :root .button { font-size: 13px; padding: 4px 12px; }
:root .note { font-size: 12px; }
:root footer.colophon { font-size: 11px; letter-spacing: 0.02em; margin: 10px 0 16px; }
@media (max-width: 860px) {
  :root body { font-size: 15px; }
  :root .contents .part a { font-size: 14px; }
  :root .entries, :root .entries.wide { columns: 1; }
  :root .entry .name { font-size: 15px; }
  :root .entry .sub, :root .note, :root .log { font-size: 13px; }
  :root h1 { font-size: 30px; }
  :root .now { grid-template-columns: 1fr; }
  :root .now .leaf { border-right: 0; border-bottom: 1px dotted #A8915A; }
  :root .now .leaf:last-child { border-bottom: 0; }
  :root main { padding: 0 12px 26px; }
  :root .head { margin: 0 -12px; padding-top: 20px; }
  :root .head .lede { margin: 0 -12px; }
}

/* ---------- 3. Pictures ----------
   A William Morris print for wallpaper, an old engraving behind each section's title,
   and two plates pinned in the margins. All public domain; credits are on the About page.
   To change a section's banner, replace the file in static/art/ or point --band at another one;
   --band-y slides the picture up and down behind the title. */
:root body {
  background-color: #17241F;
  background-image: linear-gradient(rgba(14, 22, 20, 0.42), rgba(14, 22, 20, 0.42)), url("art/wall.jpg");
  background-size: auto, 300px auto;
}
:root body.sec-home { --band: url("art/band-home.jpg"); --band-y: 30%; }
:root body.sec-instruments { --band: url("art/band-instruments.jpg"); --band-y: 22%; }
:root body.sec-oracles { --band: url("art/band-oracles.jpg"); --band-y: 45%; }
:root body.sec-rites { --band: url("art/band-rites.jpg"); --band-y: 55%; }
:root body.sec-spirits { --band: url("art/band-spirits.jpg"); --band-y: 40%; }
:root body.sec-gods { --band: url("art/band-gods.jpg"); --band-y: 62%; }
:root body.sec-guides { --band: url("art/band-guides.jpg"); --band-y: 45%; }
:root body.sec-book { --band: url("art/band-book.jpg"); --band-y: 40%; }
:root .head {
  min-height: 270px; justify-content: flex-end;
  background: var(--band) center var(--band-y, 35%) / cover no-repeat, #D9CBA6;
  border-bottom: 0;
}
:root h1 { background: var(--oxblood); border: 1px solid var(--brass-deep); padding: 6px 18px 8px; margin-bottom: 14px; }
:root .head .eyebrow { background: var(--oxblood); padding: 5px 12px; }
:root .contents .banner { border-bottom: 1px solid #A8915A; }
@media (min-width: 1200px) {
  :root .frame { position: relative; }
  :root .sticker { display: block; position: absolute; z-index: 2; width: 150px; height: auto; border: 1px solid #A8915A; background: #F3EAD2; padding: 5px; }
  :root .sticker.hand { right: -152px; top: 330px; transform: rotate(5deg); }
  :root .sticker.bones { left: -154px; top: 700px; transform: rotate(-4deg); }
}
@media (max-width: 860px) {
  :root .head { min-height: 200px; }
  :root .contents .banner { display: none; }
}
@media print { :root .head { background: none; min-height: 0; } }

/* ---------- 4. Pictures under page titles ---------- */
:root .pic img, :root .signs figure { border-color: #A8915A; }
:root .pic figcaption { font-size: 12px; }

/* ---------- 5. The parts the browser draws ----------
   Focus rings, the text cursor, tick boxes and sliders, placeholder text and disabled buttons,
   all taken from the same few colours as everything else. */
:root { accent-color: var(--oxblood); caret-color: var(--oxblood); }
:root :focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
:root .head :focus-visible, :root footer.colophon :focus-visible, :root .contents .title:focus-visible, :root h2 :focus-visible { outline-color: var(--brass); }
:root ::placeholder { color: #7A6A55; opacity: 1; }
:root button:disabled, :root button:disabled:hover { opacity: 0.45; cursor: default; background: #E6DBBB; color: var(--ink); border-color: #D5C79E; }
:root .seal figcaption, :root .seal .cap { font-family: var(--serif); font-size: 12px; letter-spacing: 0; color: #5A4A3A; }
:root .fig .r, :root .cal div.head { font-size: 11px; letter-spacing: 0.04em; }
:root .spread li { border: 1px solid #A8915A; }
:root .log b { font-size: 12px; }
@media (max-width: 860px) {
  :root .contents .part a { padding: 6px 0; }
}

