/* ============================================================
   Ogham base theme. Read after quare.css, ogham.css, fonts.css.
   Matches the Home, Post and Ring boards. No inline styles
   anywhere in the markup, so a strict CSP works.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.2px);
  background-size: 7px 7px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--ink); }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--accent); border: var(--bd); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.spacer { flex: 1; }
.icon { flex: 0 0 auto; }

/* ---------- header ---------- */
.site-head { border-bottom: 2px solid var(--ink); background: var(--paper); }
.site-head__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 18px; padding-bottom: 18px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink); text-decoration: none; }
.wordmark__name {
  display: inline-block; font-family: var(--font-display); font-size: 38px; line-height: 1;
  letter-spacing: .04em; text-transform: uppercase; color: var(--sec-tx);
  background: var(--sec-bg); border: var(--sec-bd); box-shadow: var(--sh);
  padding: 4px 14px 2px; transform: skewX(var(--sec-skew));
}
.wordmark__name > span { display: inline-block; transform: skewX(var(--sec-inner)); }
.wordmark__host { font: 700 13px var(--font-mono); margin-left: 6px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border-radius: 999px; color: var(--ink); font: 600 14px var(--font-ui); text-decoration: none;
}
.site-nav a:hover { background: var(--row-hover); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.search-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 14px;
  border: var(--bd-soft); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: 700 14px var(--font-ui); text-decoration: none; cursor: pointer;
}
.search-toggle[aria-expanded="true"] { background: var(--accent); color: #14110b; }
.search-toggle kbd { padding: 0 6px; border: 1.5px solid var(--hairline); border-radius: 5px; font: 400 12px var(--font-mono); }
.search-panel { border-top: 1.5px solid var(--hairline); background: var(--paper); }
.search-panel[hidden] { display: none; }
.search-panel__inner { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; padding-bottom: 20px; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 14px; }
.search-field input {
  width: 100%; min-height: 52px; padding: 0 14px 0 44px; border: var(--bd); border-radius: 13px;
  background: var(--paper); box-shadow: var(--sh-sm); color: var(--ink); font: 600 17px var(--font-ui);
}
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.search-results li { border-bottom: 1px solid var(--hairline); }
.search-results a { display: flex; flex-direction: column; gap: 3px; padding: 10px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search-results a:hover { background: var(--row-hover); }
.search-results__title { font: 800 16px var(--font-title); }
.search-results__snip { font: 400 14px/1.5 var(--font-read); color: var(--muted-tx); }
.search-results mark, .hit { background: var(--accent); color: #14110b; padding: 0 2px; }
.search-note { font: 500 12.5px var(--font-ui); color: var(--muted-tx); }

/* ---------- main ---------- */
.site-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 48px 24px 64px; display: flex; flex-direction: column; gap: 44px; }
.site-main--narrow { align-items: center; gap: 48px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.intro h1 { margin: 0; font: 900 52px/1.04 var(--font-title); letter-spacing: -.02em; text-wrap: balance; }
.intro p { margin: 0; font: 400 19px/1.55 var(--font-read); color: var(--muted-tx); }
.intro p a { color: var(--ink); font-weight: 600; }

/* Pills: tags and counts, always ink text on a pigment */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border: 1.5px solid var(--ink);
  border-radius: 999px; color: #14110b; font: 700 12px var(--font-ui); text-decoration: none;
}
a.pill:hover { color: #14110b; filter: brightness(1.06); }
.pill--sm { padding: 1px 8px; font-size: 11.5px; }
.pill--btn { min-height: 36px; padding: 0 11px; font-size: 12.5px; }
.pill__n { font: 400 11px var(--font-mono); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pig-mint { background: var(--q-mint); }
.pig-coral { background: var(--q-coral); }
.pig-sky { background: var(--q-sky); }
.pig-lilac { background: var(--q-lilac); }
.pig-clay { background: var(--q-clay); }
.pig-yellow { background: var(--q-yellow); }
.pig-gray { background: var(--q-gray); }
[data-theme="square"] .pig-mint { background: var(--q-m-mint); }
[data-theme="square"] .pig-coral { background: var(--q-m-coral); }
[data-theme="square"] .pig-sky { background: var(--q-m-sky); }
[data-theme="square"] .pig-lilac { background: var(--q-m-lilac); }
[data-theme="square"] .pig-clay { background: var(--q-m-clay); }
[data-theme="square"] .pig-yellow { background: var(--q-m-yellow); }
[data-theme="square"] .pig-gray { background: var(--q-m-gray); }

.eyebrow { font: 700 11px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 600 13px var(--font-ui); color: var(--muted-tx); }
.meta a { color: var(--muted-tx); }

/* Skewed Anton section chip */
.sec { margin: 0; font-weight: 400; }
.sec__chip {
  display: inline-block; font-family: var(--font-display); font-size: 24px; line-height: 1.05;
  letter-spacing: .05em; text-transform: uppercase; color: var(--sec-tx); background: var(--sec-bg);
  border: var(--sec-bd); box-shadow: var(--sec-sh); padding: 2px 12px; transform: skewX(var(--sec-skew));
}
.sec__chip > span { display: inline-block; transform: skewX(var(--sec-inner)); }
.sec--lg .sec__chip { font-size: 26px; }

/* Placeholder art when a post has no image: a pigment with ink stripes */
.stripes { background-image: repeating-linear-gradient(135deg, rgba(20, 17, 11, .12) 0 2px, transparent 2px 14px); }

/* Cards */
.card-lift { transition: transform 140ms cubic-bezier(.2, 0, 0, 1), box-shadow 140ms cubic-bezier(.2, 0, 0, 1); }
.card-lift:hover { transform: translate(-1px, -2px) rotate(0deg); box-shadow: 4px 6px 0 var(--ink); }
.tilt-1 { transform: rotate(calc(-.4deg * var(--tilt, 1))); }
.tilt-2 { transform: rotate(calc(.5deg * var(--tilt, 1))); }
.tilt-3 { transform: rotate(calc(-.6deg * var(--tilt, 1))); }
.tilt-4 { transform: rotate(calc(.3deg * var(--tilt, 1))); }
.tilt-5 { transform: rotate(calc(-.3deg * var(--tilt, 1))); }
.tilt-6 { transform: rotate(calc(.6deg * var(--tilt, 1))); }

.feature {
  display: flex; flex-wrap: wrap; background: var(--paper); border: var(--bd); border-radius: calc(var(--radius-card, 14px) + 4px);
  box-shadow: var(--sh); overflow: hidden;
}
.feature__art { flex: 1 1 380px; min-height: 300px; border-right: 2px solid var(--ink); display: block; overflow: hidden; }
.feature__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature__body { flex: 1 1 380px; padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 14px; }
.feature__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feature h2 { margin: 0; font: 900 34px/1.1 var(--font-title); letter-spacing: -.015em; text-wrap: balance; }
.feature h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.feature h2 a:hover, .post-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.feature p { margin: 0; font: 400 17.5px/1.6 var(--font-read); text-wrap: pretty; }
.feature .meta { margin-top: auto; padding-top: 6px; }

.section { display: flex; flex-direction: column; gap: 20px; }
.section__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 18px; background: var(--paper);
  border: var(--bd); border-radius: var(--radius-card, 14px); box-shadow: var(--sh);
}
.post-card h3 { margin: 0; font: 800 21px/1.2 var(--font-title); letter-spacing: -.01em; text-wrap: balance; }
.post-card p { margin: 0; font: 400 15.5px/1.55 var(--font-read); color: var(--muted-tx); text-wrap: pretty; }
.post-card .meta { margin-top: auto; padding-top: 8px; font-size: 12.5px; gap: 4px 14px; }
.center { display: flex; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: var(--bd-soft); border-radius: 999px; background: var(--paper); box-shadow: var(--sh-sm);
  color: var(--ink); font: 700 14px var(--font-ui); text-decoration: none; cursor: pointer;
  transition: transform 120ms cubic-bezier(.2, 0, 0, 1), filter 120ms cubic-bezier(.2, 0, 0, 1);
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translate(1px, 1px); }
.btn--accent { border: 2px solid var(--ink); border-radius: 12px; background: var(--accent); color: #14110b; font-weight: 800; font-size: 15px; }

/* Subscribe band (home) */
.band {
  display: flex; flex-wrap: wrap; gap: 24px 40px; padding: 30px 32px; background: var(--ink); color: var(--canvas);
  border-radius: calc(var(--radius-card, 14px) + 4px); box-shadow: 3px 4px 0 var(--accent);
}
.band__text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; }
.band h2 { margin: 0; font: 900 28px/1.15 var(--font-title); letter-spacing: -.01em; color: var(--canvas); }
.band p { margin: 0; font: 400 16px/1.55 var(--font-read); color: #cfc7b3; }
.band form { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.band label { font: 700 13px var(--font-ui); color: var(--canvas); }
.band__row { display: flex; flex-wrap: wrap; gap: 10px; }
.band input[type="email"] {
  flex: 1 1 220px; min-height: 50px; padding: 0 14px; border: 2px solid var(--canvas); border-radius: 12px;
  background: var(--paper); color: #14110b; font: 500 15px var(--font-ui);
}
.band button {
  min-height: 50px; padding: 0 20px; border: 2px solid var(--canvas); border-radius: 12px; background: var(--accent);
  color: #14110b; font: 800 15px var(--font-ui); cursor: pointer;
}
.band__small { font: 500 13px/1.5 var(--font-ui); color: #cfc7b3; }
.band__small a { color: var(--canvas); font-weight: 700; }
[data-theme="square"] .band { color: var(--paper); }
[data-theme="square"] .band h2, [data-theme="square"] .band label { color: var(--paper); }

/* Sent notices, shown by :target after the relay sends the reader back */
.sent { display: none; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 12px; background: rgba(99, 207, 134, .3); font: 600 14px/1.5 var(--font-ui); color: var(--ink); }
.sent:target { display: flex; }
.band .sent { color: var(--canvas); border-color: var(--canvas); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- post ---------- */
.article { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 22px; }
.article h1 { margin: 0; font: 900 50px/1.05 var(--font-title); letter-spacing: -.02em; text-wrap: balance; }
.article .dek { margin: 0; font: 400 21px/1.5 var(--font-read); color: var(--muted-tx); text-wrap: pretty; }
.article .meta { font-size: 13.5px; gap: 6px 18px; }
.hero { margin: 0; border: var(--bd); border-radius: 16px; box-shadow: var(--sh); overflow: hidden; }
.hero img { display: block; width: 100%; height: auto; }

.prose { display: flex; flex-direction: column; gap: 20px; font: 400 19px/1.7 var(--font-read); text-wrap: pretty; }
.prose > * { margin: 0; }
.prose h2 { margin: 14px 0 0; font: 800 28px/1.2 var(--font-title); letter-spacing: -.01em; }
.prose h3 { margin: 10px 0 0; font: 800 22px/1.25 var(--font-title); }
.prose h4, .prose h5, .prose h6 { margin: 8px 0 0; font: 800 18px/1.3 var(--font-title); }
.prose ol, .prose ul { padding-left: 26px; display: flex; flex-direction: column; gap: 8px; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--row-sel); }
.prose code { padding: 1px 5px; border: 1.5px solid var(--hairline); border-radius: 5px; background: var(--well); font: 400 .82em var(--font-mono); }
.prose pre {
  margin: 4px 0; padding: 16px 18px; border: var(--bd-soft); border-radius: 12px; background: var(--code-bg);
  color: var(--code-tx); font: 400 14.5px/1.65 var(--font-mono); overflow-x: auto;
}
.prose pre code { padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 4px solid var(--ink); font-style: italic; }
.prose blockquote p { margin: 0; }
.prose hr { width: 100%; height: 0; border: 0; border-top: 2px dashed var(--hairline); }
.prose img { display: block; border: var(--bd); border-radius: 14px; }
.prose img[src$=".gif"] { border-radius: 4px; image-rendering: pixelated; }
.prose figure { margin: 4px 0; display: flex; flex-direction: column; gap: 10px; }
.prose figcaption { font: 500 14px var(--font-ui); color: var(--muted-tx); }

/* How an image sits, set in the editor (og/imgfit.py): a size, a crop to a
   shape, and the part that stays in view. "wide" reaches past the text to the
   page's width, "full" to the window's edges. */
.prose img.img-small { width: max(min(100%, 220px), 50%); margin-inline: auto; }
.prose img.img-wide, .hero.img-wide {
  width: max(100%, min(1072px, 100vw - 48px)); max-width: none;
  margin-left: calc((100% - max(100%, min(1072px, 100vw - 48px))) / 2);
}
.prose img.img-full, .hero.img-full {
  width: 100vw; max-width: none; margin-left: calc(50% - 50vw); border-radius: 0; border-left: 0; border-right: 0;
}
.hero.img-full { box-shadow: none; }
img.img-21x9 { aspect-ratio: 21 / 9; }
img.img-16x9 { aspect-ratio: 16 / 9; }
img.img-3x2 { aspect-ratio: 3 / 2; }
img.img-4x3 { aspect-ratio: 4 / 3; }
img.img-1x1, img.img-circle { aspect-ratio: 1; }
img.img-4x5 { aspect-ratio: 4 / 5; }
img.img-21x9, img.img-16x9, img.img-3x2, img.img-4x3, img.img-1x1, img.img-4x5, img.img-circle { object-fit: cover; }
.prose img.img-circle { border-radius: 50%; }
.prose img.img-circle:not(.img-small):not(.img-wide):not(.img-full) { width: min(100%, 440px); }
img.img-focus-top-left { object-position: 0 0; }
img.img-focus-top { object-position: 50% 0; }
img.img-focus-top-right { object-position: 100% 0; }
img.img-focus-left { object-position: 0 50%; }
img.img-focus-right { object-position: 100% 50%; }
img.img-focus-bottom-left { object-position: 0 100%; }
img.img-focus-bottom { object-position: 50% 100%; }
img.img-focus-bottom-right { object-position: 100% 100%; }
.prose table { width: 100%; border-collapse: collapse; font: 500 15.5px/1.45 var(--font-ui); display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1.5px solid var(--hairline); text-align: left; }
.prose th { font: 700 11px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.prose .align-right { text-align: right; }
.prose .align-center { text-align: center; }
.prose aside, .prose .note {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: var(--bd); border-radius: 14px;
  background: var(--q-yellow); color: #14110b; box-shadow: var(--sh-sm); font: 500 17px/1.6 var(--font-read);
}
.prose aside p, .prose .note p { margin: 0; }
.prose .footnotes { font-size: 15px; border-top: 2px dashed var(--hairline); padding-top: 14px; }
.prose .footnotes ol { gap: 6px; }
.prose sup { line-height: 0; }
.prose input[type="checkbox"] { margin-right: 6px; }

.pager { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.pager a {
  flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--paper);
  border: var(--bd-soft); border-radius: 12px; box-shadow: var(--sh-sm); color: var(--ink); text-decoration: none;
}
.pager a.pager--newer { align-items: flex-end; text-align: right; }
.pager__label { font: 700 11px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-tx); }
.pager__title { font: 800 16px/1.3 var(--font-title); }

.box {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 18px 20px; border: var(--bd);
  border-radius: var(--radius-card, 14px); background: var(--paper); box-shadow: var(--sh);
}
.box__head { flex: 1 1 100%; display: flex; flex-direction: column; gap: 2px; }
.box__title { font: 800 17px var(--font-title); }
.box__sub { font: 500 13.5px var(--font-ui); color: var(--muted-tx); }
.box__sub a { font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field--grow { flex: 1 1 240px; }
.field label { font: 700 13px var(--font-ui); }
.field label .opt { font-weight: 500; color: var(--muted-tx); }
.input {
  min-height: 46px; padding: 0 13px; border: var(--bd-soft); border-radius: 11px; background: var(--paper);
  color: var(--ink); font: 500 15px var(--font-ui);
}
.input--mono { font: 400 14px var(--font-mono); }
textarea.input { min-height: 0; padding: 12px 13px; font: 400 16px/1.55 var(--font-read); resize: vertical; }
.box .btn--accent { min-height: 46px; border-radius: 11px; font-size: 14.5px; }

/* Comments */
.comments { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.comment-list > li { display: flex; flex-direction: column; gap: 10px; }
.comment { display: flex; gap: 13px; padding: 16px 18px; background: var(--paper); border: var(--bd); border-radius: var(--radius-card, 14px); box-shadow: var(--sh); }
.comment--reply { margin-left: 44px; padding: 14px 16px; border: var(--bd-soft); box-shadow: var(--sh-sm); }
.avatar {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); color: #14110b;
  display: inline-flex; align-items: center; justify-content: center; font: 800 14px var(--font-ui);
}
.comment--reply .avatar { width: 32px; height: 32px; font-size: 13px; background: var(--accent); }
.comment__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.comment__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.comment__name { font: 800 15px var(--font-title); color: var(--ink); }
.comment__when { font: 500 12.5px var(--font-ui); color: var(--muted-tx); }
.comment__text { margin: 0; font: 400 16.5px/1.6 var(--font-read); text-wrap: pretty; overflow-wrap: anywhere; }
.badge-author { display: inline-flex; padding: 0 6px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--accent); color: #14110b; font: 700 11px var(--font-ui); }
.comment-form { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; background: var(--paper); border: var(--bd); border-radius: 16px; box-shadow: var(--sh); }
.comment-form h3 { margin: 0; font: 900 22px var(--font-title); }
.comment-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 14px; }
.comment-form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.comment-form__send .btn--accent { min-height: 48px; box-shadow: var(--sh-sm); }
.comment-form__send span { flex: 1 1 260px; font: 500 13px/1.5 var(--font-ui); color: var(--muted-tx); text-wrap: pretty; }
.closed { font: 500 14px var(--font-ui); color: var(--muted-tx); }

/* ---------- lists: tags, archive ---------- */
.list-card { background: var(--paper); border: var(--bd); border-radius: var(--radius-card, 14px); box-shadow: var(--sh); overflow: hidden; }
.list-card ol, .list-card ul { list-style: none; margin: 0; padding: 0; }
.list-card li { border-bottom: 1px solid var(--hairline); }
.list-card li:last-child { border-bottom: 0; }
.list-card a.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-height: 56px; padding: 12px 18px; color: var(--ink); text-decoration: none; }
.list-card a.row:hover { background: var(--row-hover); }
.row__title { flex: 1 1 280px; font: 800 17px/1.3 var(--font-title); }
.row__meta { font: 600 12.5px var(--font-ui); color: var(--muted-tx); }
.year { display: flex; flex-direction: column; gap: 12px; }
.year h2 { margin: 0; font: 900 28px var(--font-title); }

/* ---------- footer: the ring bar ---------- */
.site-foot { border-top: 2px solid var(--ink); background: var(--bar); color: var(--bar-tx); }
.site-foot__inner { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; padding-bottom: 26px; }
.ringbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.ringbar__step {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid currentColor;
  border-radius: 999px; color: var(--bar-tx); font: 600 13.5px var(--font-ui); text-decoration: none;
}
.ringbar__step:hover { color: var(--bar-tx); background: rgba(255, 255, 255, .06); }
.ringbar__mid { display: inline-flex; flex-direction: column; align-items: center; min-width: 140px; }
.ringbar__name { font-family: var(--font-display); font-size: 20px; line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.ringbar__name:hover { color: var(--accent); }
.ringbar__random { font: 600 12px var(--font-ui); color: var(--bar-tx); }
.site-foot a { color: var(--bar-tx); }
.credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding-top: 14px; border-top: 1px solid var(--nav-div); font: 500 12.5px var(--font-ui); opacity: .85; }
.site-foot__inner > .credits:first-child { border-top: 0; padding-top: 0; }
[data-theme="square"] .ringbar__name { color: var(--ink); }

/* ---------- a ring's public page (the RingPublic board) ---------- */
.ring-intro { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.ring-name { margin: 0; }
.ring-name > span {
  display: inline-block; font-family: var(--font-display); font-weight: 400; font-size: 72px; line-height: 1;
  letter-spacing: .03em; text-transform: uppercase; background: var(--accent); color: #14110b; border: 2px solid var(--ink);
  box-shadow: var(--sh); padding: 8px 18px 4px; transform: skewX(-8deg);
}
.ring-name > span > span { display: inline-block; transform: skewX(8deg); }
.ring-line { margin: 6px 0 0; font: 400 20px/1.55 var(--font-read); text-wrap: pretty; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn--ink { min-height: 50px; border: 2px solid var(--ink); border-radius: 13px; background: var(--ink); color: var(--paper); font: 800 15px var(--font-ui); box-shadow: none; }
.btn--ink:hover { color: var(--paper); }
.ring-intro .btn:not(.btn--ink) { min-height: 50px; border-radius: 13px; font-size: 15px; box-shadow: none; }
.ring-members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.ring-member { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; background: var(--paper); border: var(--bd); border-radius: 14px; box-shadow: var(--sh); }
.ring-member__top { display: flex; align-items: center; gap: 10px; }
.ring-member__n { flex: 0 0 auto; width: 34px; height: 34px; border: 2px solid #14110b; border-radius: 50%; color: #14110b; display: inline-flex; align-items: center; justify-content: center; font: 800 14px var(--font-mono); }
.ring-member__site { font: 800 16px var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.ring-member p { margin: 0; font: 400 15.5px/1.5 var(--font-read); color: var(--muted-tx); text-wrap: pretty; }
.ring-member__next { margin-top: auto; display: flex; align-items: center; gap: 6px; font: 600 12.5px var(--font-ui); }
.ring-note { margin: 0; font: 500 13.5px var(--font-ui); color: var(--muted-tx); }
.join { display: flex; flex-wrap: wrap; gap: 24px 40px; padding: 28px 30px; background: var(--paper); border: var(--bd); border-radius: 18px; box-shadow: var(--sh); }
.join__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.join__text h2 { margin: 0; font: 900 28px/1.15 var(--font-title); }
.join__text p { margin: 0; font: 400 16px/1.6 var(--font-read); text-wrap: pretty; }
.join__text .join__small { font: 500 13.5px/1.55 var(--font-ui); color: var(--muted-tx); }
.join__form { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.join__send { align-self: flex-start; min-height: 48px; box-shadow: var(--sh-sm); }
@media (max-width: 640px) { .ring-name > span { font-size: 48px; } .join { padding: 22px 18px; } }

/* ---------- feed.xml in a browser (feed.xsl) and the hub's dark header ---------- */
.site-head--dark { background: var(--bar); color: var(--bar-tx); }
.wordmark--dark { color: var(--bar-tx); }
.wordmark--dark .wordmark__name { color: #14110b; background: var(--accent); border: 2px solid #14110b; box-shadow: 3px 4px 0 #000; font-size: 40px; }
.site-nav--dark a { color: var(--bar-tx); }
.site-nav--dark a:hover { background: rgba(255, 255, 255, .06); }
.site-nav--dark a[aria-current="page"] { background: var(--nav-act-bg); color: var(--nav-act-tx); }
.feed-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px 28px; padding: 26px 28px; background: var(--paper); border: var(--bd); border-radius: 18px; box-shadow: var(--sh); }
.feed-card__icon { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 18px; border: 2px solid #14110b; box-shadow: 3px 4px 0 #000; background: var(--accent); color: #14110b; display: inline-flex; align-items: center; justify-content: center; transform: rotate(-3deg); }
.feed-card__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.feed-card h1 { margin: 0; font: 900 48px/1.05 var(--font-title); letter-spacing: -.02em; }
.feed-card p { margin: 0; max-width: 680px; font: 400 18.5px/1.55 var(--font-read); color: var(--muted-tx); text-wrap: pretty; }
.feed-card__addr { min-height: 52px; display: flex; align-items: center; padding: 0 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--well); font: 700 16px var(--font-mono); overflow-wrap: anywhere; }
.feed-card__note { font: 500 13px/1.5 var(--font-ui); color: var(--muted-tx); }
.feed-items { list-style: none; margin: 0; padding: 0; background: var(--paper); border: var(--bd); border-radius: 16px; box-shadow: var(--sh); overflow: hidden; }
.feed-items li { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; border-bottom: 1px solid var(--hairline); }
.feed-items li:last-child { border-bottom: 0; }
.feed-items__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.feed-items h3 { margin: 0; font: 900 22px/1.2 var(--font-title); letter-spacing: -.01em; }
.feed-items h3 a { text-decoration: none; }
.feed-items p { margin: 0; font: 400 16px/1.55 var(--font-read); color: var(--muted-tx); }
.feed-items__more { align-self: flex-start; display: inline-flex; align-items: center; min-height: 36px; font: 700 13.5px var(--font-ui); }
.pill--mono { font: 400 12px var(--font-mono); }

/* ---------- a hub's front page and feed page (HubHome, HubFeed, PhoneHub) ---------- */
.hub-main { padding-top: 52px; gap: 52px; }
.hub-intro { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
.hub-intro h1 { margin: 0; font: 900 64px/1 var(--font-title); letter-spacing: -.025em; text-wrap: balance; }
.hub-intro p { margin: 0; font: 400 20px/1.55 var(--font-read); color: var(--muted-tx); text-wrap: pretty; }
.hub-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font: 600 14px var(--font-ui); }
.hub-note img { border: 1.5px solid #14110b; image-rendering: pixelated; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.hub-card { display: flex; flex-direction: column; background: var(--paper); border: var(--bd); border-radius: 16px; box-shadow: var(--sh); overflow: hidden; }
.hub-card__addr { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 2px solid #14110b; color: #14110b; font: 700 14px var(--font-mono); overflow-wrap: anywhere; }
.hub-card__body { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.hub-card h3 { margin: 0; font: 900 26px/1.1 var(--font-title); letter-spacing: -.01em; }
.hub-card h3 a { text-decoration: none; }
.hub-card p { margin: 0; font: 400 16px/1.55 var(--font-read); color: var(--muted-tx); text-wrap: pretty; }
.hub-card__latest { margin-top: auto; padding-top: 12px; border-top: 1.5px solid var(--hairline); display: flex; flex-direction: column; gap: 3px; }
.hub-card__eyebrow { font: 700 10px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-tx); }
.hub-card__post { font: 800 16px/1.3 var(--font-title); text-decoration: none; }
.hub-card__post:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hub-card__count { font: 500 12.5px var(--font-ui); color: var(--muted-tx); }
.hub-latest { list-style: none; margin: 0; padding: 0; background: var(--paper); border: var(--bd); border-radius: 16px; box-shadow: var(--sh); overflow: hidden; }
.hub-latest li { border-bottom: 1px solid var(--hairline); }
.hub-latest li:last-child { border-bottom: 0; }
.hub-latest a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 64px; padding: 10px 20px; color: var(--ink); text-decoration: none; }
.hub-latest a:hover { background: var(--row-hover); }
.hub-latest__title { flex: 1 1 300px; font: 800 17px/1.3 var(--font-title); }
.hub-latest__when { font: 600 13px var(--font-ui); color: var(--muted-tx); }
.hub-latest__empty { display: block; padding: 16px 20px; color: var(--muted-tx); }
.hub-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badge88 { width: 88px; height: 31px; border: 1.5px solid #14110b; color: #14110b; display: inline-flex; align-items: center; justify-content: center; text-align: center; font: 700 9px/1.05 var(--font-mono); letter-spacing: .02em; text-transform: uppercase; }
.badge88--ink { background: #14110b; color: #ffcf1a; }
.hub-badges__text { font: 500 13px var(--font-ui); color: var(--muted-tx); }
.hub-menu-btn { width: 44px; height: 44px; display: none; align-items: center; justify-content: center; border: 1.5px solid currentColor; border-radius: 12px; background: transparent; color: var(--bar-tx); cursor: pointer; }
.hub-menu-btn[aria-expanded="true"] { background: var(--accent); color: #14110b; }
.feed-card__copy { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.feed-card__copy .feed-card__addr { flex: 1 1 340px; }
.feed-card__copy .btn { min-height: 52px; min-width: 150px; border-radius: 12px; box-shadow: var(--sh-sm); }
.feed-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.feed-cols__main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feed-cols__side { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.feed-items__rest { font: 500 13.5px var(--font-ui); color: var(--muted-tx); }
.feed-one { background: var(--paper); border: var(--bd); border-radius: 16px; box-shadow: var(--sh); display: flex; flex-direction: column; overflow: hidden; }
.feed-one__head { padding: 16px 18px 12px; border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 4px; }
.feed-one__head h2, .feed-own h2 { margin: 0; font: 900 20px/1.2 var(--font-title); }
.feed-one__head span { font: 500 13px/1.5 var(--font-ui); color: var(--muted-tx); }
.feed-one ul { list-style: none; margin: 0; padding: 0; }
.feed-one li { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 12px 8px 18px; border-bottom: 1px solid var(--hairline); }
.feed-one li:last-child { border-bottom: 0; }
.feed-one__text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.feed-one__url { font: 400 12.5px var(--font-mono); overflow-wrap: anywhere; }
.feed-one__copy { flex: 0 0 auto; min-height: 42px; min-width: 76px; padding: 0 12px; box-shadow: none; font-size: 12.5px; }
.is-copied { background: var(--ok); }
.feed-own { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--well); border: 1.5px dashed var(--ink); border-radius: 16px; }
.feed-own h2 { font-size: 18px; }
.feed-own p { margin: 0; font: 400 15.5px/1.55 var(--font-read); text-wrap: pretty; }
.feed-about { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.feed-about h2 { margin: 0; font: 700 10px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-tx); }
.feed-about ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 4px; font: 500 13px/1.5 var(--font-ui); color: var(--muted-tx); }
.mono { font-family: var(--font-mono); }
@media (max-width: 640px) {
  .hub-intro h1 { font-size: 38px; line-height: 1.02; }
  .hub-intro p { font-size: 17px; }
  .wordmark--dark .wordmark__name { font-size: 26px; }
  .has-hub-menu .hub-menu-btn { display: inline-flex; }
  .has-hub-menu .hub-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border: var(--bd); border-radius: 14px; padding: 8px; }
  .has-hub-menu .hub-nav.is-open { display: flex; }
  .has-hub-menu .hub-nav a { color: var(--ink); min-height: 52px; font: 700 17px var(--font-ui); border-radius: 10px; }
  .hub-main { padding-top: 26px; gap: 28px; }
  .feed-card { padding: 20px 18px; }
  .feed-card h1 { font-size: 36px; }
}

/* Flex items that must be allowed to shrink below their content on a phone */
.band__text, .band form, .feature__art, .feature__body, .join__text, .join__form, .band input[type="email"] { min-width: 0; }
.wordmark { flex-wrap: wrap; max-width: 100%; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .site-head__bar { gap: 10px 14px; }
  .wordmark__name { font-size: 30px; }
  .site-nav a { padding: 0 9px; }
  .site-main { padding: 28px 16px 44px; gap: 32px; }
  .wrap { padding: 0 16px; }
  .intro h1 { font-size: 38px; }
  .article h1 { font-size: 36px; }
  .article .dek { font-size: 18px; }
  .prose { font-size: 17px; }
  .feature__art { border-right: 0; border-bottom: 2px solid var(--ink); min-height: 200px; }
  .feature__body { padding: 20px 18px 22px; }
  .feature h2 { font-size: 28px; }
  .comment--reply { margin-left: 22px; }
  .band { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:active, .card-lift, .card-lift:hover { transition: none; transform: none; }
}
