/*
 * Phosphor Grid — brutalist, terminal-flavored design system.
 *
 * One font (IBM Plex Mono), one accent (#00E67A), 1px #1C231E grid lines
 * partitioning every section. Border radius 0 everywhere, no shadows.
 * Shared borders: cells own their bottom/right edge only — never both
 * sides of the same line.
 */

:root {
  --bg: #050605;
  --panel: #10140F;
  --grid: #1C231E;
  --text-hi: #E4EFE8;
  --text: #B8C4BC;
  --text-body: #AEB9B2;
  --text-mid: #8A968E;
  --text-low: #7E8A82;
  --text-faint: #5A665E;
  --text-ghost: #3B453F;
  --accent: #00E67A;
  --accent-hover: #33FF9E;
  --on-accent: #050605;
  --row-title: #CDD8D1;
  --snap: background-color 120ms linear, color 120ms linear, border-color 120ms linear;

  /* legacy aliases still referenced by content styles */
  --bg-secondary: var(--panel);
  --bg-tertiary: #151A14;
  --text-secondary: var(--text-body);
  --text-muted: var(--text-faint);
  --border: var(--grid);
  --border-light: #2A332C;
  --code-bg: var(--panel);
  --code-border: var(--grid);
  --warning: #f1fa8c;
  --info: #8be9fd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  transition: var(--snap);
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* ============================================
   Frame — the 1160px grid column
   ============================================ */

.pg-frame {
  max-width: 1160px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pg-frame > main {
  flex: 1;
}

/* ============================================
   Header: top strip + nav
   ============================================ */

.pg-topstrip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--grid);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.pg-nav {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--grid);
}

.pg-nav-name {
  display: block;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-hi);
  border-right: 1px solid var(--grid);
  text-decoration: none;
}

.pg-nav-links {
  display: flex;
  flex-wrap: wrap;
}

.pg-nav-links a,
.pg-nav-links button {
  display: block;
  padding: 16px 22px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  border: none;
  border-right: 1px solid var(--grid);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: var(--snap);
}

.pg-nav-links a:hover,
.pg-nav-links button:hover {
  color: var(--text-hi);
}

.pg-nav-links form {
  display: contents;
}

.pg-nav-links .pg-nav-blog {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-right: none;
}

.pg-nav-links .pg-nav-blog:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

/* ============================================
   Section header strip — "NN / SECTION NAME"
   ============================================ */

.pg-section {
  border-bottom: 1px solid var(--grid);
}

.pg-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--grid);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.pg-section-head a {
  color: var(--accent);
  text-decoration: none;
}

.pg-section-head a:hover {
  color: var(--accent-hover);
}

/* ============================================
   Hero
   ============================================ */

.pg-hero {
  border-bottom: 1px solid var(--grid);
}

.pg-hero-main {
  padding: 64px 24px 56px;
}

.pg-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 26px;
  text-transform: uppercase;
}

.pg-hero-main h1 {
  font-size: 58px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  text-transform: uppercase;
}

.pg-hero-main h1 .accent {
  color: var(--accent);
}

.pg-hero-main p {
  margin-top: 30px;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-low);
}

.pg-btns {
  display: flex;
  gap: 1px;
  margin-top: 40px;
  background: var(--grid);
  border: 1px solid var(--grid);
  width: fit-content;
}

.pg-btn-primary,
.pg-btn-secondary {
  display: inline-block;
  padding: 14px 26px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: var(--snap);
}

.pg-btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.pg-btn-primary:hover {
  background: var(--accent-hover);
}

.pg-btn-secondary {
  background: var(--bg);
  color: var(--text);
}

.pg-btn-secondary:hover {
  color: var(--text-hi);
}

/* ============================================
   01 / Currently building
   ============================================ */

.pg-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pg-project {
  padding: 36px 24px;
  border-right: 1px solid var(--grid);
}

.pg-project:last-child {
  border-right: none;
}

.pg-project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.pg-project-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-hi);
  text-transform: uppercase;
}

.pg-project-url {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}

.pg-project-url:hover {
  color: var(--accent-hover);
}

.pg-project p {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-low);
}

.pg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.pg-chip {
  background: var(--panel);
  border: 1px solid var(--grid);
  padding: 4px 10px;
  color: var(--text-mid);
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--snap);
}

a.pg-chip:hover {
  color: var(--accent);
}

/* ============================================
   02 / Proof of work
   ============================================ */

.pg-proof-row {
  display: grid;
  grid-template-columns: 60px 160px 1fr;
  border-bottom: 1px solid var(--grid);
}

.pg-proof-row:last-child {
  border-bottom: none;
}

.pg-proof-index {
  padding: 20px 0 20px 24px;
  font-size: 11px;
  color: var(--text-ghost);
}

.pg-proof-label {
  padding: 20px 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.pg-proof-label.is-muted {
  color: var(--text-faint);
}

.pg-proof-text {
  padding: 20px 24px 20px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
}

.pg-proof-row.is-muted .pg-proof-text {
  color: var(--text-low);
}

.pg-link {
  color: var(--text-hi);
  border-bottom: 1px solid var(--accent);
  text-decoration: none;
}

.pg-link:hover {
  color: var(--accent);
}

/* ============================================
   03 / Writing rows
   ============================================ */

.pg-writing-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--grid);
  text-decoration: none;
}

.pg-writing-row:last-child {
  border-bottom: none;
}

.pg-writing-date {
  padding: 18px 0 18px 24px;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg-writing-title {
  padding: 18px 24px 18px 0;
  font-size: 13px;
  color: var(--row-title);
  transition: var(--snap);
}

.pg-writing-row:hover .pg-writing-title {
  color: var(--accent);
}

/* ============================================
   04 / About + 05 / Contact
   ============================================ */

.pg-duo {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-bottom: 1px solid var(--grid);
}

.pg-duo-main {
  border-right: 1px solid var(--grid);
}

.pg-about-body {
  display: flex;
  gap: 24px;
  padding: 32px 24px;
  align-items: flex-start;
}

.pg-portrait {
  width: 96px;
  height: 96px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  border: 1px solid var(--grid);
}

.pg-about-body p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-low);
}

.pg-accent-link {
  color: var(--accent);
  text-decoration: none;
}

.pg-accent-link:hover {
  color: var(--accent-hover);
}

.pg-contact-links {
  display: flex;
  flex-direction: column;
}

.pg-contact-links a {
  padding: 20px 24px;
  border-bottom: 1px solid var(--grid);
  font-size: 12px;
  color: var(--row-title);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.pg-contact-links a:last-child {
  border-bottom: none;
}

.pg-contact-links a:hover {
  background: var(--panel);
}

/* ============================================
   Footer
   ============================================ */

.pg-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-ghost);
  text-transform: uppercase;
}

/* ============================================
   Blog index
   ============================================ */

.pg-blog-title {
  padding: 48px 24px;
  border-bottom: 1px solid var(--grid);
}

.pg-blog-title h1 {
  font-size: 38px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  text-transform: uppercase;
}

.pg-blog-title p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-low);
  max-width: 520px;
}

.pg-filter-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--grid);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.pg-filter-strip .pg-chip {
  color: var(--accent);
}

.pg-post-row {
  display: block;
  padding: 28px 24px;
  border-bottom: 1px solid var(--grid);
}

.pg-post-row:last-child {
  border-bottom: none;
}

.pg-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.pg-post-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.pg-post-title a {
  color: var(--text-hi);
  text-decoration: none;
}

.pg-post-title a:hover {
  color: var(--accent);
}

.pg-post-excerpt {
  margin-top: 10px;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-low);
}

.pg-post-actions {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.pg-post-actions a,
.pg-post-actions button {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--snap);
}

.pg-post-actions a:hover,
.pg-post-actions button:hover {
  color: var(--accent-hover);
}

/* ============================================
   Article (post show)
   ============================================ */

.pg-article-head {
  padding: 48px 24px 40px;
  border-bottom: 1px solid var(--grid);
}

.pg-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.pg-article-meta .accent {
  color: var(--accent);
}

.pg-article-title {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-hi);
  text-transform: uppercase;
  max-width: 900px;
}

.pg-article-cover {
  margin-top: 32px;
}

.pg-article-cover img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--grid);
}

.pg-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.article-content {
  padding: 48px 24px;
  border-bottom: 1px solid var(--grid);
}

.article-content > * {
  max-width: 760px;
}

.article-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 48px 0 20px;
  color: var(--text-hi);
  text-transform: uppercase;
  border-bottom: 1px solid var(--grid);
  padding-bottom: 12px;
}

.article-content h2::before {
  content: '## ';
  color: var(--accent);
}

.article-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text-hi);
  text-transform: uppercase;
}

.article-content h3::before {
  content: '### ';
  color: var(--accent);
}

.article-content p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 22px;
  color: var(--text-body);
}

.article-content ul,
.article-content ol {
  margin: 22px 0;
  padding-left: 24px;
}

.article-content li {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--text-body);
}

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

.article-content blockquote {
  background: var(--panel);
  border: 1px solid var(--grid);
  border-left: 2px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
}

.article-content blockquote p {
  color: var(--text);
  margin-bottom: 0;
}

.article-content img {
  width: 100%;
  height: auto;
  border: 1px solid var(--grid);
  margin: 32px 0;
}

.article-content a {
  color: var(--text-hi);
  border-bottom: 1px solid var(--accent);
  text-decoration: none;
}

.article-content a:hover {
  color: var(--accent);
}

.article-content strong {
  color: var(--text-hi);
}

/* Content tables (markdown tables in posts) */

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 13px;
  border: 1px solid var(--grid);
}

.article-content table th,
.article-content table td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--grid);
  vertical-align: top;
}

.article-content table th {
  color: var(--text-hi);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-content table td {
  color: var(--text-body);
}

/* ============================================
   Code blocks
   ============================================ */

pre {
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  overflow-x: auto;
}

code {
  font-family: inherit;
}

/* Inline code */
.article-content code:not(pre code) {
  background: var(--panel);
  border: 1px solid var(--grid);
  color: var(--accent);
  padding: 2px 6px;
  font-size: 0.92em;
}

/* Kramdown/Rouge code block container */
.article-content [class^="language-"],
.article-content .highlighter-rouge {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  margin: 32px 0;
  padding: 20px 24px;
  overflow-x: auto;
}

.article-content .highlight {
  margin: 0;
}

/* Rouge line-number tables inside code blocks keep their own compact look */
.article-content .highlight table {
  width: auto;
  margin: 0;
  border: none;
}

.article-content .highlight table th,
.article-content .highlight table td {
  border-bottom: none;
  padding: 5px;
}

/* Hide scrollbars for code blocks */
.highlight pre {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.highlight pre::-webkit-scrollbar {
  display: none;
}

/* ============================================
   Rouge Syntax Highlighting (base16.dark)
   ============================================ */

.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight, .highlight .w {
  color: #d8d8d8;
}
.highlight .err {
  color: #181818;
  background-color: #ab4642;
}
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
  color: #585858;
}
.highlight .cp {
  color: #f7ca88;
}
.highlight .nt {
  color: #f7ca88;
}
.highlight .o, .highlight .ow {
  color: #d8d8d8;
}
.highlight .p, .highlight .pi {
  color: #d8d8d8;
}
.highlight .gi {
  color: #a1b56c;
}
.highlight .gd {
  color: #ab4642;
}
.highlight .gh {
  color: #7cafc2;
  background-color: #181818;
  font-weight: bold;
}
.highlight .ge {
  font-style: italic;
}
.highlight .ges {
  font-weight: bold;
  font-style: italic;
}
.highlight .gs {
  font-weight: bold;
}
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
  color: #ba8baf;
}
.highlight .kc {
  color: #dc9656;
}
.highlight .kt {
  color: #dc9656;
}
.highlight .kd {
  color: #dc9656;
}
.highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
  color: #a1b56c;
}
.highlight .sa {
  color: #ba8baf;
}
.highlight .sr {
  color: #86c1b9;
}
.highlight .si {
  color: #a16946;
}
.highlight .se {
  color: #a16946;
}
.highlight .nn {
  color: #f7ca88;
}
.highlight .nc {
  color: #f7ca88;
}
.highlight .no {
  color: #f7ca88;
}
.highlight .na {
  color: #7cafc2;
}
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
  color: #a1b56c;
}
.highlight .ss {
  color: #a1b56c;
}

/* ============================================
   Author box + article nav
   ============================================ */

.author-box {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 28px 24px;
  border-bottom: 1px solid var(--grid);
}

.author-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  border: 1px solid var(--grid);
  flex-shrink: 0;
}

.author-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-hi);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.author-bio {
  color: var(--text-low);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.author-box .pg-accent-link {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pg-article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--grid);
}

.pg-article-nav-cell {
  display: block;
  padding: 20px 24px;
  border-right: 1px solid var(--grid);
  text-decoration: none;
  transition: var(--snap);
}

.pg-article-nav-cell:last-child,
.pg-article-nav > :last-child {
  border-right: none;
}

.pg-article-nav-cell:hover {
  background: var(--panel);
}

.pg-article-nav-cell.is-next {
  text-align: right;
}

.pg-article-nav-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pg-article-nav-title {
  font-size: 13px;
  color: var(--row-title);
  line-height: 1.5;
}

.pg-article-nav-cell:hover .pg-article-nav-title {
  color: var(--accent);
}

.pg-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--grid);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.pg-article-actions a,
.pg-article-actions button {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--snap);
}

.pg-article-actions a:hover,
.pg-article-actions button:hover {
  color: var(--accent-hover);
}

/* ============================================
   Forms / auth pages
   ============================================ */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 24px;
}

.auth-form {
  background: var(--bg);
  border: 1px solid var(--grid);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.auth-form.wide {
  max-width: 900px;
}

.auth-title {
  margin-bottom: 28px;
  color: var(--text-hi);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--grid);
  border-radius: 0;
  background: var(--panel);
  color: var(--text-hi);
  font-family: inherit;
  font-size: 13px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

.btn,
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid var(--grid);
  border-radius: 0;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--snap);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
}

.btn-secondary:hover {
  color: var(--text-hi);
  border-color: var(--border-light);
}

.auth-links {
  margin-top: 24px;
  font-size: 12px;
}

.link {
  color: var(--accent);
  text-decoration: none;
}

.link:hover {
  color: var(--accent-hover);
}

.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 12px;
  border: 1px solid var(--grid);
}

.alert-error {
  border-color: rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
}

.alert-success {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   Toast notification
   ============================================ */

.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--accent);
  padding: 14px 24px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.04em;
  z-index: 9999;
  animation: toast-in 0.15s linear, toast-out 0.15s linear 3.7s forwards;
  cursor: pointer;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(-12px); }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .pg-projects {
    grid-template-columns: 1fr;
  }

  .pg-project {
    border-right: none;
    border-bottom: 1px solid var(--grid);
  }

  .pg-project:last-child {
    border-bottom: none;
  }

  .pg-duo {
    grid-template-columns: 1fr;
  }

  .pg-duo-main {
    border-right: none;
    border-bottom: 1px solid var(--grid);
  }

  .pg-proof-row {
    grid-template-columns: 60px 120px 1fr;
  }
}

@media (max-width: 600px) {
  .pg-hero-main h1 {
    font-size: 38px;
  }

  .pg-hero-main {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .pg-topstrip .hide-mobile {
    display: none;
  }

  .pg-nav {
    grid-template-columns: 1fr;
  }

  .pg-nav-name {
    border-right: none;
    border-bottom: 1px solid var(--grid);
  }

  .pg-nav-links a,
  .pg-nav-links button {
    padding: 14px 16px;
    flex: 1;
    text-align: center;
  }

  .pg-proof-row {
    grid-template-columns: 60px 1fr;
  }

  .pg-proof-text {
    grid-column: 1 / -1;
    padding: 0 24px 20px;
  }

  .pg-writing-row {
    grid-template-columns: 80px 1fr;
  }

  .pg-about-body {
    flex-direction: column;
  }

  .pg-article-nav {
    grid-template-columns: 1fr;
  }

  .pg-article-nav-cell {
    border-right: none;
    border-bottom: 1px solid var(--grid);
  }

  .pg-article-nav > :last-child {
    border-bottom: none;
  }

  .pg-article-nav-cell.is-next {
    text-align: left;
  }

  .pg-article-title {
    font-size: 24px;
  }

  .pg-footer {
    flex-direction: column;
    gap: 4px;
  }

  .auth-form {
    padding: 24px;
  }
}
