:root {
  --bg: #11130d;
  --bg-deep: #090a07;
  --panel: rgba(19, 28, 17, 0.9);
  --panel-soft: rgba(23, 34, 20, 0.82);
  --line: rgba(165, 193, 113, 0.35);
  --line-strong: rgba(181, 211, 126, 0.55);
  --text: #d6e8bf;
  --muted: #9caf81;
  --bright: #edf6cf;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Courier Prime", "IBM Plex Mono", "Nimbus Mono PS", "Courier New", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(72, 98, 49, 0.17), transparent 38%),
    radial-gradient(circle at top right, rgba(112, 73, 34, 0.12), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(239, 255, 206, 0.015) 0,
      rgba(239, 255, 206, 0.015) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.6;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.08)),
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.28) 100%);
}

.screen-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 140px rgba(129, 189, 92, 0.07);
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.25rem auto;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.015), transparent 35%),
    linear-gradient(0deg, rgba(50, 62, 40, 0.14), rgba(15, 20, 12, 0.92));
  box-shadow:
    0 0 0 1px rgba(35, 44, 30, 0.75),
    12px 12px 0 rgba(0, 0, 0, 0.18),
    0 18px 48px var(--shadow);
}

.hero,
.panel,
.post,
.footer {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  box-shadow: inset 0 0 0 1px rgba(245, 255, 220, 0.02);
}

.hero {
  padding: 1.2rem;
  margin-bottom: 1rem;
  animation: boot 500ms ease-out both;
}

.shell-nav {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.bootline,
.eyebrow,
.panel-label,
.post-meta {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 1rem;
  align-items: start;
}

.hero-grid.hero-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--bright);
  text-shadow: 0 0 8px rgba(214, 232, 191, 0.06);
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

h3 {
  font-size: 1rem;
}

.lede {
  margin: 0;
  max-width: 58ch;
}

.status-panel {
  padding: 0.95rem;
  border: 1px dashed var(--line);
  background: rgba(12, 18, 11, 0.75);
  transform: rotate(-0.7deg);
}

.status-panel p {
  margin: 0.2rem 0;
}

.layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 1rem;
}

.sidebar,
.content-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.project-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  padding: 1rem;
}

.sidebar > .panel:nth-child(odd),
.content-column > .panel:nth-child(odd) {
  margin-right: 0.15rem;
}

.sidebar > .panel:nth-child(even),
.content-column > .panel:nth-child(even) {
  margin-left: 0.2rem;
}

.posts .post:nth-of-type(odd),
.archive-list .archive-card:nth-of-type(odd) {
  margin-right: 0.2rem;
}

.posts .post:nth-of-type(even),
.archive-list .archive-card:nth-of-type(even) {
  margin-left: 0.15rem;
}

.intro-panel p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.page-actions,
.post-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.post-figure {
  margin: 0.9rem 0 1rem;
}

.post-figure-frame {
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 20, 11, 0.95), rgba(18, 27, 15, 0.86));
  box-shadow: inset 0 0 0 1px rgba(245, 255, 220, 0.02);
}

.post-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 30rem;
  border: 1px solid rgba(181, 211, 126, 0.18);
  background: rgba(8, 11, 7, 0.85);
  margin: 0 auto;
}

.post-cover-card {
  min-height: 15rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.post-cover-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(79, 104, 64, 0.45);
  background: rgba(10, 13, 8, 0.95);
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-cover-comments {
  justify-self: end;
  color: var(--bright);
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(181, 211, 126, 0.42);
  background: rgba(26, 39, 20, 0.92);
  box-shadow: inset 0 0 0 1px rgba(245, 255, 220, 0.03);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.post-cover-comments,
.post-cover-comments:hover,
.post-cover-comments:focus-visible {
  border-bottom-color: transparent;
}

.post-cover-comments:hover,
.post-cover-comments:focus-visible {
  color: var(--bright);
  border-color: rgba(181, 211, 126, 0.7);
  background: rgba(39, 58, 30, 0.96);
  text-decoration: none;
}

.post-cover-body {
  padding: 1rem;
  border: 1px solid rgba(58, 74, 47, 0.55);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(239, 255, 206, 0.018) 0,
      rgba(239, 255, 206, 0.018) 1px,
      transparent 1px,
      transparent 20px
    ),
    rgba(13, 17, 11, 0.96);
}

.post-cover-body p {
  margin: 0 0 0.8rem;
}

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

.post-cover-prompt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-cover-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.post-caption {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.post-credit {
  display: inline;
}

.link-stack,
.archive-links,
.archive-list {
  display: grid;
  gap: 0.55rem;
}

.tag-filter-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

a {
  color: var(--bright);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}

a:hover,
a:focus-visible {
  color: var(--bright);
  border-bottom-color: var(--line-strong);
}

.link-stack a,
.shell-nav a {
  display: block;
}

.shell-nav .contact-button {
  margin-left: auto;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(181, 211, 126, 0.2);
  background: rgba(11, 16, 10, 0.56);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag-chip,
.tag-chip:hover,
.tag-chip:focus-visible {
  border-bottom-color: transparent;
}

.tag-chip:hover,
.tag-chip:focus-visible {
  color: var(--bright);
  border-color: rgba(181, 211, 126, 0.4);
  background: rgba(16, 24, 13, 0.72);
}

.tag-chip.is-active {
  color: var(--bright);
  border-color: rgba(181, 211, 126, 0.48);
  background: rgba(31, 46, 23, 0.8);
}

.tag-chip.is-static {
  color: var(--bright);
  border-color: rgba(181, 211, 126, 0.3);
  background: rgba(18, 27, 15, 0.68);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(181, 211, 126, 0.42);
  background: rgba(25, 38, 19, 0.84);
  color: var(--bright);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.contact-button,
.contact-button:hover,
.contact-button:focus-visible {
  border-bottom-color: transparent;
}

.contact-button:hover,
.contact-button:focus-visible {
  border-color: rgba(181, 211, 126, 0.6);
  background: rgba(36, 54, 28, 0.92);
}

.archive-link {
  display: block;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(181, 211, 126, 0.16);
  background: rgba(11, 16, 10, 0.5);
}

.archive-link:hover,
.archive-link:focus-visible {
  border-bottom-color: transparent;
  border-color: rgba(181, 211, 126, 0.36);
  background: rgba(15, 22, 13, 0.68);
}

.archive-title,
.archive-date {
  display: block;
}

.archive-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.archive-card {
  padding: 1rem;
}

.project-card,
.contact-card {
  height: 100%;
}

.comments-panel {
  margin-top: 1rem;
}

.comments-panel iframe {
  width: 100%;
  min-height: 16rem;
  border: 0;
  background: transparent;
}

.contact-form-panel {
  margin-top: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.contact-field {
  display: grid;
  gap: 0.35rem;
}

.contact-field label {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-input,
.contact-textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(181, 211, 126, 0.18);
  background: rgba(8, 12, 8, 0.78);
  color: var(--bright);
  font: inherit;
  display: block;
}

.contact-textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-input:focus,
.contact-input:focus-visible,
.contact-textarea:focus,
.contact-textarea:focus-visible {
  outline: none;
  border-color: rgba(181, 211, 126, 0.46);
  box-shadow: 0 0 0 1px rgba(181, 211, 126, 0.12);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.archive-card h2 {
  margin-bottom: 0.5rem;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.4rem;
}

.small-copy {
  margin: 0;
  color: var(--muted);
}

.posts {
  display: grid;
  gap: 1rem;
}

.post {
  padding: 1.1rem;
  transform: rotate(-0.15deg);
  animation: boot 600ms ease-out both;
}

.post:nth-child(even) {
  transform: rotate(0.2deg);
}

.post-summary {
  margin-top: 0;
  color: var(--bright);
  border-left: 2px solid rgba(181, 211, 126, 0.22);
  padding-left: 0.75rem;
}

.tag-list {
  margin-bottom: 0.8rem;
}

.post p:last-child,
.archive-card p:last-child {
  margin-bottom: 0;
}

.notice {
  display: grid;
  gap: 0.65rem;
}

.ghost-link {
  font-size: 0.85rem;
  color: var(--muted);
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.is-hidden {
  display: none !important;
}

code {
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(190, 220, 137, 0.14);
  background: rgba(10, 14, 9, 0.55);
  color: var(--bright);
}

.footer {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

::selection {
  background: rgba(157, 196, 89, 0.26);
  color: var(--bright);
}

@keyframes boot {
  from {
    opacity: 0.78;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .layout,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .status-panel {
    transform: none;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 1rem));
    margin: 0.5rem auto;
    padding: 0.5rem;
    box-shadow:
      0 0 0 1px rgba(35, 44, 30, 0.75),
      0 10px 28px var(--shadow);
  }

  .hero,
  .panel,
  .post,
  .footer,
  .archive-card {
    padding: 0.85rem;
  }

  .shell-nav {
    padding: 0.75rem 0.85rem;
  }

  .shell-nav .contact-button {
    margin-left: 0;
  }
}
