:root {
  --outer-background: #272725;
  --page-background: #fcfbf8;
  --text: #111522;
  --muted: #6e7687;
  --border: #d9d9d4;
  --accent: #c95b0b;
  --page-width: 800px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--outer-background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
.site-shell { min-height: 100vh; padding: 9px; }
.site-page {
  width: 100%;
  min-height: calc(100vh - 18px);
  margin: 0 auto;
  padding: 48px 22px 26px;
  background: var(--page-background);
  border-radius: 9px;
}
.site-header, main, .site-footer {
  width: min(100%, var(--page-width));
  margin-inline: auto;
}
.site-header { text-align: center; }
.site-title {
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 3.75rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.site-subtitle { margin: 14px 0 25px; color: var(--muted); font-size: 0.98rem; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px 26px; font-size: 0.86rem; }
.site-nav a { color: #384052; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
.rule { margin: 28px 0 0; border: 0; border-top: 1px solid var(--border); }
.intro { padding: 46px 0 28px; max-width: 690px; }
.intro p { margin: 0 0 14px; }
.section { margin-top: 56px; }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}
.section-heading h2 {
  margin: 0;
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.77rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-heading span {
  color: var(--muted);
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.73rem;
  white-space: nowrap;
}
.post-list { margin: 0; padding: 0; list-style: none; }
.post-list li { padding: 24px 0 21px; border-bottom: 1px solid #e5e5e0; }
.date, .engineering-log time {
  display: block;
  color: var(--muted);
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}
.post-list h3 { margin: 7px 0 4px; font-size: 1rem; line-height: 1.35; }
.post-list h3 a { text-decoration: none; }
.post-list h3 a:hover, .post-list h3 a:focus-visible { color: var(--accent); }
.post-list p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 25px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.project-card {
  min-height: 200px;
  padding: 25px 25px 21px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.project-card h3 { margin: 0 0 7px; font-size: 1.05rem; line-height: 1.3; }
.project-card p { margin: 0 0 17px; color: var(--muted); font-size: 0.94rem; line-height: 1.48; }
.status {
  color: var(--muted);
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status.active { color: var(--accent); }
.engineering-log { position: relative; margin: 29px 0 0; padding: 0 0 0 38px; list-style: none; }
.engineering-log::before {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 8px;
  left: 1px;
  width: 1px;
  background: var(--border);
}
.engineering-log li { position: relative; padding: 0 0 30px; }
.engineering-log li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -41px;
  width: 7px;
  height: 7px;
  border: 1px solid #7d8796;
  border-radius: 50%;
  background: var(--page-background);
}
.engineering-log li.highlight::before { border-color: var(--accent); background: var(--accent); }
.engineering-log p { margin: 7px 0 0; font-size: 1rem; line-height: 1.45; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 61px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); }

@media (max-width: 680px) {
  .site-shell { padding: 0; }
  .site-page { min-height: 100vh; padding: 38px 20px 25px; border-radius: 0; }
  .site-subtitle { margin-bottom: 22px; }
  .site-nav { gap: 11px 18px; }
  .intro { padding-top: 38px; }
  .section { margin-top: 46px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: auto; }
  .site-footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .site-title { font-size: 2.5rem; }
  .site-subtitle { font-size: 0.9rem; }
  .section-heading { align-items: flex-start; }
  .engineering-log { padding-left: 31px; }
  .engineering-log li::before { left: -34px; }
}

.engineering-log time {
  display: block;
  margin-bottom: 0.55rem;

  color: var(--muted);
  font-family:
    "Courier New",
    Courier,
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.72rem;
  line-height: 1.4;
}

.log-content {
  line-height: 1.65;
}

.log-content p {
  margin: 0.55rem 0 0;
}

.log-content p:first-child {
  margin-top: 0;
}

.log-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;

  margin-top: 0.65rem;

  color: #9298a3;
  font-family:
    "Courier New",
    Courier,
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.68rem;
  line-height: 1.4;
}

.log-tag::before {
  content: "#";
}

.log-tag {
  display: inline-block;
}