:root {
  --bg: #090807;
  --panel: #16120e;
  --panel-2: #1d1711;
  --text: #f2e6d2;
  --text-soft: #d6c2a6;
  --muted: #9b8872;
  --border: #644a2f;
  --border-soft: #3b2d20;
  --accent: #ff9d2e;
  --accent-strong: #ffbf69;
  --accent-deep: #c87414;
  --steel: #8ca3b5;
  --green: #7dbc67;
  --yellow: #e4b14a;
  --shadow: rgba(0, 0, 0, 0.5);
  --mono: 'IBM Plex Mono', 'SFMono-Regular', 'Menlo', 'Consolas', 'Liberation Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 157, 46, 0.12), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(140, 163, 181, 0.08), transparent 24%),
    linear-gradient(180deg, #070605, #0b0a09 48%, #030303 100%);
  color: var(--text);
  font: 18px/1.65 var(--mono);
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
}

body.window-dismissed #page-shell,
body.window-dismissed .blog-toast {
  display: none;
}

body.window-dismissed .window-fallback {
  display: grid;
}

body.window-dismissed::before,
body.window-dismissed .viewport-grid {
  display: none;
}

.blog-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: min(360px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(255, 191, 105, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 157, 46, 0.06), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    rgba(13, 10, 8, 0.97);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 22px 42px rgba(0, 0, 0, 0.58);
}

.blog-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-toast-label {
  color: var(--accent);
  font: 700 0.78rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-toast-close {
  border: 1px solid rgba(255, 191, 105, 0.3);
  background: rgba(255, 157, 46, 0.08);
  color: var(--text-soft);
  font: inherit;
  line-height: 1;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.blog-toast-close:hover {
  color: var(--text);
  border-color: rgba(255, 191, 105, 0.5);
}

.blog-toast-body {
  margin-bottom: 14px;
}

.blog-toast-meta,
.blog-toast-desc {
  margin: 0;
  color: var(--text-soft);
}

.blog-toast-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.blog-toast-title {
  margin: 0 0 10px;
  color: var(--text);
  font: 700 1.15rem/1.25 var(--mono);
}

.blog-toast-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
}

.blog-toast-link:hover {
  text-decoration: underline;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018)) 0 0 / 100% 3px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.012), transparent 1px) 0 0 / 3px 100%;
  opacity: 0.18;
}

.viewport-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
  opacity: 0.14;
}

#page-shell {
  width: min(100% - 32px, 1360px);
  margin: 22px auto 28px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255, 157, 46, 0.78);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #ffd7a0;
}

a:visited {
  color: #efaf5d;
}

.chrome-bar,
.terminal-window,
.card,
.note-box,
.desktop-chip,
.service-item,
.link-row,
.site-footer {
  border: 1px solid rgba(255, 191, 105, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 42px var(--shadow);
}

.chrome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 15px;
  background:
    linear-gradient(180deg, rgba(255, 176, 78, 0.08), transparent 90%),
    rgba(19, 16, 13, 0.96);
}

.chrome-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.clock-pill,
.crumbs {
  color: var(--text-soft);
  font-size: 0.9rem;
  white-space: nowrap;
}

.tz {
  color: var(--muted);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.signal-cluster {
  display: inline-flex;
  gap: 6px;
}

.window-button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255, 191, 105, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 191, 105, 0.48), rgba(255, 157, 46, 0.14));
  box-shadow: 0 0 12px rgba(255, 157, 46, 0.1);
  cursor: pointer;
}

.window-button.is-close {
  background: linear-gradient(180deg, rgba(255, 130, 103, 0.7), rgba(125, 37, 22, 0.3));
  border-color: rgba(255, 130, 103, 0.55);
}

.window-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.window-fallback {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #050505;
  text-align: center;
}

.window-fallback-text {
  margin: 0;
  color: var(--text-soft);
  font: 700 clamp(1.2rem, 3vw, 2rem)/1.5 var(--mono);
}

.terminal-window {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 191, 105, 0.04), transparent 140px),
    linear-gradient(180deg, #0e0b08, #080706);
}

.prompt-line,
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  margin-bottom: 14px;
  color: var(--text-soft);
}

.prompt-user {
  color: var(--muted);
}

.prompt-path {
  color: var(--steel);
}

.prompt-command {
  color: var(--text);
}

.hero-shell {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 191, 105, 0.2);
}

.hero-logo {
  margin: 0 0 18px;
  display: block;
  width: 100%;
  overflow-x: auto;
  color: var(--accent);
  font: 700 clamp(0.32rem, 0.72vw, 0.68rem)/1 var(--mono);
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 157, 46, 0.16);
}

.hero-grid,
.section-grid {
  display: grid;
  gap: 16px;
}

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

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

.hero-wide {
  width: 100%;
}

.card,
.note-box,
.service-item,
.link-row {
  background:
    linear-gradient(180deg, rgba(255, 191, 105, 0.03), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
    var(--panel);
}

.card {
  padding: 16px 18px;
}

.card-title {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
}

.card p,
.note-box p {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.card p:last-child,
.note-box p:last-child {
  margin-bottom: 0;
}

.desktop-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.desktop-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background:
    linear-gradient(180deg, rgba(255, 157, 46, 0.08), transparent),
    linear-gradient(180deg, #1a1510, #0d0b09);
  color: var(--text-soft);
  text-decoration: none;
}

.desktop-chip.is-active {
  color: var(--text);
  border-color: rgba(255, 157, 46, 0.5);
}

.window-section {
  margin-top: 24px;
}

.muted {
  color: var(--muted);
}

#services-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.host-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.host-group {
  display: grid;
  gap: 14px;
  align-content: start;
  align-items: start;
}

.host-group-title {
  margin: 8px 0 0;
  color: var(--accent);
  font: 700 1rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.host-table {
  display: grid;
  gap: 14px;
  align-content: start;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
}

.service-info {
  min-width: 0;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.service-name {
  color: var(--text);
  font-weight: 700;
  font-size: 1.08rem;
}

.service-desc {
  color: var(--text-soft);
}

.service-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  white-space: nowrap;
  color: var(--accent);
  text-decoration: none;
}

.service-link:hover {
  text-decoration: underline;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.service-status::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.service-status.online {
  color: var(--green);
}

.service-status.offline {
  color: #d3654d;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 12px 16px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 191, 105, 0.03), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
    var(--panel);
}

.site-footer a {
  color: var(--text-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .hero-grid,
  .section-grid,
  .host-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html {
    font-size: 16px;
  }

  #page-shell {
    width: min(100% - 14px, 1380px);
    margin-top: 8px;
  }

  .chrome-bar,
  .terminal-window {
    padding: 12px;
  }

  .hero-logo {
    font-size: 0.26rem;
  }

  .blog-toast {
    right: 8px;
    bottom: 8px;
    width: min(100vw - 16px, 360px);
  }

  .service-item,
  .host-grid {
    grid-template-columns: 1fr;
  }

  .window-button {
    width: 9px;
    height: 9px;
  }
}
