/* pennanotes.com. Colors and type follow the Penna brand board. */
/* Fonts are served from this site (SIL Open Font License, see fonts/). */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 400; font-display: swap; src: url("/fonts/newsreader-italic-latin.woff2") format("woff2"); }
:root {
  --paper: #F6F4EE;
  --surface: #FFFFFF;
  --ink: #1C1F24;
  --graphite: #6B7079;
  --brand: #2B4A6F;
  --mist: #E4E8EE;
  --rule: #DCDDD6;
  --font-ui: "Figtree", system-ui, -apple-system, "Segoe UI Variable", sans-serif;
  --font-head: "Newsreader", "Iowan Old Style", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14171C; --surface: #1B1F26; --ink: #E9E6DD; --graphite: #9AA0AA;
    --brand: #9DB8DA; --mist: #252C37; --rule: #2C323C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14171C; --surface: #1B1F26; --ink: #E9E6DD; --graphite: #9AA0AA;
  --brand: #9DB8DA; --mist: #252C37; --rule: #2C323C;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--font-ui);
}
a { color: var(--brand); text-underline-offset: 3px; }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header and footer */
.site-head { padding: 28px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; }
.mark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.mark svg { width: 42px; height: 42px; color: var(--brand); --bg: var(--paper); }
.mark span { font: italic 300 30px/1 var(--font-head); letter-spacing: -.01em; }
.site-foot { margin-top: auto; padding: 40px 0 32px; font-size: 14px; color: var(--graphite); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-foot .wrap::before { content: ""; flex: 1 0 100%; border-top: 1px solid var(--rule); margin-bottom: 12px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--graphite); }

/* Home */
.hero { padding: 7vh 0 40px; }
.hero h1 {
  font: 400 clamp(40px, 8vw, 68px)/1.05 var(--font-head);
  letter-spacing: -.015em; margin: 0 0 20px; text-wrap: balance;
}
.hero h1 em { color: var(--brand); }
.lede { font-size: 19px; color: var(--graphite); max-width: 34em; margin: 0 0 32px; }
.page-sheet {
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: 14px;
  padding: 28px; display: grid; gap: 12px;
}
.page-sheet label { font-weight: 600; font-size: 15px; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 220px; min-width: 0; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px;
}
.signup input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.signup button {
  font: 600 16px var(--font-ui); color: var(--paper); background: var(--brand);
  border: 0; border-radius: 10px; padding: 12px 20px; cursor: pointer;
}
.signup button:disabled { opacity: .6; cursor: default; }
.note { margin: 0; font-size: 14px; color: var(--graphite); min-height: 1.6em; }
.note.ok { color: var(--brand); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.points { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.points h2 { font: 400 22px/1.2 var(--font-head); margin: 0 0 6px; }
.points p { margin: 0; color: var(--graphite); font-size: 16px; }

/* Text pages */
.doc { padding: 4vh 0 24px; }
.doc h1 { font: 400 clamp(34px, 6vw, 48px)/1.1 var(--font-head); margin: 0 0 8px; }
.doc .updated { color: var(--graphite); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font: 400 25px/1.25 var(--font-head); margin: 40px 0 10px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { max-width: 40em; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc dt { font-weight: 600; margin-top: 18px; }
.doc dd { margin: 4px 0 0; color: var(--graphite); }
