@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

:root {
  --paper: #f3eee4;
  --ink: #1b1612;
  --muted: #5e5348;
  --line: #d5c8b4;
  --accent: #8d382c;
  --serif: Fraunces, "Iowan Old Style", Palatino, "Palatino Linotype", "Liberation Serif", serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", "Liberation Sans", sans-serif;
  --content: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.5;
}

::selection {
  background: #e8cbbd;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 0 var(--paper), 0 6px 0 var(--line);
}

.site-header-inner,
.site-footer-inner,
.page {
  width: min(var(--content), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1rem 1.15rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(18.5rem, 72vw);
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-logo text {
  font-family: var(--serif);
  font-weight: 500;
}

.domain {
  display: block;
  margin-top: 0.35rem;
  margin-left: 25.6%;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.page {
  flex: 1;
  padding-block: clamp(2.75rem, 8vw, 5.5rem) 4.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(16rem, 0.88fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

h1 {
  margin: 0;
  max-width: 9em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.9rem, 6.4vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.status {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.tagline {
  margin: 0.85rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.lede {
  max-width: 36rem;
  margin: 0.7rem 0 0;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.circle {
  margin: 0;
}

.circle svg {
  display: block;
  width: 100%;
  height: auto;
}

.ring {
  stroke-width: 1.25;
}

.fifth {
  stroke: var(--accent);
  stroke-width: 2.75;
  stroke-linecap: round;
}

.notes {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
}

.tritone {
  font-size: 13px;
}

.circle figcaption {
  max-width: 28rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  text-wrap: pretty;
}

.showcase {
  margin-top: clamp(3.25rem, 8vw, 5.5rem);
  padding-top: clamp(2.25rem, 5vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.kicker {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.app-list a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.05rem 1.15rem 1.1rem;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.app-list a:hover,
.app-list a:focus-visible {
  border-color: var(--accent);
}

.app-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-list a:hover .app-name,
.app-list a:focus-visible .app-name {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.app-summary {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.4;
}

.premiere {
  width: 100%;
  max-width: 48rem;
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
  margin-inline: auto;
}

.premiere h2 {
  margin: 0;
  max-width: 16em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.subtitle {
  max-width: 36rem;
  margin: 0.75rem 0 0;
  font-size: 1.15rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.video {
  margin: 1.35rem 0 0;
}

.video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--ink);
}

.video-fallback {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
}

.video-fallback a {
  color: var(--muted);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.video-fallback a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  padding-block: 1.1rem 1.75rem;
}

/* Each footer piece is centered independently (Alan t6550u/t6551u, 2026-12-02).
   A single multi-line text block may still be left-aligned inside a centered
   container; the copyright line and the giving row are separate pieces. */
.site-footer-credit {
  text-align: center;
}

.site-footer-credit > p {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.site-footer p {
  margin-block: 0;
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.site-footer .footer-giving {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  font-size: 0.86rem;
}

.site-footer .footer-giving-mark {
  display: inline-flex;
  min-height: 48px;
  min-width: 48px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.site-footer .footer-giving-mark img {
  height: 32px;
  max-height: 32px;
  width: auto;
  object-fit: contain;
  border: 0;
}

.site-footer .footer-giving a {
  white-space: nowrap;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .circle {
    max-width: 28rem;
  }

  .app-list {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
   Additions for the Hugo build. Everything above this line is the live
   site's stylesheet unchanged.
   --------------------------------------------------------------------------- */

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  color: var(--paper);
}

main:focus {
  outline: none;
}

.site-nav a:hover {
  color: var(--accent);
}

/* Menu button: only shown on narrow screens when JavaScript is running. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -0.35rem;
}

.nav-toggle-bars::after {
  top: 0.35rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 640px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .js .site-nav li {
    border-bottom: 1px solid var(--line);
  }

  .js .site-nav a {
    display: block;
    padding: 0.7rem 0.1rem;
  }
}

/* Inner pages (single and section pages). */
.prose {
  max-width: 48rem;
  margin-inline: auto;
}

.prose-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.prose h1 {
  max-width: 14em;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1;
}

.prose-header .lede {
  margin-top: 1rem;
  color: var(--muted);
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
}

.prose p,
.prose ul,
.prose ol {
  max-width: 40rem;
  margin: 0 0 1.1rem;
  text-wrap: pretty;
}

.prose .app-list {
  max-width: none;
  margin-block: 0 1.5rem;
}

.prose .app-list a {
  color: inherit;
}

.prose code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.prose img {
  max-width: 100%;
  height: auto;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

@media (max-width: 800px) {
  .page-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* On phones the menu button sits beside the logo as an icon-only button. */
@media (max-width: 640px) {
  .js .site-header-inner {
    flex-wrap: wrap;
    column-gap: 0.75rem;
  }

  .js .nav-toggle {
    margin-left: auto;
  }
}

@media (max-width: 440px) {
  .nav-toggle {
    justify-content: center;
    min-width: 2.75rem;
    padding-inline: 0;
  }

  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.bot-mascot { margin: 1.5rem 0; }
.bot-mascot img { display: block; width: 100%; max-width: 632px; height: auto; border-radius: 12px; }

/* Portrait (2026-10-28): Alan's photo on /about/, floated right beside the opening paragraphs.
   Sits below the page header so the H1 underline stays full width. Rounded corners match .bot-mascot.
   On phones it stops floating and stacks, centered, above the text. */
.portrait { float: right; width: min(11rem, 32%); margin: 0.25rem 0 1rem 1.5rem; }
/* 2026-10-29: Alan asked for a smaller portrait, right-aligned (it was 18rem / 40%). Now 11rem / 32%, and it stays on the right on phones too. */
.portrait img { display: block; width: 100%; height: auto; border-radius: 12px; }
.portrait ~ h2 { clear: both; }
@media (max-width: 560px) {
  /* 2026-10-29: stays floated right on phones (was centered and stacked) at Alan's request; smaller so the text still wraps beside it. */
  .portrait { float: right; width: min(8.5rem, 36%); margin: 0.25rem 0 1rem 1rem; }
}

/* Feedback note (2026-10-28): closing paragraph on /about/, set off by a thin rule in the site's line color. */
.feedback { clear: both; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.feedback p { margin-bottom: 0; color: var(--muted); }

/* Contact form (2026-10-29): the feedback form block on /contact.html (layouts/_shortcodes/contact-form.html).
   Uses only the site's own colors and fonts; no inline styles, so the page works under a self-only CSP. */
.contact-form { clear: both; margin-top: 1.5rem; padding: 1.25rem 1.5rem 0.5rem; border: 1px solid var(--line); border-radius: 12px; background: #fbf8f2; }
.contact-form h3 { margin-top: 0; }
.contact-form-note { color: var(--muted); }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.contact-form input,
.contact-form textarea,
.contact-form button { font: inherit; font-size: 1rem; color: var(--ink); }
.contact-form input,
.contact-form textarea { display: block; width: 100%; padding: 0.6rem 0.7rem; background: #fff; border: 1px solid var(--muted); border-radius: 6px; }
.contact-form textarea { min-height: 10rem; resize: vertical; }
.contact-form button { min-height: 44px; padding: 0.6rem 1.25rem; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 6px; cursor: pointer; }
.contact-form button:hover { background: #73291f; }
/* Off-screen honeypot, same technique as the feedback form's own style.css: out of sight and out of the tab order. */
.contact-form .hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
