/* Avery Intelligence: shared paper, ink and type for every page */
:root {
  --paper: #EFE8DA;
  --sheet: #F8F4EA;
  --ink: #2A2219;
  --ink-mid: rgba(42, 34, 25, .70);
  --ink-soft: rgba(42, 34, 25, .34);
  --rule: rgba(42, 34, 25, .16);
  --accent: #8E4F24;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L13.4 10.6 L22 12 L13.4 13.4 L12 22 L10.6 13.4 L2 12 L10.6 10.6 Z' fill='%232A2219' stroke='%23EFE8DA' stroke-width='.8'/%3E%3C/svg%3E") 12 12, auto;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.55; -webkit-font-smoothing: antialiased; cursor: var(--star); }
a, button { cursor: var(--star); }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
:focus-visible { outline: 1px solid var(--ink-mid); outline-offset: 4px; border-radius: 2px; }
.caps { font-variant-caps: all-small-caps; letter-spacing: .14em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
em, .g { font-style: italic; color: var(--accent); }

/* header */
#top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; background: rgba(239, 232, 218, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid transparent; transition: border-color .4s; }
#top.scrolled { border-bottom-color: var(--rule); }
#top .brand { font-size: 18px; text-decoration: none; }
#top nav { display: flex; gap: 22px; font-style: italic; font-size: 18px; }
#top nav a { text-decoration: none; color: var(--ink-mid); transition: color .3s; }
#top nav a:hover, #top nav a.here { color: var(--ink); }
#top nav a.here { text-decoration: underline; text-decoration-thickness: 1px; }

/* reveal */
.fx { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.fx.on { opacity: 1; transform: none; }

/* layout */
.wrap { width: min(100% - 32px, 760px); margin: 0 auto; }
.wide { width: min(100% - 32px, 1120px); margin: 0 auto; }
.kicker { color: var(--ink-mid); font-size: 19px; }

/* footer */
footer { text-align: center; padding: 40px 16px 120px; color: var(--ink-mid); font-size: 15px; line-height: 1.8; border-top: 1px solid var(--rule); }
footer a { text-decoration: none; border-bottom: 1px solid var(--rule); }
footer a:hover { border-color: var(--ink-soft); }
footer .links { margin-top: 10px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-style: italic; font-size: 16px; }
footer .ai { margin-top: 10px; font-style: italic; font-size: 14px; color: var(--ink-mid); max-width: 620px; margin-left: auto; margin-right: auto; }

@media (max-width: 820px) {
  body { font-size: 18px; }
  #top { padding: 12px 16px; }
  #top nav { gap: 14px; font-size: 16px; white-space: nowrap; }
  #top nav .opt { display: none; }
}
@media (max-width: 480px) { #top .brand { font-size: 16px; } #top .brand .full { display: none; } #top nav { gap: 12px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
