
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fffff4;
  color: #072aec;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 24px;
}

.container {
  width: 100%;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.brand h1 {
  font-size: 14px;
  font-weight: normal;
}

.topbar a,
.archive-item,
.toggle-btn,
.toggle-content a,
.tag-btn {
  color: #0000ff;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
}

.expandable-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 50px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toggle-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-align: left;
  width: fit-content;
}

.toggle-content {
  display: none;
  padding-left: 18px;
  line-height: 1.8;
  max-width: 500px;
}

.toggle-content.active {
  display: block;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-btn {
  background: transparent;
  border: 1px solid #bbb;
  padding: 2px 8px;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tag-btn.active {
  background: #dcdcdc;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.archive-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #bbb;
  padding-bottom: 8px;
  transition: opacity 0.2s ease;
}

.archive-item.hidden {
  display: none;
}

.archive-item:hover {
  opacity: 0.45;
}

.page {
  max-width: 700px;
}

.back-link {
  display: inline-block;
  margin-bottom: 40px;
  color: #777;
  text-decoration: none;
}

.project-title {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 20px;
}

.project-meta {
  margin-bottom: 30px;
  line-height: 1.8;
}

.project-text {
  line-height: 1.9;
}

/* ---------- ARCHIVE MODAL ---------- */

.substack-btn{
    background:none;
    border:none;
    color:#0000ff;
    cursor:pointer;
    font:inherit;
    padding:0;
}

.archive-modal{

    position:fixed;
    inset:0;

    background:rgba(255,255,255,.92);

    display:flex;
    justify-content:center;
    align-items:center;

    opacity:0;
    pointer-events:none;

    transition:.25s;
}

.archive-modal.active{

    opacity:1;
    pointer-events:auto;
}

.archive-window{

    width:340px;
    border:1px solid #0000ff;
    padding:30px;
    text-align:left;
    background:white;
}

.archive-title{

    margin-bottom:18px;
}

.archive-copy{

    margin-bottom:20px;
    line-height:1.7;
}

.archive-window input{

    width:100%;
    border:none;
    border-bottom:1px solid #0000ff;
    outline:none;
    font:inherit;
    padding:8px 0;
    margin-bottom:18px;
    background:white;
    color:#072aec;
}

.archive-window input::placeholder{

    color:#888;
}

.archive-window button{

    background:none;
    border:none;
    color:#0000ff;
    cursor:pointer;
    font:inherit;
    padding:0;
}

#archive-message{

    margin-top:18px;
    min-height:16px;
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 24px;
  }

  nav {
    flex-wrap: wrap;
  }
}
