/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

@font-face {
  font-family: "Berkeley Mono Regular";
  src: url(/assets/fonts/b58ddf02f24681bd.woff2) format("woff2"),
    url(/assets/fonts/ec2c90a7da04a47c.woff) format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Berkeley Mono Bold";
  src: url(/assets/fonts/6de528d89ad42825.woff2) format("woff2"),
    url(/assets/fonts/e6a814e7200746fd.woff) format("woff");
  font-weight: bold;
  font-style: normal;
}

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

/**
 * 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 */

  font-family: "Berkeley Mono Regular", monospace;
}

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

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

body {
  margin: 0;
}

/**
   * Render the `main` element consistently in IE.
   */

main {
  display: block;
}

/**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */

h1 {
  font-size: 2em;
  margin: 0.67em 0;

  font-family: "Berkeley Mono Bold", monospace;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Berkeley Mono Regular", monospace;
}

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

/**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

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

/**
   * Remove the gray background on active links in IE 10.
   */

a {
  background-color: transparent;
}

/**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

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

b,
strong {
  font-weight: bolder;
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

code,
kbd,
samp {
  font-family: monospace, 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;
}

/* Embedded content
     ========================================================================== */

/**
   * Remove the border on images inside links in IE 10.
   */

img {
  border-style: none;
}

/* 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 */
}

/**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 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.
   */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

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

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
   * Correct the padding in Firefox.
   */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

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

progress {
  vertical-align: baseline;
}

/**
   * Remove the default vertical scrollbar in IE 10+.
   */

textarea {
  overflow: auto;
}

/**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

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

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-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.
   */

[type="search"]::-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 Edge, IE 10+, and Firefox.
   */

details {
  display: block;
}

/*
   * Add the correct display in all browsers.
   */

summary {
  display: list-item;
}

/* Misc
     ========================================================================== */

/**
   * Add the correct display in IE 10+.
   */

template {
  display: none;
}

/**
   * Add the correct display in IE 10.
   */

[hidden] {
  display: none;
}

/*
Note to reader: This CSS is bad - and that's okay! This is
usually written at 10:30pm right before I go to bed whenever
I decide it would be a good idea to add updates.
*/

html {
  background: black;
}

body {
  flex-direction: column;
}

.container {
  display: flex;
  width: 100vw;
  height: 100dvh;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 24px;
  box-sizing: border-box;
}

.container--portfolio {
  padding: 64px 0 32px 0;
  align-items: flex-start;
  height: max-content;
}

.glow-container {
  position: relative;
  width: 100%;
  max-width: 608px;
  height: auto;
  aspect-ratio: 608 / 460;
}

@media (max-width: 768px) {
  .glow-container {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }
}

.glow-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(60px) saturate(1.5);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.webgl {
  outline: none;
  position: relative;
  cursor: pointer;
  display: block;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
}


.content {
  width: 100%;
  max-width: 608px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: white;
  margin: 0;
}

h1 {
  font-size: 1rem;
}

h2 {
  font-size: 0.8rem;
}

h3 {
  font-size: 0.8rem;
}

p {
  color: white;
  font-size: 0.7rem;
  line-height: 1rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 0.75rem;
  }

  h3 {
    font-size: 0.75rem;
  }

  p {
    font-size: 0.65rem;
    line-height: 0.95rem;
  }
}

.link {
  text-decoration: underline;
  color: white;
}

.icons {
  color: white;
  display: flex;
  padding: 8px 8px 8px 0px;
  gap: 20px;
  font-size: 18px;
}

.icons svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

@media (max-width: 768px) {
  .icons {
    gap: 16px;
    font-size: 16px;
  }

  .icons svg {
    width: 15px;
    height: 15px;
  }
}

i {
  cursor: pointer;
}

.more-content {
  width: 100vw;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 64px;
}

.column {
  width: 640px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.line {
  width: calc(640px - 32px);
  height: 1px;
  background: rgb(205, 205, 205);
  margin-bottom: 24px;
  max-width: calc(100vw - 48px);
}

iframe {
  width: 640px;
  height: 480px;
  max-width: 90vw;
  outline: 1px solid white;
}

.top {
  margin-top: 12px;
}

a {
  color: white;
}

.iframe-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: lightgray;
  font-size: 12px;
}

.name {
  margin-top: 4px;
}

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.8));
}

.scroll-down:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .scroll-down {
    bottom: 24px;
  }
}

/* ==================== */
/* Blog Section Styles  */
/* ==================== */

.blog-section {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 64px 24px;
  box-sizing: border-box;
}

.blog-content {
  width: 100%;
  max-width: 608px;
}

@media (max-width: 768px) {
  .blog-section {
    padding: 48px 24px;
  }
}

.blog-header {
  margin-bottom: 0;
}

.blog-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.blog-title {
  font-size: 1rem;
  margin-bottom: 0;
}

.latest-post-date {
  font-size: 0.65rem;
  color: #666;
}

@media (max-width: 768px) {
  .blog-title {
    font-size: 0.9rem;
  }

  .latest-post-date {
    font-size: 0.6rem;
  }
}

.blog-divider {
  width: 100%;
  height: 1px;
  background: white;
  position: relative;
}

.blog-divider::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 0;
  width: 24px;
  height: 1px;
  background: white;
}

.blog-divider::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 0;
  width: 24px;
  height: 1px;
  background: white;
}

@media (max-width: 768px) {
  .blog-divider::before {
    display: none;
  }

  .blog-divider::after {
    display: none;
  }
}

.blog-feed {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: -24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: white;
  box-shadow:
    0 0 20px 2px rgba(255, 255, 255, 0.12),
    0 0 40px 4px rgba(255, 255, 255, 0.08),
    0 0 60px 6px rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  .timeline-line {
    display: none;
  }
}

.posts-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
}

/* Post Card */
.post-card {
  display: flex;
  gap: 16px;
  text-decoration: none;
  position: relative;
}

.post-card:hover .post-title {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .post-card {
    gap: 12px;
  }
}

/* Post Thumbnail with Glow */
.post-thumbnail-container {
  position: relative;
  width: 120px;
  height: 80px;
  flex-shrink: 0;
}

.post-thumbnail-glow {
  display: none;
}

.post-thumbnail {
  position: relative;
  width: 120px;
  height: 80px;
  object-fit: cover;
  z-index: 1;
}

/* Special handling for wider aspect ratio images */
.post-thumbnail[src*="google-tlds.webp"] {
  object-fit: contain;
  background-color: white;
  padding: 8px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .post-thumbnail-container {
    width: 100px;
    height: 67px;
  }

  .post-thumbnail-glow {
    width: 100px;
    height: 67px;
  }

  .post-thumbnail {
    width: 100px;
    height: 67px;
  }
}


.post-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-title {
  font-size: 0.85rem;
  margin: 0;
}

.post-date {
  font-size: 0.7rem;
  color: #888;
}

.post-external-badge {
  font-size: 0.6rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .post-title {
    font-size: 0.8rem;
  }

  .post-date {
    font-size: 0.65rem;
  }

  .post-external-badge {
    font-size: 0.55rem;
  }
}

/* Post Detail View */
.post-detail {
  display: none;
  width: 100vw;
  min-height: 100vh;
  padding: 64px 24px;
  box-sizing: border-box;
}

/* Prevent flash of wrong content on direct post links */
html.is-post-page .container.hero,
html.is-post-page .blog-section {
  display: none !important;
}

html.is-post-page .post-detail {
  display: block;
}

.post-detail-content {
  width: 100%;
  max-width: 608px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .post-detail {
    padding: 48px 24px;
  }
}

.back-link {
  display: inline-block;
  font-size: 0.8rem;
  margin-bottom: 32px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Post Detail Thumbnail with Glow */
.post-detail-thumbnail-container {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

.post-detail-thumbnail-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) saturate(1.5);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.post-detail-thumbnail {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 1;
}

/* Special handling for wider aspect ratio images */
.post-detail-thumbnail[src*="google-tlds.webp"] {
  object-fit: contain;
  background-color: white;
  padding: 24px;
  box-sizing: border-box;
}

.post-detail-title-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.post-detail-icon svg {
  width: 24px;
  height: 24px;
  color: white;
  opacity: 0.9;
}

.post-detail-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.post-detail-date {
  font-size: 0.75rem;
  color: #888;
  display: block;
  margin-bottom: 16px;
}

.post-author {
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 16px;
}

.post-author a {
  color: #aaa;
  text-decoration: none;
}

.post-author a:hover {
  color: white;
  text-decoration: underline;
}

.post-original-link {
  display: inline-block;
  font-size: 0.75rem;
  margin-bottom: 24px;
}

.post-divider {
  width: 100%;
  height: 1px;
  background: white;
  margin: 0 0 24px 0;
}

/* Post Content (Markdown) */
.post-content {
  font-size: 0.8rem;
  line-height: 1.6;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.post-content h1 {
  font-size: 1.1rem;
}

.post-content h2 {
  font-size: 1rem;
}

.post-content h3 {
  font-size: 0.9rem;
}

.post-content p {
  margin-bottom: 16px;
  font-size: 0.8rem;
  line-height: 1.6;
}

.post-content p:has(img) {
  text-align: center;
}

.post-content pre {
  background: #1a1a1a;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 0.75rem;
}

.post-content pre code {
  color: white;
}

.post-content code {
  font-family: "Berkeley Mono", monospace;
  font-size: 0.75rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: white;
}

.post-content a {
  text-decoration: underline;
}

.post-content img {
  max-width: 80%;
  height: auto;
  margin-bottom: 16px;
}

.post-content blockquote {
  border-left: 2px solid white;
  padding-left: 16px;
  margin: 16px 0;
  opacity: 0.8;
}

.post-content mark {
  background-color: rgba(100, 150, 255, 0.3);
  color: #e0e8ff;
  padding: 2px 4px;
  border-radius: 2px;
}


/*# sourceMappingURL=main.css.map*/