* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 1.5rem;
    /* ── Terminal green palette ── */
  --color-bg:           #1a1d1a;
  --color-surface:      #1f231f;
  --color-border:       #2a302a;
  --color-green:        #39ff6e;   /* primary terminal green */
  --color-green-dim:    #27b84e;   /* dimmed green for secondary text */
  --color-green-muted:  #1a6e33;   /* very dim, borders and disabled */
  --color-green-glow:   rgba(57, 255, 110, 0.08);

    --lcars-orange: #FF9900;
  --lcars-peach:  #FFCC66;
  --lcars-blue:   #66CCFF;
  --lcars-purple: #CC66FF;
  --lcars-red:    #FF6666;
  --lcars-black:  #000000;
  --lcars-text:   #000000;

  --lcars-padding: 20px;
  --lcars-radius: 50px;
  --color-black:        #0d0f0d;
  --color-white:        #e8f5ec;
  --color-grey:         #4a6b52;
  --color-light:        #1f231f;
  --color-text:         var(--color-green);
  --color-text-grey:    var(--color-green-dim);
  --color-code-light-grey:  #3a5c42;
  --color-code-comment:     #2d4d35;
  --color-code-white:       #c5dcc9;
  --color-code-red:         #ff6b6b;
  --color-code-orange:      #ffaa44;
  --color-code-yellow:      #ffe066;
  --color-code-green:       #39ff6e;
  --color-code-aqua:        #44ffdd;
  --color-code-blue:        #44aaff;
  --color-code-purple:      #cc88ff;
  --font-family-sans: "SF Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  --font-family-mono: "SF Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

.vt323 {
  font-family: "VT323", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 1.3rem
}


html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-bg);
}
img {
  width: 100%;
}
body {
  padding: var(--padding);
  max-width: 70rem;
  margin: 0 auto;
  background: var(--color-bg);
   background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}
/*li {
  list-style: none;
}*/
a {
  color: currentColor;
  text-decoration: none;
}
a:hover {
  color: var(--color-green);
  text-shadow: 0 0 8px rgba(57, 255, 110, 0.4);
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
  color: var(--color-green);
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}
.bg-light {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}


.color-grey {
  color: var(--color-text-grey);
}

.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-right: -1rem;
  margin-left: -1rem;
  margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
  padding-bottom: .5rem;
}

.logo {
  padding: 1rem;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
    letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 1.3rem;
  color: var(--color-green);
  text-shadow: 0 0 12px rgba(57, 255, 110, 0.5);
}

.menu {
  display: flex;
  align-items: center;
}
.menu a {
  padding: 1rem;
  display: block;
  font-size: 1.3rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-green-dim);
  transition: color .15s, text-shadow .15s;
  line-height: 1;
}
.menu a:hover,
.menu a[aria-current] {
  color: var(--color-green);
  text-shadow: 0 0 8px rgba(57, 255, 110, 0.4);
  text-decoration: none;
}
.menu a[aria-current] {
  text-decoration: underline;
}

.social {
  display: flex;
  padding: 0 .5rem;
}
.social a {
  padding: 1rem .5rem;
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  line-height: inherit;
  color: var(--color-green);
}

.text {
  line-height: 1.5em;
  color: var(--color-green-dim);
}
.text a {
  text-decoration: underline;
  color: var(--color-green);
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1,
.intro {
  font-size: 2rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
    color: var(--color-green);
  text-shadow: 0 0 20px rgba(57, 255, 110, 0.3);
}
.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
   color: var(--color-green);
}
.text h3,
.h3 {
  font-weight: 600;
   color: var(--color-green);
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-green);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
   border: 1px solid var(--color-green-muted);
  box-shadow: 0 0 20px rgba(57, 255, 110, 0.05);
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
  border: 0;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-green-muted);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
  color: var(--color-green-dim);
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: var(--color-green-muted);
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

.intro {
  max-width: 40rem;
  color: var(--color-green-dim);
}
.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  background: transparent;
  color: var(--color-green);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 1px solid var(--color-green-muted);
  outline: none;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .15s, box-shadow .15s;
}
.cta:hover {
  background: var(--color-green-glow);
  box-shadow: 0 0 12px rgba(57, 255, 110, 0.2);
  color: var(--color-green);
}

.box {
  background: var(--color-surface);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
  border: 1px solid var(--color-border);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
  color: var(--color-text-grey);
}

.footer {
  margin-top: 9rem;
  line-height: 1.5em;
  color: var(--color-green-dim);
  border-bottom: 1px solid var(--green-border);
  border-top: 1px solid var(--green-border);
}
.footer:before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  /*background: var(--color-green-muted);*/
  margin-bottom: 1.5rem;
}

.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
  color: var(--color-green);
}
.footer ul,
.footer p {
  color: var(--color-text-grey);
}
.footer p {
  max-width: 15rem;
}
.footer a:hover {
  color: var(--color-green);
}


.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}


@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }

}

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 1px solid var(--color-green-muted);
  margin-right: 1.5rem;
  color: var(--color-green-dim);
}
.pagination > a:hover {
  background: var(--color-green-glow);
  color: var(--color-green);
  border-color: var(--color-green-dim);
}

.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt header {
  margin-bottom: 1.5rem;
}
.note-excerpt figure {
  margin-bottom: .5rem;
}
.note-excerpt-title {
  font-weight: 600;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}


