@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(fonts/fraunces-600-normal.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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fraunces-600-normal.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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibmplexmono-400-normal.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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibmplexmono-500-normal.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;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/newsreader-400-italic.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;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/newsreader-400-normal.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;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/newsreader-400-normal.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;
}
:root {
  --paper: #f6f2e8; --ink: #21242b; --faint: #6b6f66; --sea: #0b5563;
  --rust: #b0521d; --rule: #cfc8b6; --card: #fbf8f1;
  --grain-opacity: .5;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #171a1e; --ink: #e6e1d3; --faint: #969b8f; --sea: #6fb7bf;
          --rust: #d98a55; --rule: #33383d; --card: #1d2127;
          --grain-opacity: .25; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font: 18px/1.6 'Newsreader', Georgia, serif;
  padding: 2.6rem 1.25rem 3rem;
  display: flex; flex-direction: column; align-items: center;
  position: relative; min-height: 100vh;
}
body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
header, main, footer { width: 100%; max-width: 46rem; }

/* masthead */
.folio {
  font: 400 11px/1.4 'IBM Plex Mono', monospace; letter-spacing: .22em;
  text-transform: uppercase; color: var(--faint); text-align: center;
}
.masthead {
  text-align: center; font: 700 clamp(2.1rem, 7vw, 3.4rem)/1.1 'Fraunces', Georgia, serif;
  letter-spacing: .045em; text-transform: uppercase;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: .55rem 0 .5rem; margin: .55rem 0 0;
  box-shadow: 0 3px 0 -1px var(--paper), 0 4px 0 -1px var(--ink),
              0 -3px 0 -1px var(--paper), 0 -4px 0 -1px var(--ink);
}
.masthead a { color: inherit; text-decoration: none; }
.pier { display: block; width: min(24rem, 80%); margin: 1.15rem auto .4rem;
        color: var(--faint); }
nav { text-align: center; margin: .4rem 0 2.4rem; }
nav a {
  font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  margin: 0 .9rem;
}
nav a.here, nav a:hover { color: var(--sea); }
nav a.here { border-bottom: 2px solid var(--sea); padding-bottom: 2px; }

/* type */
h2 {
  font: 600 1.05rem 'Fraunces', Georgia, serif; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sea);
  margin: 2.6rem 0 .9rem; display: flex; align-items: center; gap: .8rem;
}
h2::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
h3 { font: 600 1.15rem 'Newsreader', serif; margin: 1.4rem 0 .3rem; }
p { margin-bottom: 1rem; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2.5px; }
.lede {
  font: 400 clamp(1.25rem, 3.4vw, 1.55rem)/1.5 'Newsreader', serif;
  font-style: italic; text-align: center; text-wrap: balance;
  margin: 0 auto 1.2rem; max-width: 40rem;
}
.lede strong { font-style: normal; font-weight: 600; }
.meta {
  font: 400 12px/1.7 'IBM Plex Mono', monospace; color: var(--faint);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.meta a { color: var(--faint); }

/* stocktake */
.stocktake {
  display: flex; justify-content: center; gap: 2.6rem; flex-wrap: wrap;
  border: 1px solid var(--rule); background: var(--card);
  padding: 1.15rem 1.6rem .95rem; margin: 1.8rem 0;
}
.stocktake div { text-align: center; }
.stocktake .n {
  font: 600 2rem/1 'Fraunces', serif; color: var(--ink);
  font-variant-numeric: tabular-nums; display: block;
}
.stocktake .l {
  font: 400 10.5px 'IBM Plex Mono', monospace; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint);
}

/* record cards */
.card {
  border: 1px solid var(--rule); border-left: 3px solid var(--sea);
  background: var(--card); padding: .85rem 1.1rem .7rem; margin-bottom: .85rem;
}
.card.future { border-left-color: var(--rust); }
.card h3, .card h4 { font: 600 1.05rem/1.35 'Newsreader', serif; margin: 0 0 .15rem; }
.card .docs { margin: .35rem 0 .2rem; padding-left: 0; list-style: none; }
.card .docs li {
  font-size: .95rem; line-height: 1.5; padding-left: 1rem;
  text-indent: -1rem; margin-bottom: .12rem;
}
.card .docs li::before { content: "· "; color: var(--sea); }

/* stamps */
.stamp {
  display: inline-block; font: 500 10.5px 'IBM Plex Mono', monospace;
  letter-spacing: .22em; text-transform: uppercase;
  border: 1.5px solid currentColor; border-radius: 2px;
  padding: .1rem .5rem; transform: rotate(-3deg);
  margin-left: .5rem; vertical-align: middle;
}
.stamp.open { color: var(--sea); }
.stamp.closed { color: var(--rust); }

/* faces */
.faces { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
         gap: 1rem; margin: 1.2rem 0; }
.face { border-top: 3px double var(--ink); padding-top: .6rem; }
.face h3 { margin: 0 0 .3rem; font: 600 1.05rem 'Fraunces', serif; }
.face p { font-size: .95rem; margin: 0; }
.face .meta { display: block; margin-top: .45rem; }

/* principles */
.principles { border: 1px solid var(--rule); padding: 1rem 1.3rem;
              background: var(--card); }
.principles li {
  list-style: none; padding-left: 1.2rem; text-indent: -1.2rem;
  margin-bottom: .5rem; font-size: .98rem;
}
.principles li::before { content: "§ "; color: var(--rust); font-weight: 600; }

footer {
  margin-top: 3.4rem; border-top: 3px double var(--ink); padding-top: 1.1rem;
  font-size: .9rem; color: var(--faint);
}
footer .folio { text-align: left; margin-top: .6rem; }
footer a { color: var(--faint); }

@media print { body::before { display: none; } nav, footer { display: none; } }
