/***************/
/* MEYER RESET */
/***************/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

@font-face {
  font-family: "Inter Variable";
  src: url("../resources/fonts/InterVariable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}
@font-face {
  font-family: "Inter Variable";
  src: url("../resources/fonts/InterVariable-Italic.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 100 900;
}
:root {
  color-scheme: light;
  --ink: #17191c;
  --body-ink: #30343a;
  --muted: #656b73;
  --line: #d9dde2;
  --soft-line: #e9ebee;
  --paper: #ffffff;
  --wash: #f5f6f7;
  --accent: #264c73;
  --card: #f8f9fc;
  --card-media: #eef1f6;
  --link-decoration: #a9afb7;
  --shadow: rgba(23, 25, 28, 0.14);
  --shadow-raised: rgba(23, 25, 28, 0.09);
  --icon-filter: none;
  --content-width: 1120px;
  --sans: "Inter Variable", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f4f7;
  --body-ink: #e1e5ea;
  --muted: #aeb6c2;
  --line: #353c47;
  --soft-line: #2c333d;
  --paper: #171a1f;
  --wash: #20252d;
  --accent: #9ecbff;
  --card: #20252d;
  --card-media: #2a303a;
  --link-decoration: #737f8e;
  --shadow: rgba(0, 0, 0, 0.28);
  --shadow-raised: rgba(0, 0, 0, 0.38);
  --icon-filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ink: #f2f4f7;
    --body-ink: #e1e5ea;
    --muted: #aeb6c2;
    --line: #353c47;
    --soft-line: #2c333d;
    --paper: #171a1f;
    --wash: #20252d;
    --accent: #9ecbff;
    --card: #20252d;
    --card-media: #2a303a;
    --link-decoration: #737f8e;
    --shadow: rgba(0, 0, 0, 0.28);
    --shadow-raised: rgba(0, 0, 0, 0.38);
    --icon-filter: invert(1);
  }
}
* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--link-decoration);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-110%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
}

.site-header {
  min-height: 154px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.site-title {
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
}

.site-title:hover {
  color: var(--ink);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color 140ms ease, background 140ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--line);
  background: var(--wash);
}

.social-links img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: var(--icon-filter);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.js .theme-toggle {
  display: grid;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--line);
  background: var(--wash);
}

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

.theme-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

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

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

.site-nav {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 140ms ease, transform 140ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-main {
  min-height: 480px;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  min-height: 82px;
}

.section-heading {
  max-width: 690px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(2.05rem, 4.5vw, 3.35rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.section-intro {
  max-width: 570px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  font-family: var(--sans);
}

.project-card {
  min-width: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 2px var(--shadow), 0 1px 3px 1px var(--shadow-raised);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px var(--shadow), 0 4px 10px 1px var(--shadow-raised);
}

.project-image {
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  background: var(--card-media);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 240ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.015);
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1rem 1.1rem;
}

.project-content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.project-content h3 a {
  text-decoration: none;
}

.project-content p {
  min-height: 4.5em;
  flex: 1;
  margin: 0.5rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.project-content .project-link {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.project-link,
.text-link,
.back-link {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-link span,
.text-link span {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 140ms ease;
}

.project-link:hover span {
  transform: translate(2px, -2px);
}

.text-link:hover span {
  transform: translateX(3px);
}

.instagram-feed {
  margin-top: clamp(4rem, 8vw, 6.5rem);
}

.instagram-feed .section-heading {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.instagram-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
}

.instagram-embed iframe {
  width: 100%;
  height: clamp(42rem, 78vw, 54rem);
  display: block;
  border: 0;
  background: var(--paper);
}

.instagram-profile-link {
  display: inline-block;
  margin-top: 1rem;
}

.instagram-profile-link span {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 140ms ease;
}

.instagram-profile-link:hover span {
  transform: translate(2px, -2px);
}

.post-list {
  border-top: 1px solid var(--line);
}

.post-summary {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--soft-line);
}

.post-summary time,
.article-header time {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-summary h2 {
  margin: -0.25rem 0 0.6rem;
  font-family: var(--sans);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.post-summary h2 a {
  text-decoration: none;
}

.post-excerpt {
  color: var(--muted);
}

.post-excerpt p {
  margin: 0 0 1rem;
}

.page,
.post {
  max-width: 780px;
}

.page .section-heading {
  margin-bottom: 2.5rem;
}

.entry {
  color: var(--body-ink);
}

.entry p,
.entry ul,
.entry ol,
.entry blockquote,
.entry pre {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.entry h2 {
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.entry h2 {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--soft-line);
  font-size: 1.55rem;
}

.entry h3,
.entry h4 {
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.entry h3 {
  font-size: 1.25rem;
}

.entry ul,
.entry ol {
  padding-left: 1.35rem;
}

.entry ul {
  list-style: disc;
}

.entry ol {
  list-style: decimal;
}

.entry li {
  margin: 0.45rem 0;
}

.entry blockquote {
  padding-left: 1.25rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.entry pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1.25rem;
  border: 1px solid var(--soft-line);
  background: var(--wash);
  font-size: 0.84rem;
  line-height: 1.5;
}

.entry code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

.task-dependency-diagram {
  margin: 1.5rem 0;
}

.task-dependency-diagram__dark {
  display: none;
}

:root[data-theme="dark"] .task-dependency-diagram__light {
  display: none;
}

:root[data-theme="dark"] .task-dependency-diagram__dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .task-dependency-diagram__light {
    display: none;
  }

  :root:not([data-theme]) .task-dependency-diagram__dark {
    display: block;
  }
}
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 1.35rem 0 0.8rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(2.05rem, 4.5vw, 3.35rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .site-header {
    min-height: 132px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
  }

  .social-links {
    gap: 0.65rem;
  }

  .social-links a {
    width: 36px;
    height: 36px;
    place-items: start;
  }

  .social-links img {
    width: 18px;
    height: 18px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .site-nav {
    justify-content: space-around;
    gap: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-image {
    aspect-ratio: 16 / 10;
  }

  .instagram-embed iframe {
    height: 40rem;
  }

  .project-content p {
    min-height: auto;
  }

  .post-summary {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
.highlight {
  background-color: #efefef;
  padding: 7px 7px 7px 10px;
  border: 1px solid #ddd;
  -moz-box-shadow: 3px 3px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 3px 3px rgba(0, 0, 0, 0.1);
  box-shadow: 3px 3px rgba(0, 0, 0, 0.1);
  margin: 20px 0 20px 0;
  overflow: auto;
}

code {
  font-family: 'Bitstream Vera Sans Mono','Courier', monospace;
}

.highlight .c {
  color: #586E75;
}

/* Comment */
.highlight .err {
  color: #93A1A1;
}

/* Error */
.highlight .g {
  color: #93A1A1;
}

/* Generic */
.highlight .k {
  color: #859900;
}

/* Keyword */
.highlight .l {
  color: #93A1A1;
}

/* Literal */
.highlight .n {
  color: #93A1A1;
}

/* Name */
.highlight .o {
  color: #859900;
}

/* Operator */
.highlight .x {
  color: #CB4B16;
}

/* Other */
.highlight .p {
  color: #93A1A1;
}

/* Punctuation */
.highlight .cm {
  color: #586E75;
}

/* Comment.Multiline */
.highlight .cp {
  color: #859900;
}

/* Comment.Preproc */
.highlight .c1 {
  color: #586E75;
}

/* Comment.Single */
.highlight .cs {
  color: #859900;
}

/* Comment.Special */
.highlight .gd {
  color: #2AA198;
}

/* Generic.Deleted */
.highlight .ge {
  color: #93A1A1;
  font-style: italic;
}

/* Generic.Emph */
.highlight .gr {
  color: #DC322F;
}

/* Generic.Error */
.highlight .gh {
  color: #CB4B16;
}

/* Generic.Heading */
.highlight .gi {
  color: #859900;
}

/* Generic.Inserted */
.highlight .go {
  color: #93A1A1;
}

/* Generic.Output */
.highlight .gp {
  color: #93A1A1;
}

/* Generic.Prompt */
.highlight .gs {
  color: #93A1A1;
  font-weight: bold;
}

/* Generic.Strong */
.highlight .gu {
  color: #CB4B16;
}

/* Generic.Subheading */
.highlight .gt {
  color: #93A1A1;
}

/* Generic.Traceback */
.highlight .kc {
  color: #CB4B16;
}

/* Keyword.Constant */
.highlight .kd {
  color: #268BD2;
}

/* Keyword.Declaration */
.highlight .kn {
  color: #859900;
}

/* Keyword.Namespace */
.highlight .kp {
  color: #859900;
}

/* Keyword.Pseudo */
.highlight .kr {
  color: #268BD2;
}

/* Keyword.Reserved */
.highlight .kt {
  color: #DC322F;
}

/* Keyword.Type */
.highlight .ld {
  color: #93A1A1;
}

/* Literal.Date */
.highlight .m {
  color: #2AA198;
}

/* Literal.Number */
.highlight .s {
  color: #2AA198;
}

/* Literal.String */
.highlight .na {
  color: #93A1A1;
}

/* Name.Attribute */
.highlight .nb {
  color: #B58900;
}

/* Name.Builtin */
.highlight .nc {
  color: #268BD2;
}

/* Name.Class */
.highlight .no {
  color: #CB4B16;
}

/* Name.Constant */
.highlight .nd {
  color: #268BD2;
}

/* Name.Decorator */
.highlight .ni {
  color: #CB4B16;
}

/* Name.Entity */
.highlight .ne {
  color: #CB4B16;
}

/* Name.Exception */
.highlight .nf {
  color: #268BD2;
}

/* Name.Function */
.highlight .nl {
  color: #93A1A1;
}

/* Name.Label */
.highlight .nn {
  color: #93A1A1;
}

/* Name.Namespace */
.highlight .nx {
  color: #555;
}

/* Name.Other */
.highlight .py {
  color: #93A1A1;
}

/* Name.Property */
.highlight .nt {
  color: #268BD2;
}

/* Name.Tag */
.highlight .nv {
  color: #268BD2;
}

/* Name.Variable */
.highlight .ow {
  color: #859900;
}

/* Operator.Word */
.highlight .w {
  color: #93A1A1;
}

/* Text.Whitespace */
.highlight .mf {
  color: #2AA198;
}

/* Literal.Number.Float */
.highlight .mh {
  color: #2AA198;
}

/* Literal.Number.Hex */
.highlight .mi {
  color: #2AA198;
}

/* Literal.Number.Integer */
.highlight .mo {
  color: #2AA198;
}

/* Literal.Number.Oct */
.highlight .sb {
  color: #586E75;
}

/* Literal.String.Backtick */
.highlight .sc {
  color: #2AA198;
}

/* Literal.String.Char */
.highlight .sd {
  color: #93A1A1;
}

/* Literal.String.Doc */
.highlight .s2 {
  color: #2AA198;
}

/* Literal.String.Double */
.highlight .se {
  color: #CB4B16;
}

/* Literal.String.Escape */
.highlight .sh {
  color: #93A1A1;
}

/* Literal.String.Heredoc */
.highlight .si {
  color: #2AA198;
}

/* Literal.String.Interpol */
.highlight .sx {
  color: #2AA198;
}

/* Literal.String.Other */
.highlight .sr {
  color: #DC322F;
}

/* Literal.String.Regex */
.highlight .s1 {
  color: #2AA198;
}

/* Literal.String.Single */
.highlight .ss {
  color: #2AA198;
}

/* Literal.String.Symbol */
.highlight .bp {
  color: #268BD2;
}

/* Name.Builtin.Pseudo */
.highlight .vc {
  color: #268BD2;
}

/* Name.Variable.Class */
.highlight .vg {
  color: #268BD2;
}

/* Name.Variable.Global */
.highlight .vi {
  color: #268BD2;
}

/* Name.Variable.Instance */
.highlight .il {
  color: #2AA198;
}

/* Literal.Number.Integer.Long */
:root[data-theme="dark"] .highlight {
  border-color: var(--line);
  background: var(--wash);
  box-shadow: none;
}

:root[data-theme="dark"] .highlight .c,
:root[data-theme="dark"] .highlight .cm,
:root[data-theme="dark"] .highlight .c1,
:root[data-theme="dark"] .highlight .cs,
:root[data-theme="dark"] .highlight .g,
:root[data-theme="dark"] .highlight .l,
:root[data-theme="dark"] .highlight .n,
:root[data-theme="dark"] .highlight .p,
:root[data-theme="dark"] .highlight .w {
  color: #c4ccd7;
}

:root[data-theme="dark"] .highlight .k,
:root[data-theme="dark"] .highlight .o,
:root[data-theme="dark"] .highlight .gi,
:root[data-theme="dark"] .highlight .ow {
  color: #b8dc73;
}

:root[data-theme="dark"] .highlight .x,
:root[data-theme="dark"] .highlight .gh,
:root[data-theme="dark"] .highlight .gu,
:root[data-theme="dark"] .highlight .kc,
:root[data-theme="dark"] .highlight .no,
:root[data-theme="dark"] .highlight .ni,
:root[data-theme="dark"] .highlight .se {
  color: #ffb36d;
}

:root[data-theme="dark"] .highlight .gd,
:root[data-theme="dark"] .highlight .m,
:root[data-theme="dark"] .highlight .s,
:root[data-theme="dark"] .highlight .mf,
:root[data-theme="dark"] .highlight .mh,
:root[data-theme="dark"] .highlight .mi,
:root[data-theme="dark"] .highlight .mo,
:root[data-theme="dark"] .highlight .s2,
:root[data-theme="dark"] .highlight .s1 {
  color: #73daca;
}

:root[data-theme="dark"] .highlight .gr,
:root[data-theme="dark"] .highlight .kt,
:root[data-theme="dark"] .highlight .sr {
  color: #ff8c9c;
}

:root[data-theme="dark"] .highlight .kd,
:root[data-theme="dark"] .highlight .kr,
:root[data-theme="dark"] .highlight .nc,
:root[data-theme="dark"] .highlight .nd,
:root[data-theme="dark"] .highlight .ne,
:root[data-theme="dark"] .highlight .nf,
:root[data-theme="dark"] .highlight .nt,
:root[data-theme="dark"] .highlight .nv,
:root[data-theme="dark"] .highlight .vc,
:root[data-theme="dark"] .highlight .vg,
:root[data-theme="dark"] .highlight .vi {
  color: #7dcfff;
}
