  ::selection {
    background: rgba(139, 1, 1, 0.55);
    color: var(--white);
  }
  .page {
    min-height: 100vh;
    min-height: 100svh;
    max-width: 1360px;
    margin: 0 auto;
    padding: 12vh 6vw 10vh;
  }
  @media (max-width: 480px) {
    .page { padding: 9vh 5vw 8vh; }
    .archive a { flex-direction: column; gap: 0.3em; }
    .archive time { margin-left: 0; }
  }
  .page-head {
    text-align: center;
    margin-bottom: 7vh;
  }
  .mark {
    width: 28px;
    height: 1px;
    background: var(--red);
    margin: 0 auto 1.4em;
    opacity: 0.8;
  }
  @font-face {
    font-family: 'amali';
    src: url('../fonts/amali.ttf') format('truetype');
  }
  .page-head h1 {
    font-family: 'ChronoType', 'Anthropic Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
  }
  .page-head p {
    font-family: 'NDS12', 'Anthropic Sans', sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
  }

  .archive { margin: 0; padding: 0; list-style: none; }
  .archive li {
    padding: 1.4em 12px;
    margin: 0 -12px;
    border-bottom: 1px solid rgba(236, 236, 241, 0.08);
    transition: background 0.25s;
  }
  .archive li:hover { background: rgba(236, 236, 241, 0.02); }
  .archive li:first-child { border-top: 1px solid rgba(236, 236, 241, 0.08); }
  .archive a {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 1em;
  }
  .archive .t {
    font-family: 'ChronoType', 'Anthropic Sans', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--white);
    margin: 0;
    transition: color 0.25s;
  }
  .archive a:hover .t { color: var(--red); }
  .archive .d {
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0.4em 0 0;
  }
  .archive time {
    font-family: 'tewi', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: var(--gray);
    margin-left: auto;
    white-space: nowrap;
  }
  .archive .sample-tag {
    font-family: 'tewi', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--red);
    border: 1px solid rgba(139, 1, 1, 0.5);
    padding: 1px 7px;
    margin-left: 10px;
    vertical-align: middle;
  }

  .post-head { text-align: center; margin-bottom: 6vh; }
  .post-head h1 {
    font-family: 'ChronoType', 'Anthropic Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 0.6em;
  }
  .post-head .sub {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0 0 1em;
  }
  .post-head time {
    font-family: 'tewi', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: var(--gray);
  }
  .post-head .tag {
    font-family: 'tewi', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--red);
    border: 1px solid rgba(139, 1, 1, 0.5);
    padding: 1px 7px;
    margin-left: 10px;
    vertical-align: middle;
  }

  .post-body {
    max-width: 100ch;
    margin: 0 auto;
  }
  .post-body p {
    font-weight: 300;
    font-size: 1.03rem;
    line-height: 1.85;
    color: rgba(236, 236, 241, 0.92);
    margin: 0 0 1.4em;
  }
  .post-body > p:first-of-type { font-size: 1.12em; }
  .post-body .command {
    display: block;
    font-family: 'tewi', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--white);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(236, 236, 241, 0.12);
    border-left: 2px solid var(--red);
    padding: 0.8em 1em;
    margin: 0 0 1.4em;
    overflow-wrap: anywhere;
  }
  .post-body .command::before {
    content: '$ ';
    color: var(--red);
  }
  .post-body .sinhala {
    font-family: 'amali', serif;
    font-size: 1.35rem;
    line-height: 1.9;
  }
  .post-body .english {
    font-family: 'Anthropic Sans', sans-serif;
    font-size: 0.8em;
  }
  .post-body .imggallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 1.8em 0;
  }
  .post-body .imggallery .postimg {
    width: 100%;
    max-width: 230px;
    height: auto;
  }
  .post-body h2 {
    font-family: 'ChronoType', 'Anthropic Sans', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    margin: 2.2em 0 0.8em;
  }
  .post-body h3 {
    font-family: 'ChronoType', 'Anthropic Sans', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    margin: 1.8em 0 0.6em;
  }
  .post-body a {
    color: var(--red);
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 1, 1, 0.4);
    overflow-wrap: anywhere;
  }
  .post-body a:hover { border-bottom-color: var(--red); }
  .post-body blockquote {
    margin: 1.6em 0;
    padding: 0.2em 0 0.2em 1.2em;
    border-left: 1px solid var(--red);
    color: var(--gray);
    font-style: italic;
  }
  .post-body blockquote p { color: var(--gray); margin: 0; }
  .post-body code {
    font-family: 'tewi', ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.85em;
    color: var(--white);
    background: rgba(236, 236, 241, 0.07);
    border: 1px solid rgba(236, 236, 241, 0.09);
    padding: 0.15em 0.45em;
    overflow-wrap: anywhere;
  }
  .post-body pre {
    background: rgba(236, 236, 241, 0.04);
    border: 1px solid rgba(236, 236, 241, 0.09);
    padding: 1.2em 1.4em;
    overflow-x: auto;
    margin: 1.6em 0;
  }
  .post-body pre code {
    background: none;
    border: none;
    padding: 0;
  }
  .post-body ul, .post-body ol {
    font-weight: 300;
    line-height: 1.85;
    color: rgba(236, 236, 241, 0.92);
    padding-left: 1.4em;
    margin: 0 0 1.4em;
  }
  .post-body li { margin-bottom: 0.4em; }
  .post-body li::marker { color: var(--red); }
  .post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.6em auto;
    border: 1px solid rgba(236, 236, 241, 0.14);
  }

  .post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    margin-top: 8vh;
    padding-top: 2em;
    border-top: 1px solid rgba(236, 236, 241, 0.08);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }
  .post-nav a {
    color: var(--gray);
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 1, 1, 0.4);
    transition: color 0.25s;
  }
  .post-nav a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
  }
  .page-foot {
    margin-top: 9vh;
    text-align: center;
  }
  .page-foot a {
    color: var(--gray);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 1, 1, 0.4);
    transition: color 0.25s;
  }
  .page-foot a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
  }
