:root {
  /* antigravity.google/blog editorial token system */
  --surface: #ffffff;
  --surface-subtle: #f8f9fc;
  --surface-bar: #f8f9fa;
  --surface-pill: #f1f3f4;
  --surface-hover: #f0f1f5;

  --ink: #121317;
  --ink-heading: #121317;
  --ink-secondary: #121317;
  --ink-muted: #6a6a71;
  --ink-soft: rgba(18, 19, 23, 0.42);
  --ink-dot: #9aa0a6;

  --divider: rgba(33, 34, 38, 0.07);
  --outline: rgba(33, 34, 38, 0.12);
  --bar-bottom: rgba(18, 19, 23, 0.11);

  --blue: #3186ff;
  --blue-strong: #1a73e8;
  --blue-hover: #1557b0;
  --focus-ring: rgba(50, 121, 249, 0.38);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-pill: 9999px;

  --font-sans: "Google Sans Flex", "Google Sans", "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Google Sans Code", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

::selection { background: rgba(49, 134, 255, 0.16); color: var(--ink); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ======================================================
   TOP NAVBAR
   ====================================================== */
.ag-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.ag-nav {
  max-width: 1320px;
  height: 64px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 54% 48%;
  border: 1px solid var(--divider);
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 430;
  letter-spacing: 0.01em;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: var(--surface-pill);
  color: var(--ink);
}

.nav-link.active {
  background: var(--surface-pill);
  color: var(--ink);
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Antigravity Signature Pill Buttons: unified 44px height */
.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 450;
  letter-spacing: 0.01em;
  padding: 0 22px;
  line-height: 1;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.ag-btn-dark {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}
.ag-btn-dark:hover { background: #262830; border-color: #262830; }

.ag-btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid var(--outline);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ag-btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(33, 34, 38, 0.2);
}

.ag-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--outline);
}
.ag-btn-outline:hover { background: var(--surface-pill); }

.ag-btn-lg {
  height: 44px;
  font-size: 15.5px;
  padding: 0 24px;
}

.ag-btn .arrow {
  display: inline-block;
  transition: transform 0.18s var(--ease);
}
.ag-btn:hover .arrow { transform: translateX(2.5px); }

/* Layout container */
.page-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  flex: 1;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--surface-pill);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0.01em;
}

.meta-dot { color: var(--ink-dot); }

.inline-blue-link {
  color: var(--blue-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(26, 115, 232, 0.35);
  transition: color 0.15s, text-decoration-color 0.15s;
}
.inline-blue-link:hover {
  color: var(--blue-hover);
  text-decoration-color: var(--blue-hover);
}

/* ======================================================
   HOMEPAGE: FULL-BLEED TOP PERSONAL HERO WITH PARTICLES
   ====================================================== */
.personal-hero-band {
  position: relative;
  width: 100%;
  min-height: clamp(460px, 64vh, 620px);
  background: #ffffff;
  border-bottom: 1px solid var(--divider);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.personal-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 68px 48px 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-h1 {
  font-size: clamp(54px, 6.2vw, 78px);
  font-weight: 450;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-slogan {
  font-size: clamp(16px, 1.65vw, 19px);
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Antigravity-style right-side rounded-rectangle photo showcase ("我家的阿毛") */
.amao-showcase {
  width: 100%;
  max-width: 580px;
  justify-self: end;
}

.amao-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-subtle);
  border: 1px solid rgba(18, 19, 23, 0.08);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.86), 0 14px 36px rgba(18, 19, 23, 0.08);
  user-select: none;
}

.amao-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.32s ease, transform 0.55s var(--ease);
  pointer-events: none;
}

.amao-slide.active {
  opacity: 1;
}

.amao-frame:hover .amao-slide.active {
  transform: scale(1.018);
}

@media (prefers-reduced-motion: reduce) {
  .amao-slide { transition: none; }
  .amao-frame:hover .amao-slide.active { transform: none; }
}

.amao-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(18, 19, 23, 0.10);
  box-shadow: 0 4px 12px rgba(18, 19, 23, 0.12);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background-color 0.16s ease, transform 0.16s var(--ease), border-color 0.16s ease;
}

.amao-btn:hover {
  background: #ffffff;
  border-color: rgba(18, 19, 23, 0.22);
  transform: translateY(-50%) scale(1.05);
}

.amao-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.amao-btn.prev { left: 14px; }
.amao-btn.next { right: 14px; }

.amao-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 0 4px;
}

.amao-caption {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.amao-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dot);
  white-space: nowrap;
}

/* ======================================================
   FEATURED SPLIT SHOWCASE
   ====================================================== */
.featured-section {
  padding: 80px 0 88px;
}

.featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.heading-2 {
  font-size: clamp(23px, 2.25vw, 27px);
  font-weight: 450;
  line-height: 1.22;
  letter-spacing: -0.014em;
  color: var(--ink);
}

.featured-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-right: 4px;
  white-space: nowrap;
}

.circle-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.circle-arrow:hover {
  background: var(--surface-pill);
  border-color: rgba(33, 34, 38, 0.24);
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.featured-title {
  font-size: clamp(21px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.012em;
  color: var(--ink-heading);
  max-width: 520px;
  margin-bottom: 14px;
  transition: color 0.15s ease;
}

.featured-grid:hover .featured-title { color: var(--blue); }

.featured-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 500px;
  margin-bottom: 20px;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 26px;
}

.featured-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  background: var(--surface-subtle);
  border: 1px solid var(--divider);
  overflow: hidden;
  display: block;
}

.featured-media svg,
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}

.featured-grid:hover .featured-media svg,
.featured-grid:hover .featured-media img { transform: scale(1.02); }

/* ======================================================
   EDITORIAL BANDS (Tech Stack & Beyond Code)
   ====================================================== */
.editorial-band {
  padding: 80px 0;
  border-top: 1px solid var(--divider);
}

.band-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.heading-3 {
  font-size: clamp(23px, 2.25vw, 27px);
  font-weight: 450;
  line-height: 1.22;
  letter-spacing: -0.014em;
  color: var(--ink);
}

.band-sub {
  font-size: 15.5px;
  color: var(--ink-secondary);
  margin-top: 8px;
  max-width: 560px;
}

.tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 44px;
}

.tab-list {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }

.tab-btn {
  position: relative;
  padding: 12px 2px 14px;
  font-size: 15px;
  font-weight: 450;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--ink); font-weight: 500; }
.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
}

.tab-list-animated .tab-btn.active::after {
  display: none;
}

.tab-ink {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  pointer-events: none;
  transition: transform 0.28s var(--ease), width 0.28s var(--ease);
}

.utility-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--surface-pill);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.utility-pill:hover {
  background: #e8eaed;
  transform: translateY(-1px);
}

/* Local fixed-height animated stage for Tech Stack tabs */
.stack-panel {
  background: var(--surface-subtle);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

.stack-viewport {
  position: relative;
  display: flex;
  align-items: center;
  transition: min-height 0.24s var(--ease);
}

.stack-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px 32px;
  will-change: transform, opacity;
}

.stack-grid.anim-in-right {
  animation: stackSlideFromRight 0.28s var(--ease) both;
}
.stack-grid.anim-in-left {
  animation: stackSlideFromLeft 0.28s var(--ease) both;
}

@keyframes stackSlideFromRight {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes stackSlideFromLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tab-ink { transition: none; }
  .stack-grid.anim-in-right,
  .stack-grid.anim-in-left { animation: none; }
}

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 36px;
}

.stack-item {
  padding-top: 4px;
}

.beyond-item {
  padding-top: 18px;
  border-top: 1px solid var(--divider);
}

.beyond-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 52% 45%;
  border-radius: 12px;
  border: 1px solid var(--divider);
  margin-top: 2px;
}

.stack-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.stack-name {
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.stack-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.stack-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.beyond-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.beyond-item h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.beyond-item p {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink-secondary);
}

/* ======================================================
   SUBPAGE HEADERS & PROJECTS 2-COLUMN DIRECTORY
   ====================================================== */
.subpage-hero {
  padding: 68px 0 44px;
}

.subpage-title {
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 12px;
}

.subpage-sub {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-secondary);
  max-width: 600px;
}

.catalog-section {
  padding: 12px 0 96px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  row-gap: 40px;
}

.post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  column-gap: 32px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--divider);
  color: inherit;
}

.post-title {
  font-size: 25px;
  font-weight: 450;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--ink-heading);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.post-row:hover .post-title { color: var(--blue); }

.post-excerpt {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.post-thumb {
  width: 160px;
  height: 160px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--divider);
  background: var(--surface-subtle);
  flex-shrink: 0;
}

.post-thumb svg,
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s var(--ease);
}

.post-row:hover .post-thumb svg,
.post-row:hover .post-thumb img { transform: scale(1.05); }

/* ======================================================
   ABOUT SUBPAGE (Centered Editorial Profile + Links)
   ====================================================== */
.about-shell {
  max-width: 820px;
  margin: 0 auto;
}

.about-profile {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 36px;
}

.about-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 54% 48%;
  border: 1px solid var(--divider);
  flex-shrink: 0;
}

.about-bio-block {
  min-width: 0;
  flex: 1;
}

.about-slogan {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.about-text {
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.contact-list-section {
  padding: 48px 0 88px;
}

.contact-rows {
  border-top: 1px solid var(--divider);
  margin-top: 24px;
}

.contact-row {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--divider);
}

.contact-row-label {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.contact-row-val {
  font-size: 15px;
  color: var(--ink-secondary);
  min-width: 0;
  word-break: break-word;
}

.contact-row-val small {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* ======================================================
   DEDICATED FULL-WIDTH GUESTBOOK PAGE
   ====================================================== */
.gb-hero {
  padding: 56px 0 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.gb-hero-copy {
  max-width: 620px;
}

.gb-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.guestbook-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.gb-stage {
  background: var(--surface-subtle);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 88px;
}

.gb-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  align-content: start;
  max-height: clamp(400px, calc(100vh - 320px), 660px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 19, 23, 0.18) transparent;
}

.gb-wall::-webkit-scrollbar,
.gb-content::-webkit-scrollbar,
.modal-textarea::-webkit-scrollbar {
  width: 6px;
}

.gb-wall::-webkit-scrollbar-thumb,
.gb-content::-webkit-scrollbar-thumb,
.modal-textarea::-webkit-scrollbar-thumb {
  background: rgba(18, 19, 23, 0.18);
  border-radius: 999px;
}

.gb-item {
  background: #ffffff;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: 18px 20px;
  height: 168px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s ease;
}

.gb-item:hover {
  border-color: rgba(33, 34, 38, 0.16);
}

.gb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 24px;
  line-height: 24px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.gb-nick {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gb-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.gb-content {
  flex: 1;
  min-height: 0;
  font-size: 14.5px;
  line-height: 24px;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 19, 23, 0.16) transparent;
}

.gb-prompt-card {
  border: 1px dashed rgba(33, 34, 38, 0.18);
  border-radius: var(--r-md);
  padding: 20px 22px;
  height: 168px;
  background: rgba(255, 255, 255, 0.56);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  text-align: left;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.gb-prompt-card:hover {
  background: #ffffff;
  border-color: rgba(33, 34, 38, 0.3);
}

.gb-prompt-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.gb-prompt-sub {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.gb-empty {
  grid-column: 1 / -1;
  padding: 64px 16px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-muted);
}

/* Guestbook Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 19, 23, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border: 1px solid var(--divider);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(18, 19, 23, 0.18);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.22s var(--ease);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 20px;
  transition: background-color 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--surface-pill); color: var(--ink); }

.modal-field {
  margin-bottom: 16px;
}

.modal-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.modal-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.modal-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.modal-input,
.modal-textarea {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--surface-subtle);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.modal-input:focus,
.modal-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.modal-input::placeholder,
.modal-textarea::placeholder {
  color: var(--ink-dot);
}

.modal-textarea {
  min-height: 132px;
  max-height: 240px;
  line-height: 1.6;
  resize: vertical;
  overflow-y: auto;
}

.modal-error {
  min-height: 20px;
  font-size: 13px;
  color: #c5221f;
  margin-bottom: 12px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* GitHub Release-inspired 2-column download page layout */
.release-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 0 96px;
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.release-main {
  min-width: 0;
}

.release-sidebar {
  position: sticky;
  top: 88px;
}

.release-card {
  background: var(--surface-subtle);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: 24px;
}

.release-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.release-card-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-card-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.38;
  color: var(--ink);
  margin-bottom: 18px;
}

.release-meta-list {
  border-top: 1px solid var(--divider);
  margin-bottom: 20px;
}

.release-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 13.5px;
}

.release-meta-row span:first-child {
  color: var(--ink-muted);
  flex-shrink: 0;
}

.release-meta-val {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: right;
  word-break: break-all;
}

.release-dl-btn {
  width: 100%;
}

.release-card-note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ======================================================
   DEDICATED PROJECT DETAIL SUBPAGE
   ====================================================== */
.article-shell {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 0 96px;
}

.breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--ink-muted);
}

.article-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 450;
  line-height: 1.18;
  letter-spacing: -0.016em;
  color: var(--ink);
  margin-bottom: 22px;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 32px;
}

.author-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 54% 48%;
  border: 1px solid var(--divider);
}

.author-name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.author-meta {
  font-size: 13px;
  color: var(--ink-muted);
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  background: var(--surface-subtle);
  border: 1px solid var(--divider);
  overflow: hidden;
  margin-bottom: 40px;
}

.article-cover svg,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prose p {
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: var(--ink-secondary);
  margin-bottom: 22px;
}

.prose h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 40px 0 16px;
}

.dl-panel {
  background: var(--surface-subtle);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  margin: 28px 0 36px;
}

.dl-panel-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.dl-panel-sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.step-list {
  border-top: 1px solid var(--divider);
  margin: 16px 0 32px;
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--divider);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  padding-top: 3px;
}

.step-item h3 {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-item p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-secondary);
  margin: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.disclaimer-box {
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-muted);
}

/* ======================================================
   CLEAN COMPACT FOOTER
   ====================================================== */
.ag-footer {
  border-top: 1px solid var(--divider);
  padding: 52px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-tagline {
  font-size: 19px;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-note {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 340px;
}

.footer-col h4 {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a, .footer-col button {
  font-size: 14px;
  color: var(--ink-secondary);
  transition: color 0.15s;
  text-align: left;
}
.footer-col a:hover, .footer-col button:hover { color: var(--blue); }

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.social-circles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: var(--surface-pill);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background-color 0.15s, transform 0.15s;
}
.social-circle:hover { background: #e6e8ec; transform: translateY(-1px); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: var(--ink);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
  z-index: 160;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ======================================================
   RESPONSIVE BREAKPOINTS
   ====================================================== */
@media (max-width: 1024px) {
  .ag-nav, .page-wrap { padding-left: 28px; padding-right: 28px; }
  .personal-hero { padding: 60px 28px 68px; }
  .personal-hero, .featured-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .amao-showcase { max-width: 100%; justify-self: stretch; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .stack-grid, .beyond-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gb-wall { grid-template-columns: minmax(0, 1fr); }
  .release-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .release-sidebar { position: static; order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ag-nav { padding: 0 12px; gap: 6px; }
  .page-wrap { padding-left: 20px; padding-right: 20px; }
  .nav-hide-sm { display: none; }
  .brand { font-size: 14px; gap: 5px; }
  .brand-mark { width: 20px; height: 20px; }
  .nav-left { gap: 6px; }
  .nav-links { gap: 1px; }
  .nav-link { padding: 4px 6px; font-size: 12.5px; }
  .nav-right .ag-btn-dark { padding: 0 10px; font-size: 12px; }
  .personal-hero-band { min-height: auto; }
  .personal-hero { padding: 40px 20px 52px; gap: 28px; }
  .stack-panel { padding: 22px 20px; }
  .amao-btn { width: 34px; height: 34px; }
  .amao-btn.prev { left: 10px; }
  .amao-btn.next { right: 10px; }
  .featured-section { padding: 56px 0 64px; }
  .post-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
  }
  .post-thumb {
    order: -1;
    width: 100%;
    height: 170px;
  }
  .stack-grid, .beyond-grid, .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-profile { flex-direction: column; align-items: flex-start; gap: 20px; padding: 40px 0 36px; }
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gb-hero { padding: 36px 0 24px; }
  .gb-stage { padding: 18px; border-radius: 18px; margin-bottom: 64px; }
  .gb-wall { max-height: 62vh; }
  .modal-dialog { padding: 22px 18px; border-radius: 18px; }
  .article-shell, .release-shell { padding: 32px 0 72px; }
}
