/* Brass Circuit — "Analogue Digital". Palette and type shared with The Courier. */

@font-face { font-family: "Old Standard TT"; src: url("../fonts/old-standard-tt-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --paper: #F4ECD8;      /* Tea-Stained Sepia */
  --card: #E9DFAE;       /* Index Card Yellow */
  --ink: #2A2A2A;        /* Carbon Black */
  --accent: #8C2D19;     /* Dried Cochineal */
  --rule: #B8763F;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1A1A1A;    /* Charcoal Broadside */
    --card: #332D1E;
    --ink: #F4ECD8;
    --accent: #C0442B;
    --rule: #8A5A34;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.125rem/1.6 "Spectral", Georgia, serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 40rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font-family: "Courier Prime", "Courier New", monospace; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }

/* masthead: double red rule above and below, as on the app's library screen */
.masthead { text-align: center; margin-bottom: 2.5rem; }
.masthead .rules { border-top: 3px solid var(--accent); border-bottom: 1px solid var(--accent); height: 7px; }
.masthead .rules.bottom { border-top-width: 1px; border-bottom-width: 3px; }
.masthead h1, .masthead .name {
  font: 700 clamp(2rem, 9vw, 3.25rem)/1.1 "Old Standard TT", Georgia, serif;
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0.9rem 0;
}
.masthead .name a { color: inherit; text-decoration: none; }
.masthead .tag { color: var(--accent); margin: 0.6rem 0 0; }

h2 { font: 700 1.5rem/1.25 "Old Standard TT", Georgia, serif; letter-spacing: 0.06em; margin: 2.5rem 0 0.75rem; }
h3 { font: 700 1.15rem/1.3 "Old Standard TT", Georgia, serif; letter-spacing: 0.04em; margin: 1.75rem 0 0.5rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

.lede { font-size: 1.3rem; }
.label { color: var(--accent); margin: 0 0 0.25rem; }

/* index-card, no shadows, square corners */
.card { background: var(--card); border-top: 2px solid var(--rule); padding: 1.1rem 1.25rem; margin: 1rem 0; }
.card h3 { margin-top: 0.25rem; }
.card p:last-child { margin-bottom: 0; }

nav.foot { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
nav.foot a { margin-right: 1.25rem; }
.small { font-size: 0.95rem; opacity: 0.85; }
