/* === Design tokens ====================================================== */
:root {
	color-scheme: light dark;
	--font-family: "Avenir Next", Avenir, "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
	--font-family-monospace: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
	--font-family-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
	--font-prose: var(--font-family);
	--font-verse: var(--font-family-serif);
	--line-height: 1.65;
	--line-height-tight: 1.25;

	/* Spacing scale */
	--space-1: 0.5rem;
	--space-1-5: 0.75rem;
	--space-2: 1rem;
	--space-2-5: 1.5rem;
	--space-3: 2rem;
	--space-4: 3rem;
	--measure: 72ch;
	--measure-shell: 82ch;

	/* Ink on Washi palette */
	--wash: #f8f4ea;
	--ink: #1f1a16;
	--muted: #6f6358;
	--muted-strong: #5f5448;
	--accent: #a34431;
	--rule: #d9cfc1;
	--surface: #f3ede2;
	--surface-border: #e4d9cb;
	--radius-card: 12px;
	--radius-media: 10px;
	--code-bg: #efe7db;
	--code-ink: #2b241d;
	--selection-bg: #ecd7a8;
	--selection-ink: #1f1a16;
	--shadow-soft: 0 8px 20px rgba(26, 20, 15, 0.09);

	/* Compatibility aliases */
	--color-gray-20: var(--rule);
	--color-gray-50: var(--muted);
	--color-gray-90: var(--ink);
	--background-color: var(--wash);
	--text-color: var(--ink);
	--text-color-link: var(--accent);
	--text-color-link-active: var(--accent);
	--text-color-link-visited: var(--accent);

	--syntax-tab-size: 2;
}

@media (prefers-color-scheme: dark) {
	:root {
		--wash: #12100d;
		--ink: #f5efe6;
		--muted: #b4a89c;
		--muted-strong: #c8bdb1;
		--accent: #e08b6b;
		--rule: #3a3028;
		--surface: #1a1410;
		--surface-border: #2f2720;
		--code-bg: #1b1612;
		--code-ink: #f5efe6;
		--selection-bg: #3b2b1c;
		--selection-ink: #f5efe6;
		--shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.38);
	}
}


/* === Base =============================================================== */
* {
	box-sizing: border-box;
}

@view-transition {
	navigation: auto;
}

html,
body {
	padding: 0;
	margin: 0;
	font-family: var(--font-prose);
	color: var(--ink);
	background-color: var(--wash);
	line-height: var(--line-height);
	font-size: 16px;
}
html {
	overflow-y: scroll;
}

::selection {
	background: var(--selection-bg);
	color: var(--selection-ink);
}
::-moz-selection {
	background: var(--selection-bg);
	color: var(--selection-ink);
}

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

/* https://www.a11yproject.com/posts/how-to-hide-content/ */
.visually-hidden:not(:focus):not(:active) {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* Fluid images via https://www.zachleat.com/web/fluid-images/ */
img{
  max-width: 100%;
}
img[width][height] {
  height: auto;
}
img[src$=".svg"] {
  width: 100%;
  height: auto;
  max-width: none;
}
video,
iframe {
	width: 100%;
	height: auto;
}
iframe {
	aspect-ratio: 16/9;
}

p:last-child {
	margin-bottom: 0;
}
p {
	margin: 0 0 var(--space-2);
}

li {
	line-height: var(--line-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-serif);
	font-weight: 600;
	line-height: var(--line-height-tight);
	margin: var(--space-3) 0 var(--space-1);
}
h1 {
	font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
}
h2 {
	font-size: clamp(1.6rem, 1.2rem + 0.9vw, 2rem);
}
h3 {
	font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
}
h4,
h5,
h6 {
	font-size: 1.05rem;
}

blockquote {
	margin: var(--space-2) 0;
	padding-left: var(--space-2);
	border-left: 3px solid var(--rule);
	color: var(--muted);
	font-style: italic;
}

hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: var(--space-3) 0;
}

/* Site‑wide link colors: default inherit, subtle gray on hover */
a[href] {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
	text-decoration-color: var(--rule);
}
a[href]:visited {
	color: inherit;
}
a[href]:hover,
a[href]:active {
	text-decoration-color: var(--accent);
}

main a:link,
main a:visited {
	color: var(--ink);
	text-decoration-color: var(--rule);
}
main a:hover,
main a:active,
main a:focus-visible {
	color: var(--accent);
	text-decoration-color: var(--accent);
}
main .post-meta__tag:link,
main .post-meta__tag:visited,
main .tag-link:link,
main .tag-link:visited {
	color: inherit;
}
footer a:link,
footer a:visited {
	color: inherit;
	text-decoration-color: var(--rule);
}
footer a:hover,
footer a:active,
footer a:focus-visible {
	color: var(--accent);
	text-decoration-color: var(--accent);
}

main {
	padding: var(--space-2-5) var(--space-2);
	padding-bottom: var(--space-4);
	max-width: var(--measure);
	margin-inline: auto;
}
@media (min-width: 960px) {
	main {
		max-width: var(--measure-shell);
	}
}
main > :first-child {
	margin-top: 0;
}

.skip-link {
	text-decoration: none;
	background: var(--wash);
	color: var(--ink);
	padding: 0.5rem 1rem;
	border: 1px solid var(--accent);
	border-radius: 4px;
}

/* Prevent visually-hidden skip link fom pushing content around when focused */
.skip-link.visually-hidden:focus {
	position: absolute;
	top: 1rem;
	left: 1rem;
	/* Ensure it is positioned on top of everything else when it is shown */
	z-index: 999;
}

/* === Shared components ================================================== */
.links-nextprev {
	display: flex;
	justify-content: space-between;
	gap: var(--space-1) var(--space-2);
	list-style: none;
	margin: var(--space-2) 0 0;
	border-top: 1px solid var(--rule);
	padding: var(--space-1-5) 0 0;
	font-size: 0.95rem;
	color: var(--muted-strong);
}
.links-nextprev > * {
	flex-grow: 1;
}
.links-nextprev a {
	text-decoration-color: var(--rule);
}
.links-nextprev a:hover,
.links-nextprev a:focus-visible {
	text-decoration-color: var(--accent);
}
.links-nextprev-next {
	text-align: right;
}

table {
	margin: 1em 0;
}
table td,
table th {
	padding-right: 1em;
}

pre,
code {
	font-family: var(--font-family-monospace);
}
pre {
	background: var(--code-bg);
	color: var(--code-ink);
	padding: var(--space-2);
	border-radius: 10px;
	border: 1px solid var(--rule);
}
pre[class*="language-"] {
	background: var(--code-bg);
	color: var(--code-ink);
}
pre:not([class*="language-"]) {
	margin: var(--space-2) 0;
	line-height: 1.5;
	-moz-tab-size: var(--syntax-tab-size);
	-o-tab-size: var(--syntax-tab-size);
	tab-size: var(--syntax-tab-size);
	-webkit-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
	direction: ltr;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	overflow-x: auto;
}
code {
	background: var(--code-bg);
	color: var(--code-ink);
	padding: 0.15em 0.35em;
	border-radius: 4px;
	font-size: 0.95em;
	word-break: break-word;
}
pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}

/* === Shell / navigation ================================================= */
.site-header {
	display: flex;
	gap: var(--space-1) var(--space-2-5);
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding: var(--space-1-5) var(--space-2);
	border-bottom: 1px solid var(--rule);
	max-width: var(--measure-shell);
	margin-inline: auto;
}
.home-link {
	flex-grow: 1;
	font-size: 1rem;
	font-weight: 700;
	font-family: var(--font-family-serif);
	color: inherit;
	text-decoration: none;
}
.logo-mark {
	margin-right: 0.5rem;
	width: 1.3em;
	height: 1.3em;
	vertical-align: -0.2em;
	flex-shrink: 0;
}
.home-link:hover,
.home-link:active,
.home-link:visited {
	color: inherit;
}

/* Nav */
.site-nav {
	margin-left: auto;
}
.nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1) var(--space-2);
	padding: 0;
	margin: 0;
	list-style: none;
	align-items: center;
}
.nav-item {
	display: inline-block;
}
.nav a[href][aria-current="page"] {
	text-decoration-color: var(--accent);
	text-decoration-thickness: 0.11em;
	font-weight: 600;
}

/* Use monochrome links in the top nav */
.nav a[href] {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--rule);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.22em;
	font-weight: 540;
}
.nav a[href]:visited {
	color: inherit;
}
.nav a[href]:hover,
.nav a[href]:active,
.nav a[href]:focus-visible {
	text-decoration-color: var(--accent);
}

/* Shared: page headers */
.page-header {
	margin: 0 0 var(--space-1-5);
}
.page-header > :first-child {
	margin-top: 0;
}
.page-header h1 {
	margin-bottom: 0.35rem;
}
.page-lede {
	margin: 0;
	color: var(--muted-strong);
	max-width: 58ch;
	font-size: 1.02rem;
	line-height: 1.55;
}
.page-divider {
	margin: var(--space-1-5) 0 var(--space-2-5);
}

/* Shared: archive lists */
.postlist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: var(--space-1-5);
}
.postlist-item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.45rem;
}
.postlist-date {
	font-size: 0.92rem;
	color: var(--muted-strong);
	display: block;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}
.postlist-link {
	font-size: clamp(1.08rem, 1rem + 0.2vw, 1.2rem);
	font-weight: 560;
	color: inherit;
	text-decoration: none;
	text-underline-position: from-font;
	text-underline-offset: 0.16em;
	text-decoration-thickness: 0.08em;
	text-decoration-color: var(--rule);
}
.postlist-item-active .postlist-link {
	font-weight: 620;
	text-decoration-color: var(--accent);
}
.postlist-link:hover,
.postlist-link:focus-visible {
	color: var(--accent);
	text-decoration: none;
}

@media (min-width: 640px) {
	.postlist-item {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: var(--space-2-5);
		row-gap: 0;
	}
	.postlist-date {
		justify-self: end;
		text-align: right;
	}
}

/* Tags */
.post-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-transform: capitalize;
	font-style: italic;
}
.tags-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.8rem;
}
.tag-link {
	text-decoration-color: var(--rule);
}
.tag-link:hover,
.tag-link:active {
	color: var(--accent);
	text-decoration-color: var(--accent);
}

/* Post meta */
.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.9rem;
	margin: 0 0 var(--space-1-5);
	font-size: 0.9rem;
	color: var(--muted-strong);
}
.post-meta__date {
	white-space: nowrap;
}
.post-meta__tags {
	display: inline-flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0;
}
.post-meta__tags li {
	display: inline-flex;
	align-items: center;
}
.post-meta__tags li + li::before {
	content: "·";
	color: var(--rule);
	margin: 0 0.5rem;
}
.post-meta__tag {
	color: inherit;
	text-decoration-color: var(--rule);
	font-style: italic;
}
.post-meta__tag:hover,
.post-meta__tag:active {
	color: var(--accent);
	text-decoration-color: var(--accent);
}

.post-title {
	margin-top: 0;
	font-size: clamp(1.85rem, 1.45rem + 1vw, 2.3rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

@media (min-width: 900px) {
	.post-title {
		white-space: nowrap;
	}
}


/* === Post / poem pages ================================================== */

.poem {
  max-width: 60ch;
  margin-inline: auto;
}

.verse {
  font-family: var(--font-verse);
}

.stanza {
  margin: 0 0 var(--space-2);
}

.stanza:last-child {
  margin-bottom: 0;
}

/* === Home page ========================================================== */

/* Shared card surface */
.surface-card {
	border: 1px solid var(--surface-border);
	border-radius: var(--radius-card);
	padding: var(--space-1-5);
	background: var(--surface);
	box-shadow: var(--shadow-soft);
}

/* Intro hero */
.intro-card {
	margin-block: var(--space-2) var(--space-3);
	display: grid;
	gap: var(--space-1);
}

.intro-card p {
	margin: 0;
	line-height: 1.65;
}

.intro-quote {
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	font-style: italic;
	line-height: 1.5;
	margin: 0;
	border-left: 3px solid var(--accent);
	padding-inline-start: 0.75rem;
}

.intro-signoff {
	text-align: right;
	font-style: italic;
	font-weight: 600;
	margin-top: var(--space-1);
}

/* Subheadings used inside home cards */
.section-subtitle {
	margin: 0 0 var(--space-1) 0;
	font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
}

/* Cards for latest posts/poems */
.home-lists {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--space-2-5);
	margin-block: var(--space-2);
}

.latest-block {
	display: grid;
	gap: var(--space-1);
}

.home-latest .postlist {
	gap: var(--space-1-5);
}

@media (min-width: 640px) {
	.home-latest .postlist-item {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: baseline;
		column-gap: var(--space-2);
		row-gap: 0;
	}

	.home-latest .postlist-link {
		line-height: 1.15;
		min-block-size: 2.3em;
		max-block-size: 2.3em;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.home-latest .postlist-date {
		justify-self: end;
		white-space: nowrap;
		color: var(--muted-strong);
		font-variant-numeric: tabular-nums;
	}
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	color: var(--muted);
	margin: 0 0 0.35rem 0;
}

.more-link {
	margin-top: var(--space-1);
}

.closing-poem {
	margin-block: var(--space-3);
}

.poem-card {
	text-align: center;
}

.poem-body {
	font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
	line-height: 1.6;
	margin: 0;
	text-wrap: balance;
}

.poem-sign {
	margin: var(--space-1) 0 0 0;
	font-style: italic;
	text-align: right;
	font-weight: 600;
}

/* Latest posts section */
.latest-posts {
  padding: var(--space-1-5);
}

/* === About page ========================================================= */
.about-wrap {
  display: grid;
  gap: var(--space-2-5);
  align-items: start;
  margin-block: var(--space-2-5);
}

@media (min-width: 640px) {
  .about-wrap {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  }
}

.about-photo {
  margin: 0;
  width: min(220px, 70vw);
  justify-self: center;
  align-self: start;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}

@media (min-width: 640px) {
  .about-photo {
    width: 100%;
    justify-self: start;
  }
}

.about-photo picture {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-photo img.about-photo__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo--oval {
  border-radius: 999px;
  aspect-ratio: 1 / 1;
}

.about-photo--oval .about-photo__image {
  object-position: 62% 45%;
}

.about-photo--rounded {
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 5;
}

.about-photo--rounded .about-photo__image {
  object-position: 78% 32%;
}

.about-content {
  display: grid;
  gap: var(--space-2);
}

.about-text {
  padding-right: 0.25rem;
}

.about-timeline {
  display: grid;
  gap: var(--space-1);
}

.about-timeline__title {
  margin: 0;
  font-family: var(--font-prose);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-timeline__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  opacity: 0.9;
}

.about-timeline__title .direct-link {
  display: none;
}

.about-timeline__title > a[href^="#"] {
  display: none;
}

.about-timeline__title + .ha {
  display: none;
}

.about-timeline__title + a[href^="#"] {
  display: none;
}

.timeline {
  --timeline-gutter: 1.75rem;
  --timeline-dot: 0.55rem;
  --timeline-rail-x: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--timeline-gutter);
  display: grid;
  gap: 0.9rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: var(--timeline-rail-x);
  top: 0.3rem;
  bottom: 0.3rem;
  width: 1px;
  background: var(--rule);
  opacity: 1;
}

.timeline__item {
  display: grid;
  grid-template-columns: minmax(4.8rem, auto) 1fr;
  gap: var(--space-1);
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--timeline-gutter) + var(--timeline-rail-x) - (var(--timeline-dot) * 0.5));
  top: 0.45rem;
  width: var(--timeline-dot);
  height: var(--timeline-dot);
  border-radius: 999px;
  background: var(--wash);
  border: 2px solid var(--rule);
  opacity: 1;
}

.timeline__year {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
  padding-right: 0.25rem;
}

.timeline__label {
  line-height: 1.5;
}

.timeline__item--range {
  --timeline-dot: 0.45rem;
}

.timeline__item--range::before {
  border-style: dashed;
}

.timeline__item--range .timeline__label {
  color: var(--muted);
  font-style: italic;
}

/* === Reading + book pages ============================================= */
.reading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-1);
  margin-block: var(--space-2-5);
  justify-content: center;
}

@media (max-width: 640px) {
  .reading-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .reading-card__title {
    min-height: 3.2em;
  }
}

@media (min-width: 1120px) {
  .reading-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }
}

.reading-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.reading-card__cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--rule);
}

.reading-card__cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

.reading-card__cover img.reading-card__cover-image[width][height] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reading-card__body {
  display: grid;
  grid-template-rows: minmax(2.2em, auto) auto auto;
  gap: 0.15rem;
  padding: var(--space-1);
}

.reading-card__title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.18;
  min-height: 2.2em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.reading-card__author,
.reading-card__date {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.8rem;
  line-height: 1.25;
}

.reading-card__author {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.book-detail {
  display: grid;
  gap: var(--space-2);
}

.book-backlink {
  margin: 0;
  font-size: 0.95rem;
}

.book-header {
  display: grid;
  gap: var(--space-2);
  align-items: start;
}

.book-cover {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  width: min(320px, 100%);
  aspect-ratio: 2 / 3;
  justify-self: start;
}

.book-cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

.book-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-author {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.book-title {
  margin-top: 0;
}

.book-meta {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 0.35rem 1rem;
}

.book-meta dt {
  font-weight: 600;
}

.book-meta dd {
  margin: 0;
  color: var(--muted-strong);
}

.book-meta dd a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .book-header {
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  }
}

/* === Photography ======================================================= */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-1-5);
  margin-block: var(--space-2-5);
  align-items: start;
}

.photo-card {
  margin: 0;
  display: grid;
  gap: var(--space-1);
}

.photo-link {
  display: block;
  border-radius: var(--radius-media);
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  aspect-ratio: 1 / 1;
  width: 100%;
}

.photo-card picture,
.photo-card picture img,
.photo-thumb {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.photo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.photo-caption {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-strong);
  line-height: 1.4;
}

.photo-thumb {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-lightbox {
  width: min(96vw, 960px);
  border: none;
  border-radius: var(--radius-card);
  padding: var(--space-1);
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  background: var(--background-color);
  color: var(--text-color);
  text-align: center;
}

.photo-lightbox[open] {
  display: flex;
}

.photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.photo-lightbox img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.photo-lightbox__close {
  border: 1px solid var(--rule);
  background: var(--background-color);
  color: var(--text-color);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  align-self: flex-end;
}

@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;
	}
}
/**
 * okaidia theme for JavaScript, CSS and HTML
 * Loosely based on Monokai textmate theme by http://www.monokai.nl/
 * @author ocodia
 */

code[class*="language-"],
pre[class*="language-"] {
	color: #f8f8f2;
	background: none;
	text-shadow: 0 1px rgba(0, 0, 0, 0.3);
	font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
	font-size: 1em;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	line-height: 1.5;

	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
	padding: 1em;
	margin: .5em 0;
	overflow: auto;
	border-radius: 0.3em;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #272822;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: .1em;
	border-radius: .3em;
	white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #8292a2;
}

.token.punctuation {
	color: #f8f8f2;
}

.token.namespace {
	opacity: .7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
	color: #f92672;
}

.token.boolean,
.token.number {
	color: #ae81ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: #a6e22e;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #f8f8f2;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
	color: #e6db74;
}

.token.keyword {
	color: #66d9ef;
}

.token.regex,
.token.important {
	color: #fd971f;
}

.token.important,
.token.bold {
	font-weight: bold;
}
.token.italic {
	font-style: italic;
}

.token.entity {
	cursor: help;
}
/*
 * New diff- syntax
 */

pre[class*="language-diff-"] {
	--eleventy-code-padding: 1.25em;
	padding-left: var(--eleventy-code-padding);
	padding-right: var(--eleventy-code-padding);
}
.token.deleted {
	background-color: hsl(0, 51%, 37%);
	color: inherit;
}
.token.inserted {
	background-color: hsl(126, 31%, 39%);
	color: inherit;
}

/* Make the + and - characters unselectable for copy/paste */
.token.prefix.unchanged,
.token.prefix.inserted,
.token.prefix.deleted {
	-webkit-user-select: none;
	user-select: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-top: 2px;
	padding-bottom: 2px;
}
.token.prefix.inserted,
.token.prefix.deleted {
	width: var(--eleventy-code-padding);
	background-color: rgba(0,0,0,.2);
}

/* Optional: full-width background color */
.token.inserted:not(.prefix),
.token.deleted:not(.prefix) {
	display: block;
	margin-left: calc(-1 * var(--eleventy-code-padding));
	margin-right: calc(-1 * var(--eleventy-code-padding));
	text-decoration: none; /* override del, ins, mark defaults */
	color: inherit; /* override del, ins, mark defaults */
}