/* dexyun.com
   Edit this file. The preview server rebuilds on save.
   The build writes a content-hashed copy to dist/assets/. */

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

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

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

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/source-serif-4-500.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-400-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #faf9f5;
  --ink: #141413;
  --muted: #5c5a54;
  --faint: #8a877f;
  --line: #e8e6dc;
  --callout: #f0eee6;
  --chip: #fff;
  --selection: #e7e2d4;
  --button: #141413;
  --button-text: #faf9f5;
  --button-hover: #2c2c2a;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", Palatino, serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --measure: 680px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141413;
  --ink: #faf9f5;
  --muted: #b7b5ac;
  --faint: #8d8b84;
  --line: #343432;
  --callout: #1e1e1c;
  --chip: #242422;
  --selection: #3a3832;
  --button: #faf9f5;
  --button-text: #141413;
  --button-hover: #e4e2d8;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141413;
    --ink: #faf9f5;
    --muted: #b7b5ac;
    --faint: #8d8b84;
    --line: #343432;
    --callout: #1e1e1c;
    --chip: #242422;
    --selection: #3a3832;
    --button: #faf9f5;
    --button-text: #141413;
    --button-hover: #e4e2d8;
  }
}

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

html {
  background: var(--bg);
  color: var(--ink);
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  z-index: 2;
  background: var(--bg);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
}

.page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2.25rem;
}

.page-bar .back {
  margin: 0;
}

.theme {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme:hover {
  background: var(--callout);
}

.theme .icon {
  width: 22px;
  height: 22px;
  display: block;
}

.theme .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .icon-moon {
    display: none;
  }

  :root:not([data-theme="light"]) .theme .icon-sun {
    display: block;
  }
}

.identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1.15rem;
}

.avatar-stage {
  flex: 0 0 auto;
  perspective: 520px;
}

.avatar {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--callout);
  transform: rotateY(0deg);
  touch-action: manipulation;
}

.avatar.is-spinning {
  animation: coin-spin 1.35s cubic-bezier(0.08, 0.78, 0.16, 1) both;
}

@keyframes coin-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(1440deg); }
}

@media (prefers-reduced-motion: reduce) {
  .avatar.is-spinning {
    animation: none;
  }
}

.skip:focus {
  transform: none;
}

.column {
  width: 100%;
  max-width: var(--measure);
  padding-inline: 1.5rem;
}

main.column {
  flex: 1 0 auto;
  padding-top: 5.25rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(20, 20, 19, 0.28);
  text-underline-offset: 0.18em;
  -webkit-tap-highlight-color: rgba(20, 20, 19, 0.08);
}

a:hover {
  text-decoration-color: currentColor;
}

p,
li,
blockquote,
figcaption {
  text-wrap: pretty;
}

h1,
h2,
h3,
.featured h3 {
  text-wrap: balance;
}

.name,
.page-title,
.featured h3,
.entries h3,
.article h2,
.article h3,
.article h4 {
  font-family: var(--serif);
  font-weight: 500;
}

.name {
  margin: 0 0 1.5rem;
  font-size: clamp(2.6rem, 1.7rem + 2.8vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.bio,
.focus {
  margin: 0;
}

.focus {
  margin-top: 1rem;
}

.dot {
  color: var(--faint);
}

.block {
  margin-top: 4rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.featured h3,
.entries h3 {
  margin: 0;
  font-size: 1.3125rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.featured h3 a,
.entries h3 a {
  text-decoration: none;
}

.featured h3 a:hover,
.featured h3 a:focus-visible,
.entries h3 a:hover,
.entries h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

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

.entries li + li {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}


.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
  margin: 0.45rem 0 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 1.35rem + 2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-title + .meta {
  margin-top: 0.85rem;
}

.back-row {
  margin: 0 0 2.35rem;
}

.back {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article {
  margin-top: 2rem;
}

.article > :first-child {
  margin-top: 0;
}

.article > :last-child {
  margin-bottom: 0;
}

.article p,
.article ul,
.article ol,
.article pre,
.article figure,
.article hr {
  margin: 0 0 1.25rem;
}

.article h2,
.article h3,
.article h4 {
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.article h2 {
  margin: 2.6rem 0 0.75rem;
  font-size: 1.6rem;
}

.article h3 {
  margin: 2rem 0 0.55rem;
  font-size: 1.3rem;
}

.article h4 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.05rem;
}

.article ul,
.article ol {
  padding-left: 1.3rem;
}

.article li + li {
  margin-top: 0.35rem;
}

.article li > ul,
.article li > ol {
  margin: 0.35rem 0 0.15rem;
}

.article li::marker {
  color: var(--faint);
}

.article a,
.site-footer a:not(.button) {
  text-decoration-line: underline;
}

.site-footer a.button,
.site-footer a.button:hover,
.site-footer a.button:focus-visible {
  text-decoration: none;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.1rem 0 0.1rem 1.05rem;
  border-left: 2px solid var(--line);
  color: var(--ink);
}

blockquote p {
  margin: 0 0 0.75rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote.callout,
aside.callout {
  margin: 1.25rem 0;
  padding: 0.95rem 1.05rem 1rem;
  background: var(--callout);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
}

aside.callout > :first-child,
details.tangent > :first-child {
  margin-top: 0;
}

aside.callout > :last-child,
details.tangent > :last-child {
  margin-bottom: 0;
}

details.tangent {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem 1rem;
  background: var(--callout);
  border: 1px solid var(--line);
  border-radius: 4px;
}

details.tangent summary {
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
}

details.tangent summary + * {
  margin-top: 0.8rem;
}

.article img,
figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.article figure img {
  cursor: zoom-in;
}

.article video {
  display: block;
  width: 100%;
  height: auto;
  background: #141413;
  border: 1px solid var(--line);
  border-radius: 4px;
}

#lightbox {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  max-width: none;
  max-height: none;
  overflow: visible;
}

#lightbox::backdrop {
  background: rgba(20, 20, 19, 0.84);
}

#lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 90vh;
  margin: 0;
  border: 0;
  border-radius: 2px;
  background: #fff;
  cursor: zoom-out;
}

figure {
  margin: 1.75rem 0 1.35rem;
}

figcaption {
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.article code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--chip);
  border: 1px solid var(--line);
  padding: 0.04em 0.32em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.article pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  background: var(--callout);
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 1.5;
  font-size: 0.92rem;
}

.article pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.1rem 0;
}

.site-footer {
  flex: 0 0 auto;
  margin-top: 4.5rem;
  padding-top: 1.4rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--button);
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: var(--button-text);
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--callout);
  border-color: var(--line);
  color: var(--ink);
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
    line-height: 1.55;
  }

  .column {
    padding-inline: 1.2rem;
  }

  main.column {
    padding-top: 3rem;
  }

  .back-row {
    margin-bottom: 1.85rem;
  }

  .block {
    margin-top: 3.15rem;
  }

  .site-footer {
    margin-top: 2.75rem;
    padding-bottom: 2.5rem;
  }

  blockquote.callout {
    padding: 0.85rem 0.9rem 0.9rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .skip,
  .back-row {
    display: none;
  }

  main.column,
  .site-footer {
    padding-top: 0;
  }

  a {
    text-decoration: none;
  }
}
