
/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */

/*
Document
========
*/

/**
Use a better box model (opinionated).
*/

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

/**
Use a more readable tab size (opinionated).
*/

:root {
  -moz-tab-size: 4;
  tab-size: 4;
}

/**
1. Correct the line height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
*/

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/*
Sections
========
*/

/**
Remove the margin in all browsers.
*/

body {
  margin: 0;
}

/**
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
*/

body {
  font-family: system-ui, -apple-system,
    /* Firefox supports this but not yet `system-ui` */ "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/*
Grouping content
================
*/

/**
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
}

/*
Text-level semantics
====================
*/

/**
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr[title] {
  text-decoration: underline dotted;
}

/**
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
    monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
Tabular data
============
*/

/**
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
}

/*
Forms
=====
*/

/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
Remove the inheritance of text transform in Edge and Firefox.
1. Remove the inheritance of text transform in Firefox.
*/

button,
select {
  /* 1 */
  text-transform: none;
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
Remove the inner border and padding in Firefox.
*/

::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
Restore the focus styles unset by the previous rule.
*/

:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
Remove the additional ':invalid' styles in Firefox.
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/

legend {
  padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Interactive
===========
*/

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/* =============================================================================
   View transitions
   ========================================================================== */
@view-transition {
  navigation: auto;
}

/* =============================================================================
   Theme / appearance
   ========================================================================== */

:root,
:root[data-theme-appearance="light"] {
  color-scheme: light;

  /* Theme colors */
  --c-bg: hsl(var(--c-theme-h) var(--c-theme-s) 99%);
  --c-fg: hsl(var(--c-theme-h) calc(var(--c-theme-s) - 40%) 91%);
  --c-bg-opaque: hsl(
    var(--c-theme-h) calc(var(--c-theme-s) - 40%) var(--c-theme-l) / 0.05
  );
  --c-border: hsl(
    var(--c-theme-h) calc(var(--c-theme-s) - 10%) var(--c-theme-l) / 0.05
  );
  --c-text: hsl(var(--c-theme-h) var(--c-theme-s) 8%);
  --c-text-light: hsl(var(--c-theme-h) var(--c-theme-s) 8% / 50%);

  /* 
   * https://developer.apple.com/design/human-interface-guidelines/macos/visual-design/color/
   * accessible
   */
  --c-blue-h: 223;
  --c-blue-s: 100%;
  --c-blue-l: 43%;
  --c-red-h: 354;
  --c-red-s: 100%;
  --c-red-l: 42%;
  --c-green-h: 135;
  --c-green-s: 59%;
  --c-green-l: 34%;
  --c-yellow-h: 27;
  --c-yellow-s: 100%;
  --c-yellow-l: 35%;
  --c-purple-h: 280;
  --c-purple-s: 43%;
  --c-purple-l: 47%;
  --c-pink-h: 343;
  --c-pink-s: 87%;
  --c-pink-l: 44%;

  /* not supported yet */
  --c-orange-h: 16;
  --c-orange-s: 100%;
  --c-orange-l: 39%;
  --c-theme-mint: 177 83% 28%;
  --c-theme-teal: 189 100% 30%;
  --c-theme-cyan: 199 100% 32%;
  --c-theme-indigo: 241 52% 42%;
  --c-theme-brown: 33 30% 38%;
}
:root[data-theme-appearance="dark"] {
  color-scheme: dark;

  /* Theme colors */
  --c-bg: hsl(var(--c-theme-h) calc(var(--c-theme-s) - 80%) 2%);
  --c-fg: hsl(var(--c-theme-h) calc(var(--c-theme-s) - 80%) 17%);
  --c-bg-opaque: hsl(
    var(--c-theme-h) calc(var(--c-theme-s) - 10%) var(--c-theme-l) / 0.075
  );
  --c-border: hsl(
    var(--c-theme-h) calc(var(--c-theme-s) - 80%) var(--c-theme-l) / 0.075
  );
  --c-text: hsl(var(--c-theme-h) var(--c-theme-s) 98%);
  --c-text-light: hsl(var(--c-theme-h) var(--c-theme-s) 98% / 50%);

  --c-blue-h: 211;
  --c-blue-s: 100%;
  --c-blue-l: 63%;
  --c-red-h: 3;
  --c-red-s: 100%;
  --c-red-l: 69%;
  --c-green-h: 135;
  --c-green-s: 70%;
  --c-green-l: 52%;
  --c-yellow-h: 48;
  --c-yellow-s: 100%;
  --c-yellow-l: 57%;
  --c-purple-h: 280;
  --c-purple-s: 100%;
  --c-purple-l: 78%;
  --c-pink-h: 348;
  --c-pink-s: 100%;
  --c-pink-l: 70%;

  /* not supported yet */
  --c-orange-h: 36;
  --c-orange-s: 100%;
  --c-orange-l: 63%;
  --c-theme-mint: 177 56% 62%;
  --c-theme-teal: 189 100% 68%;
  --c-theme-cyan: 197 100% 72%;
  --c-theme-indigo: 241 100% 72%;
  --c-theme-brown: 34 34% 56%;
}

/* =============================================================================
   Appearance & theme variables
   ========================================================================== */

:root {
  /* Theme color that gets set by default but is configurable by the user */
  --c-theme-h: var(--c-red-h);
  --c-theme-s: var(--c-red-s);
  --c-theme-l: var(--c-red-l);
  --c-theme: hsl(var(--c-theme-h) var(--c-theme-s) var(--c-theme-l));
}

/* =============================================================================
   Other non-appearance variables
   ========================================================================== */

:root {
  --border-radius: 6px;
  --s-2: calc(2rem / 18);
  --s-4: calc(4rem / 18);
  --s-6: calc(6rem / 18);
  --s-8: calc(8rem / 18);
  --s-12: calc(12rem / 18);
  --s-16: calc(16rem / 18);
  --s-24: calc(24rem / 18);
  --s-32: calc(32rem / 18);
  --s-40: calc(40rem / 18);
  --s-48: calc(48rem / 18);
  --s-64: calc(64rem / 18);
  --s-80: calc(80rem / 18);
  --s-96: calc(96rem / 18);
  --max-width: 32rem;
  --max-width-padding: 6rem;
  --max-width-outer: calc(var(--max-width) + (var(--max-width-padding) * 2));
}

/* =============================================================================
   Base styles
   ========================================================================== */
*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
  font-size: 1.125rem;
  line-height: 1.5;
  background: var(--c-bg);
  color: var(--c-text);
  padding-bottom: 15vh;
}

:focus-visible {
  outline: 2px solid var(--c-theme);
  box-shadow: 0 0 0 4px hsl(var(--c-theme) / 0.15);
}

/* Links
   ========================================================================== */

a {
  text-decoration: none;
  color: var(--c-theme);
}

a:hover {
  text-decoration: underline;
  filter: brightness(115%) saturate(1.15);
}

a:has(img):hover {
  filter: none;
}

a:active {
  filter: brightness(50%);
}

a[href=""] {
  cursor: not-allowed;
}

/* Images & Video
   ========================================================================== */

img,
video {
  max-width: 100%;
  height: auto;
}

/* Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  position: relative;
  line-height: 1.2;

  /* Long headlines that are 1 word
     https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ */
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
}
h1:before,
h2:before,
h3:before,
h4:before {
  position: absolute;
  right: calc(100% + var(--s-8));
  opacity: 0.25;
  font-weight: 400;
  display: none;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
h1::before {
  content: "h1";
}

h2 {
  font-size: 1.333rem;
  font-weight: 700;
}
h2::before {
  content: "h2";
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
h3::before {
  content: "h3";
}

h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.01rem;
  font-weight: 500;
}
h4::before {
  content: "h4";
}

/* Misc. Elements
   ========================================================================== */

blockquote {
  padding-left: 1rem;
  margin-left: 0;
  font-style: italic;
  border-left: 2px solid var(--c-bg-opaque);
}

blockquote em,
blockquote code {
  font-style: normal;
}

pre {
  font-size: 0.88888rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--c-bg-opaque) !important;
  /* border: 2px solid var(--c-border); */
}

hr {
  border: 0;
  border-bottom: 1px solid;
  margin: var(--s-32) 0;
  opacity: 0.125;
}

/* Tables
   ========================================================================== */

table {
  max-width: none;
  display: block;
  overflow: auto;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.88888888em;
}

table th {
  text-align: left;
}

table thead {
  /* border-top: 1px solid; */
  /* border-bottom: 1px solid; */
}
table tbody {
  /* border-bottom: 1px solid; */
}

table tbody tr:nth-child(2n + 1) {
  background-color: var(--c-fg);
}

table th,
table td {
  padding: 0.325em 1em;
}

/* =============================================================================
   Layout
   ========================================================================== */

.copy > *:not(:is(.image-container, p:has(img))):not(pre),
.wrapper {
  max-width: var(--max-width);
  margin-left: var(--s-16);
  margin-right: var(--s-16);
}

@media screen and (min-width: 42rem) {
  .copy > *:not(:is(.image-container, p:has(img))):not(pre),
  .wrapper {
    margin-left: auto;
    margin-right: auto;
  }
}
.copy > * {
  margin-bottom: 1lh;
}

.wrapper-grid {
  margin-left: var(--s-16);
  margin-right: var(--s-16);
}

pre {
  /* 32rem + 1.5rem on either side = 38rem */
  max-width: calc(var(--max-width) + 3rem);
  margin-left: auto;
  margin-right: auto;
  padding: calc(1.618rem / 2);
  border-radius: 0px;
}

@media screen and (min-width: 42rem) {
  pre {
    padding: var(--s-24);
    border-radius: var(--border-radius);
  }
}

/* =============================================================================
   Copy
   ========================================================================== */

.copy > p code,
.copy > ul code {
  word-wrap: break-word;
  word-break: keep-all;
  background-color: var(--c-bg-opaque);
  padding: calc(1.618rem / 12) calc(1.618rem / 6);
  border-radius: 10px;
  font-size: 0.88888rem;
}

.copy .image-container,
.copy p:has(img) {
  max-width: 46rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.copy .image-container span,
.copy p:has(img) span {
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.5;
  max-width: var(--max-width);
  display: block;
}

.copy > h2 {
  margin-top: var(--s-48);
}

/* Article Header
   ========================================================================== */

article header {
  display: flex;
  flex-direction: column;
  margin: 0 0 var(--s-40) 0;
  gap: var(--s-4);
}

article header h1 {
  margin: 0;
  /* font-size: 1.111rem; */
}

article header a {
  color: inherit;
  text-decoration: none;
}
article header a:hover {
  color: var(--c-theme);
  text-decoration: underline;
}

article header ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--c-text-light);
  font-size: 0.8888rem; /* 16 */
  flex-wrap: wrap;
}

article header li:has(+ li):after {
  content: "·";
  margin-left: var(--s-8);
  margin-right: var(--s-8);
}

/* Links
   ========================================================================== */

footer ol a,
.copy a,
footer p a {
  text-decoration: underline;
}

.copy a[href^="#fn"] {
  text-decoration: none;
}
.copy a[href^="#fnref"] {
  font-family: sans-serif; /* keep the backlink from displaying as an emoji */
}
footer {
  padding: calc(var(--s-96)) 0 var(--s-24);
  color: var(--c-text-light);
}
footer a {
  color: inherit;
}
footer a:hover {
  color: var(--c-theme);
}
footer a[href^="#fn"] {
  text-decoration: none;
}
footer hr {
  display: none;
  /* margin-bottom: var(--s-48); */
}
footer p {
  margin: 0;
  font-size: 0.7777778rem;
}
footer ol {
  margin: 0;
  padding: 0;
  list-style-position: inside;
  margin-bottom: var(--s-96);
}
footer ol li {
  padding: var(--s-4) 0;
}

/* =============================================================================
   General
   ========================================================================== */

/**
 * Posts Lists - @TODO consider changing to something representing that it's 
 * a flat key/val list
 */
.posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.posts-list li a {
  display: flex;
  flex-direction: column;
  padding: var(--s-12) 0px;
  text-decoration: none;
}

.posts-list li a:hover span:first-child {
  text-decoration: underline;
}

.posts-list span:last-child {
  color: var(--c-text-light);
  font-size: 0.7rem;
  white-space: nowrap;
  text-decoration: none;
}

.leader-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leader-list > li:not([hidden]) {
  display: flex;
  align-items: baseline;
  gap: var(--s-8);
  padding: var(--s-6) 0;
  color: inherit;
}

.leader-list > li > a {
  display: flex;
  align-items: baseline;
  flex: 1;
  gap: inherit;
  min-width: 0;
  text-decoration: none;
}

.leader-list a:hover .leader-list__primary {
  text-decoration: underline;
}

.leader-list img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  align-self: center;
}

.leader-list__primary {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-list__leader {
  flex: 1 1 auto;
  min-width: var(--s-16);
  height: 0;
  border-bottom: 1px dotted var(--c-text-light);
  opacity: 0.5;
}

.leader-list__secondary {
  flex-shrink: 0;
  color: var(--c-text-light);
  font-variant-numeric: tabular-nums;
  /* font-size: 0.77777rem; */
}

/* For 2026-09-12 style
.posts-list time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
} */

@media screen and (min-width: 520px) {
  .posts-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: calc(1.618rem / 2);
    flex-direction: row;
  }
}

.posts-list--grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 768px) {
  .posts-list--grid {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    column-count: 2;
    column-gap: var(--s-64);
  }
  .posts-list--grid li a {
    flex-direction: row;
  }

  .posts-list--grid li {
    font-size: 0.777rem;
    break-inside: avoid;
  }
  .posts-list--grid li a {
    gap: var(--s-8);

    /* flex-direction: row; */
    padding: var(--s-4) 0;
    align-items: baseline;
  }
  .posts-list--grid span:first-child {
    order: 2;
  }
  .posts-list--grid span:last-child {
    font-size: 0.666rem;
    order: 1;
  }
}
@media screen and (min-width: 1200px) {
  .posts-list--grid {
    column-count: 3;
  }
}
@media screen and (min-width: 1600px) {
  .posts-list--grid {
    column-count: 4;
  }
}

/* =============================================================================
   Primary Site Navigation
   ========================================================================== */

.navv {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--s-8);
  padding-top: var(--s-24);
  padding-bottom: var(--s-24);
  position: relative;
}

.navv a {
  position: relative;
  display: flex;
  align-items: center;
}

.navv a[aria-current="page"] {
  background-color: var(--c-bg-opaque);
  pointer-events: none;
  cursor: default;
}

.navv a:first-child {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.navv a:not(:first-child) {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
}
.navv a:not(:first-child):hover {
  background: var(--c-bg-opaque);
}
.navv a svg {
  width: 24px;
  height: 24px;
}
.navv a:first-child[hidden] {
  opacity: 0;
  visibility: hidden;
}

/*@media (min-width: 42rem) {
  .navv a:not(:first-child) {
    width: 32px;
    height: 32px;
  }

  .navv a:not(:first-child) svg {
    width: 20px;
    height: 20px;
  }
}*/

h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02rem;
  margin: 0 0 var(--s-16) 0;
}

/* =============================================================================
   Page heading + view toggle
   ========================================================================== */

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  margin-bottom: var(--s-16);
}
.page-heading h1 {
  margin: 0;
}
.page-toggle {
  display: flex;
  flex-shrink: 0;
  font-size: 0.777rem;
}
.page-toggle a {
  text-decoration: none;
  padding: var(--s-4) var(--s-12);
  border-radius: calc(var(--border-radius) - var(--s-2));
}
.page-toggle a:hover,
.page-toggle a:active {
  text-decoration: underline;
}
.page-toggle a[aria-current="page"] {
  background: var(--c-fg);
  color: var(--c-text);
  pointer-events: none;
  text-decoration: none;
}

/* ==========================================================================
  * Key/Value List
  * ========================================================================== */

.kv-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}
.kv-list li:not(:first-child) {
  border-top: 1px solid var(--c-border);
}
.kv-list li a {
  padding: var(--s-16) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-16);
  text-decoration: none;
}
.kv-list li a:hover span:first-child {
  text-decoration: underline;
}
.kv-list svg:first-child {
  width: 24px;
  height: 24px;
}
.kv-list svg:last-child {
  width: 16px;
  height: 16px;
  color: var(--c-text-light);
  margin-right: var(--s-12);
  margin-left: auto;
}
.kv-list a:hover svg:last-child {
  color: var(--c-theme);
}

