@charset "UTF-8";
/* Theming */
:root {
  --content-width: min(55rem, 94vw);
  --font-family-text: "Fern Variable", Georgia, serif;
  --font-family-headings: "Job Clarendon", Georgia, serif;
  --font-family-ui: "Gimlet Sans", Arial, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-mono: "Gimlet Sans Mono", 'Courier New', Courier, monospace;
  --text-h1-size-min: 3rem;
  --text-h1-size-max: 4.5rem;
  --text-h1-line-height-min: 1.1em;
  --text-h1-line-height-max: 1.2em;
  --text-h2-size-min: 1.75rem;
  --text-h2-size-max: 2.5rem;
  --text-h2-line-height-min: 1.1em;
  --text-h2-line-height-max: 1.2em;
  --text-h3-size-min: 1.25rem;
  --text-h3-size-max: 1.75rem;
  --text-h3-line-height-min: 1.1em;
  --text-h3-line-height-max: 1.2em;
  --text-p-size-min: 1.0675rem;
  --text-p-size-max: 1.25rem;
  --text-p-line-height-min: 1.4em;
  --text-p-line-height-max: 1.5em;
  --c-paperback: hsl(34, 13%, 95%);
  --c-ink: hsl(355, 8%, 28%);
  --c-ink-300: hsl(355, 8%, 43%);
  --c-paperback-faded: hsla(34, 13%, 97%, 0.75);
  --c-paperback-tinted: hsl(34, 13%, 90%);
  --c-link-default: hsl(209, 68%, 36%);
  --c-link-visited: hsl(209, 68%, 26%);
  --c-link-hover: hsl(209, 68%, 56%);
  --c-link-focus: hsl(209, 8%, 36%);
  --c-link-active: hsl(175 , 68%, 26%);
}

/* Helpers */
html {
  box-sizing: border-box;
}

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

.visually-hidden {
  clip: rect(0 0 0 0); /* Legacy support for older browsers */
  clip-path: inset(50%); /* Modern approach */
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.clear-both {
  clear: both;
}

/* HTML */
body {
  background-color: var(--c-paperback);
  color: var(--c-ink);
  font-family: var(--font-family-text);
  font-weight: 375;
  padding: 0;
  margin: 0;
  position: relative;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: 1em;
  background-color: var(--c-paperback-faded);
  border-bottom: solid 1px var(--c-paperback-tinted);
  backdrop-filter: blur(10px);
}

nav {
  font-family: var(--font-family-ui);
}

main {
  position: relative;
  padding: 0 2vw;
}

pre[class*=language-]:has(code) {
  margin: 1.5rem auto 0;
  max-width: var(--content-width);
}

code {
  font-family: var(--font-family-mono);
}

h1, h2, h3, h4, h5, h6,
.heading {
  hanging-punctuation: first allow-end last;
  font-family: var(--font-family-headings);
  text-wrap: balance;
}

h1 {
  font-size: clamp(var(--text-h1-size-min), 1em + 5vw, var(--text-h1-size-max));
  line-height: clamp(var(--text-h1-line-height-min), 0.4217rem + 1.4533vw, var(--text-h1-line-height-max));
  font-weight: 800;
  font-variation-settings: "opsz" 36;
  margin: 0;
  padding: 0 0.5em 0 0;
  position: relative;
  display: block;
  font-stretch: 40%;
}
@media screen and (min-width: 30em) {
  h1 {
    font-stretch: 45%;
  }
}
@media screen and (min-width: 50em) {
  h1 {
    font-stretch: 50%;
  }
}
shape-outside-line-box h1 {
  margin-bottom: 0.25em;
}

h2 {
  font-size: clamp(var(--text-h2-size-min), 1em + 3vw, var(--text-h2-size-max));
  line-height: clamp(var(--text-h2-line-height-min), 0.4217rem + 1.25vw, var(--text-h2-line-height-max));
  font-weight: 500;
  margin: 0 auto;
  max-width: var(--content-width);
}
* + h2 {
  margin-top: 1.5rem;
}
h2 {
  font-stretch: 45%;
}
@media screen and (min-width: 30em) {
  h2 {
    font-weight: 550;
    font-stretch: 50%;
  }
}
@media screen and (min-width: 50em) {
  h2 {
    font-weight: 600;
    font-stretch: 50%;
  }
}

h3 {
  font-size: clamp(var(--text-h3-size-min), 1em + 3vw, var(--text-h3-size-max));
  line-height: clamp(var(--text-h3-line-height-min), 0.4217rem + 1.25vw, var(--text-h3-line-height-max));
  font-weight: 600;
  margin: 0 auto;
  max-width: var(--content-width);
}
* + h3 {
  margin-top: 1.5rem;
}
h3 {
  font-stretch: 45%;
}
@media screen and (min-width: 30em) {
  h3 {
    font-stretch: 50%;
  }
}
@media screen and (min-width: 50em) {
  h3 {
    font-stretch: 50%;
  }
}

h4 {
  margin: 0 auto;
  max-width: var(--content-width);
}
* + h4 {
  margin-top: 1.5rem;
}

h5 {
  margin: 0 auto;
  max-width: var(--content-width);
}
* + h5 {
  margin-top: 1.5rem;
}

h6 {
  margin: 0 auto;
  max-width: var(--content-width);
}
* + h6 {
  margin-top: 1.5rem;
}

p {
  font-size: clamp(var(--text-p-size-min), 0.5833em + 1vw, var(--text-p-size-max));
  line-height: clamp(var(--text-p-line-height-min), 0.4217rem + 1.4533vw, var(--text-p-line-height-max));
  font-variation-settings: "opsz" 8;
  margin: 0 auto;
  max-width: var(--content-width);
  padding: 0;
  hanging-punctuation: first allow-end last;
  text-wrap: balance;
}
* + p {
  margin-top: 1rem;
}
figure + figure + p {
  clear: both;
  margin-top: 1rem;
}
shape-outside-line-box + p {
  padding-top: 1.35rem;
}

h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
  margin-top: 0.5rem;
}

a {
  text-decoration-thickness: 0.035em;
  text-underline-offset: 2px;
  text-decoration-skip-ink: all;
  font-weight: 450;
}
a:link {
  color: var(--c-link-default);
}
@media (hover: hover) {
  a:hover {
    color: var(--c-link-hover);
  }
}
a:visited {
  color: var(--c-link-visited);
}
a:focus {
  color: var(--c-link-focus);
}
a:active {
  color: var(--c-link-active);
}

ul {
  font-size: clamp(var(--text-p-size-min), 0.5833em + 0.6667vw, var(--text-p-size-max));
  line-height: clamp(var(--text-p-line-height-min), 0.4217rem + 1.4533vw, var(--text-p-line-height-max));
  font-weight: 375;
  margin: 0 auto;
  max-width: var(--content-width);
  padding: 0 0 0 1.25em;
  text-wrap: balance;
  font-stretch: 85%;
}
@media screen and (min-width: 30em) {
  ul {
    font-stretch: 92.5%;
  }
}
@media screen and (min-width: 50em) {
  ul {
    font-stretch: 100%;
  }
}

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

figure {
  margin: 0 auto 0;
  padding: 0;
  max-width: var(--content-width);
}
shape-outside-line-box + figure {
  clear: both;
}
p + figure {
  margin-top: 1.5rem;
}
figure img {
  border: solid 1px hsla(0, 0%, 67%, 0.75);
  border-radius: 0.25rem;
}
figure.small {
  width: calc(50% - 0.5rem);
}
@media screen and (min-width: 30em) {
  figure.small {
    width: 25%;
  }
}
figure.medium {
  width: calc(50% - 0.5rem);
}
figure.wide {
  max-width: unset;
  clear: both;
}
figure.left {
  clear: left;
  float: left;
  margin-left: 0;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  max-width: calc(50% - 1rem);
}
figure.right {
  clear: right;
  float: right;
  margin-left: 1rem;
  margin-right: 0;
  margin-bottom: 0.5rem;
  max-width: calc(50% - 1rem);
}

figcaption {
  color: var(--c-ink-300);
  font-family: var(--font-family-ui);
  font-size: 0.75rem;
  text-wrap: balance;
}

blockquote {
  margin: 0 auto;
  max-width: var(--content-width);
  border-left: solid 2px gray;
  padding-left: 1rem;
}
blockquote p {
  text-wrap: balance;
}
blockquote cite {
  display: block;
  font-family: var(--font-family-ui);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}
* + blockquote {
  margin-top: 1rem;
}

p + pre, figure + pre {
  clear: both;
}

/* Layout */
.grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem; /* Creates gutters between items */
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.grid--header {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem; /* Creates gutters between items */
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
}
.grid--header h2 {
  justify-self: start;
  margin: 0;
}
.grid--header a {
  font-family: var(--font-family-ui);
  font-size: 0.875rem;
  justify-self: end;
  margin: 0;
}

footer {
  text-align: center;
  padding: 2rem 0 6rem;
}
footer p {
  font-family: var(--font-family-ui);
  font-size: 0.75rem;
}

/* Components */
.main-nav {
  font-family: var(--font-family-ui);
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2vw;
  padding: 0;
  margin: 0;
}
.main-nav ul li:first-child {
  flex-grow: 5;
  width: 90vw;
}
.main-nav ul li:first-child a {
  font-family: var(--font-family-headings);
  font-stretch: 50%;
  font-weight: 750;
}
@media screen and (min-width: 40em) {
  .main-nav ul {
    gap: 5vw;
  }
  .main-nav ul li:first-child {
    width: unset;
    flex-grow: 1;
  }
}
.main-nav a {
  text-decoration: none;
  font-weight: 525;
}

.nav--prev-next-page {
  margin-top: 2rem;
}
.nav--prev-next-page ul {
  width: var(--content-width);
  list-style: none;
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
}
.nav--prev-next-page ul li:first-child {
  text-align: right;
}
.nav--prev-next-page ul li:first-child:last-child {
  width: 100%;
  grid-column: 1/3;
  text-align: center;
}
@media screen and (min-width: 40em) {
  .nav--prev-next-page ul {
    grid-template-columns: 1fr 1fr;
  }
}
.nav--prev-next-page ul label {
  display: block;
  font-variant-caps: all-small-caps;
  font-weight: 550;
}

.nav--prev-next {
  margin-top: 2rem;
}
.nav--prev-next ul {
  width: var(--content-width);
  list-style: none;
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0 auto;
}
@media screen and (min-width: 40em) {
  .nav--prev-next ul {
    grid-template-columns: 1fr 1fr;
  }
  .nav--prev-next ul li:last-child {
    text-align: right;
  }
  .nav--prev-next ul li:first-child:last-child {
    width: 100%;
    grid-column: 2/3;
  }
}
.nav--prev-next ul label {
  display: block;
  font-variant-caps: all-small-caps;
  font-weight: 550;
}

.newsletter-blurb {
  max-width: var(--content-width);
  margin: 0 auto;
}

.link-button {
  display: inline-block;
  font-family: var(--font-family-ui);
  font-weight: 625;
  background: linear-gradient(to bottom, var(--c-link-default), var(--c-link-visited));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
}
.link-button:link, .link-button:visited {
  color: white;
}
@media screen and (min-width: 35em) {
  .link-button {
    float: right;
    margin: 0 0 0.5rem 1rem;
  }
}

.card {
  --card-bg: hsl(34, 13%, 96%);
  border-radius: 0.5rem;
  padding: 0.5rem 0.5rem 0.75rem;
}
.card img {
  border-radius: 0.35rem;
}
.card h2 {
  margin-top: 0.5rem;
}
.card {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--card-bg), var(--card-bg)), linear-gradient(165deg, #ffffff, hsl(34, 13%, 87%));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.card--date {
  font-family: var(--font-family-ui);
  font-size: 0.875rem;
}
.card--assets {
  font-family: var(--font-family-ui);
  font-size: 0.875rem;
  padding-top: 0.5rem;
}

.page-type--tip .pub-date, .page-type--blogpost .pub-date {
  max-width: unset;
}

/* Section divider */
hr {
  border: none;
}

hr:after {
  color: var(--c-ink);
  content: "§";
  font-weight: 650;
  display: block;
  font-size: 1.5em;
  margin: 1em auto;
  text-align: center;
}

/* End mark */
main > article p:last-of-type:after {
  content: "❧";
  display: inline;
  font-size: 1.125em;
  line-height: 0.75;
}

.embed-container {
  clear: both;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: min(94vw, 1440px);
  margin: 0 auto;
}
p + .embed-container {
  margin-top: 1.5rem;
}
.embed-container.video {
  aspect-ratio: unset;
}
.embed-container.video.wide p {
  max-width: unset;
}
.embed-container.video.wide lite-youtube {
  max-width: unset;
  width: unset;
}
.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed-container lite-youtube {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content-width);
  border: solid 1px #aaa;
  border-radius: 0.25rem;
}