:root {
  --bg: #11161b;
  --bg-panel: rgba(24, 32, 39, 0.94);
  --text: #e7edf2;
  --muted: #98a8b3;
  --accent: #4fc7c1;
  --accent-2: #f4b942;
  --link: #8fd2ff;
  --link-hover: #b7e4ff;
  --content-image-max: 560px;
  --border: rgba(79, 199, 193, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Chakra Petch", sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background-color 250ms ease, color 250ms ease;
  position: relative;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
}

.site-header,
.content-shell,
.site-footer {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding: 2.5rem 0 1rem;
  display: grid;
  gap: 1rem;
}

.brand-block,
.site-footer {
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.brand-block {
  padding: 1.25rem;
  border-left: 4px solid var(--accent);
}

.system-id {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent-2);
  font-family: "Share Tech Mono", monospace;
}

.site-title {
  margin: 0.3rem 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.1;
}

.site-subtitle {
  margin: 0;
  color: var(--muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.main-nav a,
.theme-toggle,
.entry a {
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  background: transparent;
  transition: 170ms ease;
}

.main-nav a:hover,
.theme-toggle:hover,
.entry a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79, 199, 193, 0.09);
}

.theme-toggle {
  margin-left: auto;
  cursor: pointer;
  font-family: "Share Tech Mono", monospace;
}

.content-shell {
  padding: 1rem 0 2rem;
}

.terminal-window {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  overflow: hidden;
}

.window-topbar {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(79, 199, 193, 0.2), rgba(242, 166, 90, 0.1));
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.window-topbar p {
  margin: 0;
}

.hero-panel {
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.hero-panel h2,
.hero-panel h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.45rem;
}

.panel-label {
  margin: 0;
  color: var(--accent-2);
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-family: "Share Tech Mono", monospace;
}

.terminal-section {
  padding: 1rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.terminal-section:last-child {
  border-bottom: none;
}

.data-intro {
  border-bottom: none;
  padding-bottom: 0.45rem;
}

.intro-blurb {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0.4rem;
}

.intro-blurb p {
  margin: 0;
}

.post-layout .terminal-section,
.post-layout .post-header {
  padding: 1.1rem 1.25rem 1.25rem;
  border-bottom: none;
  position: relative;
}

.post-layout > .terminal-section:not(:first-child)::before,
.post-layout > .post-header:not(:first-child)::before {
  content: "";
  display: block;
  width: 92px;
  height: 1px;
  margin-bottom: 1rem;
  background: var(--border);
}

.post-header h2 {
  margin: 0.2rem 0 0.45rem;
  line-height: 1.2;
}

.post-meta {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.post-steps,
.post-parts {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.post-steps li,
.post-parts li {
  color: var(--text);
}

.back-link {
  display: inline-block;
  margin-top: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

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

.post-photo {
  margin: 0;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
  width: 100%;
}

.post-photo-link {
  display: block;
}

.post-photo-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.post-photo img {
  width: 100%;
  display: block;
  height: auto;
}

@media (max-width: 800px) {
  .post-photo-grid {
    grid-template-columns: 1fr;
  }
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.entry-list-fixed {
  grid-template-columns: repeat(auto-fill, minmax(220px, 320px));
  justify-content: start;
}

.civic-log-list {
  margin-top: 0.95rem;
  border: 1px solid var(--border);
}

.civic-log-list-head,
.civic-log-row {
  display: grid;
  grid-template-columns: 120px 82px minmax(0, 1fr) 110px;
  align-items: center;
  column-gap: 0.7rem;
}

.civic-log-list-head {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--border);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  text-transform: uppercase;
  background: rgba(79, 199, 193, 0.06);
}

.civic-log-row {
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid rgba(79, 199, 193, 0.14);
}

.civic-log-row:last-child {
  border-bottom: none;
}

.civic-log-row:hover {
  background: rgba(79, 199, 193, 0.08);
}

.civic-log-date {
  margin: 0;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.79rem;
}

.civic-log-thumb {
  display: block;
  width: 72px;
  height: 54px;
  overflow: hidden;
}

.civic-log-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.civic-log-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
}

.civic-log-title a {
  color: var(--text);
  text-decoration: none;
}

.civic-log-title a:hover {
  color: var(--accent);
}

.civic-log-open {
  justify-self: end;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.38rem 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  font-family: "Share Tech Mono", monospace;
}

.civic-log-open:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79, 199, 193, 0.09);
}

.mini-gallery {
  margin: 1rem 0 1.1rem;
}

.civic-action-links {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.civic-action-links .back-link {
  background: rgba(244, 185, 66, 0.11);
  border-color: rgba(244, 185, 66, 0.38);
}

.civic-action-links .back-link:hover {
  background: rgba(244, 185, 66, 0.2);
  border-color: rgba(244, 185, 66, 0.55);
  color: var(--accent-2);
}

.action-link-highlight {
  background: rgba(244, 185, 66, 0.11);
  border-color: rgba(244, 185, 66, 0.38);
}

.action-link-highlight:hover {
  background: rgba(244, 185, 66, 0.2);
  border-color: rgba(244, 185, 66, 0.55);
  color: var(--accent-2);
}

.video-thumb-link {
  display: inline-grid;
  gap: 0.3rem;
  margin-top: 0.35rem;
  text-decoration: none;
  width: 200px;
  max-width: 100%;
}

.video-highlight-panel {
  margin: 0.85rem 0 0.95rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(244, 185, 66, 0.38);
  background: rgba(244, 185, 66, 0.11);
}

.video-highlight-panel p {
  margin: 0;
}

.video-highlight-panel .panel-label {
  margin-bottom: 0.35rem;
}

.video-thumb-row {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.video-thumb-link img {
  width: 100%;
  height: auto;
  display: block;
}

.video-thumb-link span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.mini-gallery-preview-track {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.45rem;
}

.mini-gallery-preview-item {
  display: block;
  background: rgba(79, 199, 193, 0.05);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.mini-gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.2);
}

.mini-gallery-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.45rem;
}

.mini-gallery-grid a {
  display: block;
  background: rgba(79, 199, 193, 0.05);
}

.mini-gallery-grid img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.civic-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 0.6rem;
}

.civic-gallery-grid img {
  height: 108px;
}

@media (max-width: 800px) {
  .mini-gallery-preview-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .civic-log-list-head {
    display: none;
  }

  .civic-log-row {
    grid-template-columns: 1fr;
    row-gap: 0.45rem;
    padding: 0.65rem 0.7rem;
  }

  .civic-log-thumb {
    width: 88px;
    height: 66px;
  }

  .civic-log-open {
    justify-self: start;
  }
}

.section-heading {
  grid-column: 1 / -1;
  padding: 0 0 0.2rem;
}

.section-heading h3 {
  margin: 0.2rem 0 0;
}

.section-heading h2 {
  margin: 0.2rem 0 0;
}

.tutorial-content p {
  margin: 0.65rem 0;
}

.tutorial-content ul {
  margin: 0.65rem 0;
  padding-left: 1.15rem;
}

.tutorial-content figure {
  margin: 0.85rem 0 1rem;
  text-align: center;
}

.tutorial-content .wp-block-image {
  text-align: center;
}

.tutorial-content .content-image-link {
  display: block;
  width: min(100%, var(--content-image-max));
  margin: 0 auto;
  line-height: 0;
}

.prius-content .content-image-link,
.prius-content figure > img {
  width: min(100%, var(--content-image-max));
  margin-left: auto;
  margin-right: auto;
}

.prius-content .hero-compare-image .content-image-link {
  width: min(100%, calc(var(--content-image-max) * 1.4));
}

.tutorial-content img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.tutorial-content .wp-block-columns {
  display: block;
  margin: 0;
}

.tutorial-content .wp-block-column {
  width: 100% !important;
  flex-basis: auto !important;
  margin: 0 0 1rem 0;
}

.tutorial-content code {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.88rem;
}

.tutorial-callout {
  margin-top: 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: rgba(79, 199, 193, 0.12);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

.civic-build-list-content ul {
  margin: 0.5rem 0 0.95rem;
}

.civic-build-list-content li {
  margin: 0.2rem 0;
}

.entry {
  padding: 0.85rem 0.9rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.7rem;
  align-content: stretch;
  border: 1px solid var(--border);
  background: rgba(79, 199, 193, 0.04);
  height: 100%;
}

.entry h4 {
  margin: 0;
}

.entry p {
  margin: 0;
  color: var(--muted);
}

.entry-thumb {
  display: block;
  width: 82%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 0.25rem;
  margin-left: auto;
  margin-right: auto;
  border: none;
  padding: 0;
  background: none;
}

.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 180ms ease;
}

.entry-thumb:hover img,
.entry-thumb:focus-visible img {
  filter: grayscale(0%);
}

.entry a {
  justify-self: start;
  font-family: "Share Tech Mono", monospace;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.contact-card {
  border: 1px solid var(--border);
  background: rgba(79, 199, 193, 0.04);
  padding: 1rem;
}

.contact-card h3 {
  margin: 0.2rem 0 0.6rem;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  padding: 0.55rem 0.65rem;
  font-family: "Share Tech Mono", monospace;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .theme-toggle {
  margin-left: 0;
  margin-top: 0.3rem;
  justify-self: start;
}

.contact-note {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-note a {
  color: var(--accent-2);
}

.contact-note a:hover {
  color: var(--accent-2);
}

.contact-email {
  color: var(--accent-2);
}

.status-message {
  border: 1px solid var(--border);
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.8rem;
}

.status-message p {
  margin: 0;
}

.status-message.success {
  border-color: var(--accent);
  background: rgba(79, 199, 193, 0.1);
}

.status-message.error {
  border-color: #d96060;
  background: rgba(217, 96, 96, 0.12);
}

.error-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.data-note {
  margin-top: 0.15rem;
  color: var(--muted);
}

.data-table-wrap {
  margin-top: 0.7rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: rgba(79, 199, 193, 0.05);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.65rem;
  border-bottom: 1px solid rgba(79, 199, 193, 0.15);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.07em;
  font-size: 0.75rem;
  color: var(--accent-2);
  text-transform: uppercase;
  background: rgba(79, 199, 193, 0.06);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:nth-child(even) td {
  background: rgba(79, 199, 193, 0.03);
}

.site-footer {
  margin-top: 1rem;
  margin-bottom: 2.2rem;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
}

@media (max-width: 700px) {
  .site-header {
    padding-top: 1.5rem;
  }

  .site-footer {
    flex-direction: column;
  }
}


