/* Basic Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

a {
    text-decoration: none;
}

@font-face {
    font-family: 'Geist';
    src: url('fonts/GeistVF.woff2') format('woff2'),
         url('fonts/GeistVF.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
}

/* Geist Mono utility and defaults for code blocks */
.mono {
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

code, pre, kbd, samp {
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.be-vietnam-pro-thin {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 100;
    font-style: normal;
  }
  
  .be-vietnam-pro-extralight {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 200;
    font-style: normal;
  }
  
  .be-vietnam-pro-light {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .be-vietnam-pro-regular {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .be-vietnam-pro-medium {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .be-vietnam-pro-semibold {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .be-vietnam-pro-bold {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .be-vietnam-pro-extrabold {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 800;
    font-style: normal;
  }
  
  .be-vietnam-pro-black {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 900;
    font-style: normal;
  }
  
  .be-vietnam-pro-thin-italic {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 100;
    font-style: italic;
  }
  
  .be-vietnam-pro-extralight-italic {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 200;
    font-style: italic;
  }
  
  .be-vietnam-pro-light-italic {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .be-vietnam-pro-regular-italic {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .be-vietnam-pro-medium-italic {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .be-vietnam-pro-semibold-italic {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 600;
    font-style: italic;
  }
  
  .be-vietnam-pro-bold-italic {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 700;
    font-style: italic;
  }
  
  .be-vietnam-pro-extrabold-italic {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 800;
    font-style: italic;
  }
  
  .be-vietnam-pro-black-italic {
    font-family: "Be Vietnam Pro", sans-serif;
    font-weight: 900;
    font-style: italic;
  }
  

html, body {
    height: 100%;
    font-family: 'Geist', 'SF Pro Display', 'Be Vietnam Pro', sans-serif;
    color: #F0F0F0;
    background-color: #0F0F0F;
}

/* Page load fade-in blur animation - ONLY for index.html (not blog pages) */
@keyframes fadeInBlur {
    0% {
        opacity: 0;
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* Apply animation only to index page (body without blog-page or subscribe-page class) */
body:not(.blog-page):not(.subscribe-page) .page-container {
    animation: fadeInBlur 1.5s ease-out forwards;
}

/* Body now only sets base styles from html, flex layout moved to .page-container to prevent layout issues when browser extensions inject elements */

.page-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}

.noise-overlay {
    content: "";
    position: fixed;
    top: -12.5%; 
    left: -12.5%;
    z-index: 100;
    width: 125%; 
    height: 125%;
    background: url('/assets/animations/noise.png') repeat center center;
    opacity: 0.1;
    animation: noiseMovement 0.09s steps(6) infinite;
    pointer-events: none;
}

@keyframes noiseMovement {
    0%, 100%  { transform: translate(0,0); }
    10%       { transform: translate(0%,-10%); }
    30%       { transform: translate(-10%,5%); }
    50%       { transform: translate(0%,10%); }
    70%       { transform: translate(10%,-5%); }
    90%       { transform: translate(10%,5%); }
}

:root {
    --spring: #00FF7F;
    --spring-extra-light: #D6FFEB;
    --spring-extra-dark: #004724;
    --spring-trp-5: rgba(0, 255, 127, 0.05);
    --white-trp-5: rgba(255, 255, 255, 0.05);
    --white-trp-10: rgba(255, 255, 255, 0.1);
    --white-trp-17: rgba(255, 255, 255, 0.17);
    --white-trp-30: rgba(255, 255, 255, 0.3);
    --white: #FFFFFF;
    --white-text: #F0F0F0;
    --grey-text: #BFBFBF;
    --grey-text-hover: #FFFFFF;
    --border-transparent: rgba(255, 255, 255, 0);
    --grey-background: #171717;
    --background: #0F0F0F;
    --background-disabled: #393939;
}

/* Layout */
header, footer, main {
    padding: 48px 64px;
}

/* Header */
.header-content {
    display: flex;
    width: 100%;
}

.user-profile {
    display: inline-flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.blog-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#user-avatar {
    width: 72px;
    height: 72px;
}

.user-info {
    padding-top: 3px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-name {
    color: var(--white-text, #F0F0F0);

    /* Medium/Subheading */
    font-family: Geist;
    font-size: 26px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px; 
    letter-spacing: -0.26px;
}

.user-description {
    color: var(--grey-text, #808080);

    /* Medium/Button */
    font-family: Geist;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; 
    letter-spacing: -0.22px;
}

/* Main */
main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
}

.about-container {
    padding-bottom: 40px;
}

.about-text {
    margin-bottom: 40px;
    color: var(--white-text, #F0F0F0);

    /* Medium/Heading */
    font-family: Geist;
    font-style: normal;
    font-size: 40px;
    font-weight: 400;
    line-height: 56px;
    letter-spacing: -0.8px;
}

.about-buttons {
    display: flex;
    gap: 4px;
}

/* Footer */
.footer-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

/* Buttons */
.button {
    font-family: Geist;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    cursor: pointer;
    outline: 0;
    border: 0;
    padding: 20px 24px;
    border-radius: 17px;
    transition: 0.3s;
    font-size: 22px;
    line-height: 22px;
    letter-spacing: -0.22px;
    color: var(--white-text);
    gap: 8px;
}

.button-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Back button specific styling */
.back-button {
    gap: 0;
    padding: 20px 28px 20px 20px !important; /* asymmetric padding for visual balance with icon */
    min-width: unset !important; /* remove min-width to let button hug content */
}

.primary {
    background-color: var(--spring);
    width: 194px;
    font-weight: 500;
    border-radius: 19px;
    padding: 28px 56px;
    color: var(--background);
    order: 1;
}

@media (hover: hover) {
    .primary:hover {
        background-color: var(--spring-extra-light);
        color: var(--spring-extra-dark);
        box-shadow: 0px 2px 40px 1px rgba(107, 251, 104, 0.20), 0px 5px 36px 0px #67FB64 inset;
    }
}

.secondary {
    background-color: var(--spring-trp-5);
    width: 194px;
    font-weight: 400;
    border-radius: 19px;
    padding: 28px 56px;
    color: var(--spring);
    order: 2;
}

@media (hover: hover) {
    .secondary:hover {
        background-color: var(--spring);
        color: var(--spring-extra-dark);
    }
}

.tertiary {
    background-color: var(--white-trp-5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 155px;
    width: fit-content;
}

/* Desktop/Tablet only: fit-content for index page buttons */
@media (min-width: 432px) {
    body:not(.blog-page):not(.subscribe-page) .primary {
        width: fit-content;
    }

    body:not(.blog-page):not(.subscribe-page) .secondary {
        width: fit-content;
    }

    body:not(.blog-page):not(.subscribe-page) .tertiary {
        width: fit-content;
        min-width: unset;
    }

    /* Blog page: make subscribe button hug content on desktop */
    .blog-page .tertiary {
        width: fit-content;
        min-width: unset;
    }
}

@media (hover: hover) {
    .tertiary:hover {
        background-color: var(--white-trp-17);
        color: var(--white);
    }
}

.tertiary .svg {
    fill: var(--white-text); 
    width: 24px;
    height: 24px;
}

@media (hover: hover) {
    .tertiary:hover .svg {
        fill: var(--white);
    }
}

.email-button {
    gap: 12px;
    padding-right: 26px;
}

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-bottom: 120px; /* Space for pinned footer */
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}

.blog-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.blog-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.blog-page main {
    flex: 1;
    position: relative;
    align-self: stretch;
    max-inline-size: none;
}

/* Footer container: create a stacking context and positioning */
.blog-page footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* important: make a new stacking context so z-index works predictably */
    isolation: isolate;
    /* spacing */
    padding: 40px 0 48px;
    margin: 0;
    /* keep the footer above the page but below floating UI if any */
    z-index: 10; /* was 0 */
  }
    /* The visual overlay that actually blurs & fades the content behind */
  .blog-page footer::before {
    content: "";
    position: absolute;
    inset: 0;
    /* the blur lives here, not on the footer element */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    /* optional: a faint tint so the blur is visible on Safari */
    background: rgba(0, 0, 0, 0.25);
    /* your progressive fade */
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,1) 65%,
      rgba(0,0,0,1) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,1) 65%,
      rgba(0,0,0,1) 100%
    );
    /* sit behind the content inside the footer */
    z-index: 0;
    pointer-events: none;
  }
  
  /* Your buttons/content sit above the overlay */
  .blog-page .footer-buttons {
    position: relative;
    z-index: 1;         /* <- crucial: above ::before */
    padding: 0 64px;
    max-width: 100%;
  }
  
  /* optional clean edge above the footer */
  .blog-page .footer-buttons::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
    pointer-events: none;
  }
  
  /* If you used blending anywhere on the buttons, lock them to normal */
  .blog-page .footer-buttons,
  .blog-page .footer-buttons * {
    mix-blend-mode: normal; /* safety if you experimented with blends */
  }

.blog-page .footer-buttons .button .tertiary {
    gap: 8px;
}

.blog-title {
    color: var(--white-text);
    font-family: Geist;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 48px;
    letter-spacing: -0.8px;
}

.blog-subtitle {
    color: var(--grey-text);
    font-family: Geist;
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: -0.24px;
}

.blog-year {
    color: var(--white-trp-30);
    font-family: Geist Mono;
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.7px;
    margin-bottom: 0;
}

.year-group {
    margin-bottom: 24px;
}

.year-group:last-child {
    margin-bottom: 0;
}

.year-group .post-list {
    margin-top: 24px;
}

.post-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 20px;
    padding-top: 24px;
}

.post-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 24px;
    border-radius: 23px;
    align-items: center;
    width: 100%;
    max-width: 50%;
}

@media (hover: hover) {
    .post-item:hover {
        cursor: pointer;
    }
}

.post-date {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 83px;
    height: 83px;
    border-radius: 21px;
    background: var(--white-trp-5);
    color: var(--grey-text);
    font-family: Geist Mono;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
}

@media (hover: hover) {
    .post-item:hover .post-date {
        background: var(--white-trp-10);
        color: var(--white);
        transition: background 0.6s ease;
    }

    .post-item:hover .post-title {
        color: var(--spring);
        transition: color 0.6s ease;
    }

    .post-item:hover .post-excerpt {
        color: var(--grey-text);
        transition: color 0.6s ease;
    }
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-inline-size: 100%;
    min-width: 0;
}

.post-title {
    color: var(--white-text);
    font-family: Geist;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.2px;
    display: inline-block;      /* makes width depend on text */
    width: fit-content;         /* shrink-wrap to text */
    max-width: 100%;           /* allow wrapping when container is smaller */
    white-space: normal;        /* allow wrapping when needed */
    padding-right: 24px;
    position: relative;
}

/* Hover icon for post titles */
.post-title::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%) translateX(4px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    /* color inherits from the title (including your hover color) */
    background: currentColor;
    /* use mask so the icon adopts currentColor */
    -webkit-mask: url('/assets/icons/arrowright.svg') no-repeat center / contain;
    mask: url('/assets/icons/arrowright.svg') no-repeat center / contain;
}

/* Reveal on hover (mouse) or focus (keyboard); also when the whole row is hovered */
@media (hover: hover) {
    .post-title:hover::after,
    .post-item:hover .post-title::after {
        opacity: 0.95;
        transform: translateY(-50%) translateX(0) scale(1);
        filter: blur(0px);
    }
}

.post-title:focus-visible::after {
    opacity: 0.95;
    transform: translateY(-50%) translateX(0) scale(1);
    filter: blur(0px);
}

@media (prefers-reduced-motion: reduce) {
    .post-title::after {
        transition: opacity 0.01s linear;
        transform: translateY(-50%);
    }
}

.post-excerpt {
    color: var(--white-trp-30);
    font-family: Geist;
    font-size: 14px;
    line-height: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;          /* 2 lines max */
    overflow: hidden;
    /* Fill available width */
    width: 100%;
    max-inline-size: 100%;
}
/* Post Page Styles */
.post-article {
    width: 100%;
    max-width: 100%;
}

.post-content-body {
    color: var(--white-text, #F0F0F0);
    font-family: Geist;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.18px;
    display: block;
    width: 100%;
    max-width: 60ch; /* 60 characters */
    margin: 0;
    text-align: left;
}

/* Paragraphs have consistent spacing */
.post-content-body p {
    margin: 0 0 32px 0;
}

.post-content-body p:last-child {
    margin-bottom: 0;
}

/* Headings are closer to the content they introduce */
.post-content-body h2 {
    color: var(--white-text, #F0F0F0);
    font-family: Geist;
    font-size: 24px;
    font-weight: 600;
    line-height: 38px;
    letter-spacing: -0.24px;
    margin: 48px 0 8px 0;
}

/* First heading has less top margin */
.post-content-body h2:first-child {
    margin-top: 0;
}

.post-content-body h3 {
    color: var(--white-text, #F0F0F0);
    font-family: Geist;
    font-size: 20px;
    font-weight: 600;
    line-height: 34px;
    letter-spacing: -0.2px;
    margin: 40px 0 8px 0;
}

.post-content-body h3:first-child {
    margin-top: 0;
}

/* Lists have proper spacing */
.post-content-body ul,
.post-content-body ol {
    margin: 0 0 28px 0;
    padding-left: 24px;
    color: var(--white-text, #F0F0F0);
    font-family: Geist;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.18px;
}

.post-content-body li {
    margin-bottom: 8px;
}

.post-content-body li:last-child {
    margin-bottom: 0;
}

.post-content-body blockquote {
    margin: 28px 0;
    padding: 24px;
    border-left: 4px solid var(--spring);
    background: var(--white-trp-5);
    border-radius: 12px;
    color: var(--white-text, #F0F0F0);
    font-family: Geist;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.18px;
    font-style: italic;
}

.post-content-body blockquote p {
    margin: 0;
}

.post-content-body blockquote p + p {
    margin-top: 16px;
}

.post-content-body code {
    background: var(--white-trp-5);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 16px;
}

.post-content-body pre {
    background: var(--white-trp-5);
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 16px;
    line-height: 24px;
    margin: 28px 0;
}

.post-content-body pre code {
    background: none;
    padding: 0;
}

.post-content-body a {
    color: var(--spring);
    text-decoration: underline;
    text-decoration-color: var(--spring);
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

@media (hover: hover) {
    .post-content-body a:hover {
        color: var(--spring-extra-light);
    }
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

.post-content-body hr {
    border: none;
    height: 1px;
    background: var(--white-trp-10);
    margin: 48px 0;
}

/* Improve spacing for adjacent elements - headings are very close to their content */
.post-content-body h2 + p,
.post-content-body h3 + p {
    margin-top: 0;
}

.post-content-body h2 + ul,
.post-content-body h2 + ol,
.post-content-body h3 + ul,
.post-content-body h3 + ol {
    margin-top: 0;
}

/* Add breathing room between consecutive paragraphs after headings */
.post-content-body h2 + p + p,
.post-content-body h3 + p + p {
    margin-top: 0;
}

.post-page .blog-subtitle {
    color: var(--grey-text);
    font-family: Geist Mono;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}


/* Subscribe Page Styles */
.subscribe-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.subscribe-page main {
    flex: 1;
    position: relative;
    align-self: stretch;
    max-inline-size: none;
}

.subscribe-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-bottom: 120px;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}

.subscribe-content {
    width: 100%;
    max-width: 100%;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 720px;
}

.email-label {
    color: var(--white-text);
    font-family: Geist;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.54px;
    padding-left: 24px;
}

.subscribe-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--grey-background);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 4px 10px 4px 4px;
    transition: border-color 0.3s ease;
}

.subscribe-input-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.subscribe-input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
}

.subscribe-input-wrapper.error {
    border-color: #ff4444;
}

.subscribe-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white-text);
    font-family: Geist;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.18px;
    padding: 4px 20px;
    min-height: 72px;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.subscribe-input.error {
    color: #ff4444;
}

.subscribe-button {
    flex-shrink: 0;
    background-color: var(--spring);
    color: var(--background);
    font-family: Geist;
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.18px;
    border: none;
    border-radius: 20px;
    padding: 20px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

@media (hover: hover) {
    .subscribe-button:hover:not(:disabled):not(.disabled) {
        background-color: var(--spring-extra-light);
        color: var(--spring-extra-dark);
        box-shadow: 0px 2px 40px 1px rgba(107, 251, 104, 0.20), 0px 5px 36px 0px #67FB64 inset;
    }
}

.subscribe-button.disabled,
.subscribe-button:disabled {
    background-color: var(--background-disabled);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

.subscribe-button.loading {
    opacity: 0.7;
    cursor: wait;
}

.messages-container {
    min-height: 54px;
    display: flex;
    flex-direction: column;
}

.message {
    display: none;
    font-family: "Geist Mono", monospace;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.14px;
    padding: 14px 22px;
    border-radius: 16px;
    margin-top: 2px;
    opacity: 0;
    filter: blur(4px);
    transform: translateY(-8px);
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.message.show {
    display: block;
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.message.hide {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(-8px);
}

.error-message {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.success-message {
    color: var(--spring);
    background: var(--spring-trp-5);
    border: 1px solid rgba(0, 255, 127, 0.3);
}

.subscribe-page footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    isolation: isolate;
    padding: 40px 0 48px;
    margin: 0;
    z-index: 10;
}

.subscribe-page footer::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.25);
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,1) 65%,
      rgba(0,0,0,1) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,1) 65%,
      rgba(0,0,0,1) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.subscribe-page .footer-buttons {
    position: relative;
    z-index: 1;
    padding: 0 64px;
    max-width: 100%;
}

/* Breakpoints */
@media (max-width: 431px) {

    body {
        display: flex;
        flex-direction: column;
        gap: 24px; /* Fixed gap between flex items */
        height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    header, footer, main {
        padding: 24px 24px;
    }

    /* Header */
    .header-content {
        justify-content: center;
    }

    .user-profile {
        gap: 16px;
    }

    /* JSON */
    #user-avatar {
        width: 60px;
        height: 60px;
    }

    .user-info {
        gap: 10px;
        padding-top: none;
        padding-bottom: 2px;
        align-items: flex-start;
    }
    
    .user-name {
        /* Small/Subheading */
        font-size: 22px;
        line-height: 22px;
        letter-spacing: -0.22px;
    }

    .user-description {
        /* Small/Button */
        font-size: 18px;
        line-height: 18px;
        letter-spacing: -0.18px;
    }
    
    .br2 {
        display: none;
    }

    /* Main */
    main {
        max-width: 100%;
    }
    
    .about-container {
        max-width: 100%;
        padding-top: 16px;
        padding-bottom: none;
    }
    
    .about-text {
        margin-bottom: 32px;
        text-align: center;

        /* Small/Heading */
        font-size: 25px;
        line-height: 34px;
        letter-spacing: -0.5px;
    }

    .about-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    /* Footer */
    .footer-buttons.index {
        display: grid;
        grid-template-rows: auto auto auto;  /* Creates three rows */
        grid-template-columns: 1fr 1fr;  /* Two columns each of equal width */
        gap: 4px;  /* Space between the buttons */
    }

    .footer-buttons.index > *:first-child {
        grid-column: 1 / -1;  /* Makes the first button span the entire row */
    }

    .footer-buttons.index > *:nth-child(2),
    .footer-buttons.index > *:nth-child(3) {
        grid-row: 2;  /* Places the second and third buttons on the second row */
    }

    .footer-buttons.index > *:nth-child(4),
    .footer-buttons.index > *:nth-child(5) {
        grid-row: 3;  /* Places the fourth and fifth buttons on the third row */
    }
    
    /* Small Buttons */
    .button {
        padding: 20px 24px;
        border-radius: 15px;
        font-size: 18px;
        line-height: 18px;
        letter-spacing: -0.18px;
        gap: 10px;
    }

    .back-button {
        gap: 0;
        padding: 20px 26px 20px 18px;
        min-width: unset;
    }

    .back-button .button-content {
        padding-right: 4px;
    }

    .primary {
        width: 100%;
        border-radius: 17px;
        padding: 24px 56px;
        order: 2;
    }

    @media (hover: hover) {
        .primary:hover {
            box-shadow: 0px 2px 40px 1px rgba(107, 251, 104, 0.20), 0px 5px 36px 0px #67FB64 inset;
        }
    }

    .secondary {
        width: 100%;
        border-radius: 17px;
        padding: 24px 56px;
        order: 1;
    }

    .footer-buttons.index .tertiary {
        width: 100%;
    }

    .tertiary .svg {
        width: 20px;
        height: 20px;
    }

    .blog-year {
        font-size: 14px;
        line-height: 14px;
        letter-spacing: 0.7px;
    }

    .blog-title {
        font-size: 30px;
        line-height: 42px;
        letter-spacing: -0.56px;
    }

    .blog-container {
        gap: 64px;
    }

    .blog-content {
        gap: 40px;
    }

    .blog-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    .post-list {
        padding-top: 28px;
        gap: 32px;
    }
    
    .post-item {
        grid-template-columns: 48px 1fr;
        padding: 0px 0px;
        border-radius: 0px;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
    }

    @media (hover: hover) {
        .post-item:hover {
            background: none;
        }
    }

    .post-page .blog-subtitle {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -0.14px;
    }

    .post-title {
        font-size: 18px;
        line-height: 24px;
        letter-spacing: -0.18px;
        padding-top: 4px;
    }

    .post-excerpt {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -0.14px;
        /* Fill available width on mobile */
        width: 100%;
        max-inline-size: 100%;
    }

    .post-date {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }
    
    .blog-page footer {
        padding: 16px 0 24px;
    }

    .blog-page footer::before {
        top: -64px;
        right: 0;
        left: 0;
        bottom: 0;
    }
    
    .blog-page .footer-buttons {
        padding: 0 16px;
        gap: 4px;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .blog-page .footer-buttons .button {
        width: 100%;
        gap: 6px;
    }

    .post-title::after {
        display: none;
        content: '';
        opacity: 0 !important;
        transform: translateY(-50%) translateX(4px) scale(0.92) !important;
      }
    
      /* Prevent revealing the arrow via hover on containers/titles */
      @media (hover: hover) {
        .post-title:hover::after,
        .post-item:hover .post-title::after {
          display: none !important;
          opacity: 0 !important;
        }
      }

    /* Subscribe page mobile styles */
    .subscribe-container {
        gap: 48px;
        padding-bottom: 100px;
    }

    .email-label {
        font-size: 15px;
        line-height: 20px;
        letter-spacing: -0.45px;
        padding-left: 16px;
    }

    .subscribe-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px;
        border-radius: 24px;
    }

    .subscribe-input {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.16px;
        padding: 16px 8px;
        min-height: 60px;
    }

    .subscribe-button {
        width: 100%;
        font-size: 16px;
        line-height: 16px;
        letter-spacing: -0.16px;
        padding: 20px 32px;
        border-radius: 17px;
    }

    .messages-container {
        min-height: 46px;
    }

    .message {
        font-family: "Geist Mono", monospace;
        font-size: 12px;
        line-height: 18px;
        letter-spacing: -0.12px;
        padding: 12px 18px;
        border-radius: 14px;
    }

    .subscribe-page footer {
        padding: 16px 0 24px;
    }

    .subscribe-page .footer-buttons {
        padding: 0 16px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .subscribe-page .footer-buttons .button {
        width: 100%;
    }

    /* Post content mobile styles - first breakpoint */
    .post-content-body {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.16px;
    }

    .post-content-body p {
        margin: 0 0 24px 0;
    }

    .post-content-body h2 {
        font-size: 20px;
        font-weight: 600;
        line-height: 32px;
        letter-spacing: -0.2px;
        margin: 36px 0 6px 0;
    }

    .post-content-body h3 {
        font-size: 18px;
        font-weight: 500;
        line-height: 28px;
        letter-spacing: -0.18px;
        margin: 32px 0 6px 0;
    }

    .post-content-body ul,
    .post-content-body ol {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.16px;
        padding-left: 20px;
        margin: 0 0 24px 0;
    }

    .post-content-body blockquote {
        padding: 20px;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.16px;
        margin: 24px 0;
    }

    .post-content-body code {
        font-size: 14px;
    }

    .post-content-body pre {
        padding: 20px;
        font-size: 14px;
        line-height: 20px;
        margin: 24px 0;
    }

    .post-content-body img {
        margin: 28px 0;
    }

    .post-content-body hr {
        margin: 36px 0;
    }

}

@media (min-width: 412px) and (max-width: 432px) {

    header, footer, main {
        padding: 24px 24px;
    }
    
    .about-text {
        margin-left: 2px;
        margin-right: 2px;
    }
}

@media (min-width: 412px) and (max-width: 680px) {
    .blog-year {
        font-size: 14px;
        line-height: 14px;
        letter-spacing: 0.7px;
    }

    .blog-title {
        font-size: 30px;
        line-height: 42px;
        letter-spacing: -0.56px;
    }

    .blog-container {
        gap: 64px;
    }

    .blog-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    .post-list {
        padding-top: 28px;
        gap: 40px;
    }
    
    .post-item {
        grid-template-columns: 48px 1fr;
        padding: 0px 0px;
        border-radius: 0px;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
    }

    @media (hover: hover) {
        .post-item:hover {
            background: none;
        }
    }

    .post-title {
        font-size: 18px;
        line-height: 24px;
        letter-spacing: -0.18px;
        padding-top: 4px;
    }

    .post-excerpt {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -0.14px;
        /* Fill available width on tablet */
        width: 100%;
        max-inline-size: 100%;
    }

    .post-date {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }
    
    .blog-page footer {
        padding: 16px 0 24px;
    }

    .blog-page footer::before {
        top: -64px;
        right: 0;
        left: 0;
        bottom: 0;
    }

    .post-title::after {
        display: none;
        content: '';
        opacity: 0 !important;
        transform: translateY(-50%) translateX(4px) scale(0.92) !important;
      }
    
      /* Prevent revealing the arrow via hover on containers/titles */
      @media (hover: hover) {
        .post-title:hover::after,
        .post-item:hover .post-title::after {
          display: none !important;
          opacity: 0 !important;
        }
      }

    /* Post content mobile styles - second breakpoint */
    .post-content-body {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.16px;
    }

    .post-content-body p {
        margin: 0 0 24px 0;
    }

    .post-content-body h2 {
        font-size: 20px;
        font-weight: 600;
        line-height: 36px;
        letter-spacing: -0.2px;
        margin: 36px 0 6px 0;
    }

    .post-content-body h3 {
        font-size: 18px;
        font-weight: 500;
        line-height: 32px;
        letter-spacing: -0.18px;
        margin: 32px 0 6px 0;
    }

    .post-content-body ul,
    .post-content-body ol {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.16px;
        padding-left: 20px;
        margin: 0 0 24px 0;
    }

    .post-content-body blockquote {
        padding: 20px;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.16px;
        margin: 24px 0;
    }

    .post-content-body code {
        font-size: 14px;
    }

    .post-content-body pre {
        padding: 20px;
        font-size: 14px;
        line-height: 20px;
        margin: 24px 0;
    }

    .post-content-body img {
        margin: 28px 0;
    }

    .post-content-body hr {
        margin: 36px 0;
    }

    /* Subscribe page mobile/tablet styles */
    .subscribe-container {
        gap: 48px;
        padding-bottom: 100px;
    }

    .subscribe-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px;
        border-radius: 24px;
    }

    .subscribe-input {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.16px;
    }

    .subscribe-button {
        width: 100%;
        font-size: 16px;
        line-height: 16px;
        letter-spacing: -0.16px;
        padding: 20px 32px;
        border-radius: 17px;
    }

    .messages-container {
        min-height: 46px;
    }

    .message {
        font-family: "Geist Mono", monospace;
        font-size: 12px;
        line-height: 18px;
        letter-spacing: -0.12px;
        padding: 12px 18px;
        border-radius: 14px;
    }
}

@media (min-width: 432px) and (max-width: 1366px) {

    header, footer, main {
        padding: 48px 40px;
    }
    
    /* Main */
    .about-container {
        padding-bottom: 0;
    }
    
    .about-text {
        margin-bottom: 32px;
        font-size: 30px;
        line-height: 46px;
        letter-spacing: -0.6px;
    }

    .blog-header {
        gap: 10px;
    }

    .blog-title {
        font-size: 30px;
        line-height: 46px;
        letter-spacing: -0.6px;
    }

    .blog-subtitle {
        font-size: 18px;
        line-height: 24px;
        letter-spacing: -0.18px;
    }

    .blog-year {
        font-size: 14px;
        line-height: 14px;
        letter-spacing: 0.7px;
    }
    
    .post-title {
        font-size: 18px;
        line-height: 24px;
        letter-spacing: -0.18px;
    }

    .post-excerpt {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -0.14px;
        /* Fill available width */
        width: 100%;
        max-inline-size: 100%;
    }
    
    
    /* Buttons */
    .primary {
        /* Small Buttons */
        width: 194px;
        border-radius: 17px;
        padding: 24px 56px;
        font-size: 18px;
        line-height: 18px;
        letter-spacing: -0.18px;
        
    }

    @media (hover: hover) {
        .primary:hover {
            box-shadow: 0px 2px 40px 1px rgba(107, 251, 104, 0.20), 0px 5px 36px 0px #67FB64 inset;
        }
    }

    .secondary {
        /* Small Buttons */
        width: 194px;
        border-radius: 17px;
        padding: 24px 56px;
        font-size: 18px;
        line-height: 18px;
        letter-spacing: -0.18px;
    }

    .blog-page .footer-buttons {
        padding: 0px 40px;
    }

    /* Subscribe page tablet styles */
    .subscribe-container {
        gap: 64px;
    }

    .email-label {
        font-size: 17px;
        line-height: 24px;
        letter-spacing: -0.51px;
        padding-left: 24px;
    }

    .subscribe-button {
        font-size: 16px;
        line-height: 16px;
        letter-spacing: -0.16px;
        padding: 20px 40px;
    }

    .messages-container {
        min-height: 54px;
    }

    .subscribe-page .footer-buttons {
        padding: 0 40px;
    }

    /* Post content medium styles */
    .post-content-body {
        font-size: 17px;
        line-height: 26px;
        letter-spacing: -0.17px;
    }

    .post-content-body p {
        margin: 0 0 26px 0;
    }

    .post-content-body h2 {
        font-size: 22px;
        font-weight: 600;
        line-height: 38px;
        letter-spacing: -0.22px;
        margin: 42px 0 8px 0;
    }

    .post-content-body h3 {
        font-size: 19px;
        font-weight: 500;
        line-height: 34px;
        letter-spacing: -0.19px;
        margin: 36px 0 8px 0;
    }

    .post-content-body ul,
    .post-content-body ol {
        font-size: 17px;
        line-height: 26px;
        letter-spacing: -0.17px;
        padding-left: 22px;
        margin: 0 0 26px 0;
    }

    .post-content-body blockquote {
        padding: 22px;
        font-size: 17px;
        line-height: 26px;
        letter-spacing: -0.17px;
        margin: 26px 0;
    }

    .post-content-body code {
        font-size: 15px;
    }

    .post-content-body pre {
        padding: 22px;
        font-size: 15px;
        line-height: 22px;
        margin: 26px 0;
    }

    .post-content-body img {
        margin: 30px 0;
    }

    .post-content-body hr {
        margin: 42px 0;
    }
}

@media (max-width: 760px) {
.br2 {
display: none;
}
}

@media (min-width: 1460px) and (max-width: 2564px) {
    .post-item {
        max-width: 35%;
    }
}

@media (min-width: 3840px) {

    header, footer, main {
        padding: 72px 96px;
    }

    /* Header */
    .user-profile {
        gap: 36px;
    }
    
    /* JSON */
    #user-avatar {
        height: 112px;
    }
    
    .user-info {
        gap: 18px;
    }

    .user-name {
        /* Large/Subheading */
        font-size: 40px;
        line-height: 40px;
        letter-spacing: -0.4px;
    }

    .user-description {
        /* Large/Button */
        font-size: 32px;
        line-height: 32px;
        letter-spacing: -0.32px;
    }

    /* Main */
    .about-container {
        padding-bottom: 104px;
    }

    .about-text {
        margin-bottom: 64px;

        /* Large/Heading */
        font-size: 56px;
        line-height: 76px;
        letter-spacing: -1.12px;
    }

    /* Large Buttons */
    .button {
        padding: 30px 36px;
        border-radius: 25px;
        font-size: 32px;
        line-height: 32px;
        letter-spacing: -0.32px;
        gap: 20px;
    }

    .primary {
        width: 302px;
        height: 116px;
        border-radius: 28px;
        padding: 42px 84px;
    }

    @media (hover: hover) {
        .primary:hover {
            box-shadow: 0px 2px 40px 1px rgba(107, 255, 127, 0.20), 0px 5px 36px 0px #67FB64 inset;
        }
    }

    .secondary {
        width: 302px;
        height: 116px;
        border-radius: 28px;
        padding: 42px 84px;
    }

    .tertiary .svg {
        width: 36px;
        height: 36px;
    }
    
    .post-item {
        max-width: 20%;
    }
}