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

html {
  font-size: 18px;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  color: #2a2a2a;
  background-color: #fdfcfa;
  padding: 2rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

main {
  margin-top: 2rem;
}

h1 {
  font-size: 2.2rem;
  font-weight: normal;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

h2 {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 0.75rem;
  color: #444;
  margin-top: 2rem;
}

h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #2a2a2a;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.15rem;
  color: #555;
  font-style: italic;
  margin-bottom: 1.5rem;
}

section {
  margin-top: 2.5rem;
}

a {
  color: #2a2a2a;
  text-decoration: underline;
  text-decoration-color: #aaa;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: #2a2a2a;
}

/* Navigation */
.main-nav {
  margin: 2rem 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 1.05rem;
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: #666;
  text-decoration-color: #ccc;
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

ul li {
  list-style-type: disc;
}

/* Code blocks */
pre {
  background-color: #f5f4f2;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.9em;
}

p code {
  background-color: #f5f4f2;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* Directory */
.directory-list {
  margin-top: 2rem;
}

.wolt-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.wolt-entry:first-child {
  padding-top: 0;
}

.wolt-entry h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.wolt-entry h2 a {
  text-decoration-color: #2a2a2a;
}

.wolt-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.75rem;
}

.join-section {
  margin-top: 3rem;
  padding-top: 1rem;
}

/* Closing statement */
.closing {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e8e8e8;
  color: #555;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #777;
}

footer a {
  color: #777;
}

/* Start here section */
.start-here {
  background: #f5f4f2;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.start-here h2 {
  margin-top: 0;
}

.llms-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.llms-link a {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 1.05rem;
  text-decoration-color: #2a2a2a;
}

.llms-note {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
}

.copy-btn {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  background: #2a2a2a;
  color: #fdfcfa;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover {
  background: #444;
}

/* Network messages */
.network-section {
  margin-top: 1.5rem;
  background: #f5f4f2;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.network-section h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.network-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

#network-messages {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

#network-messages td {
  padding: 0.5rem 0;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
}

#network-messages tr:last-child td {
  border-bottom: none;
}

#network-messages .msg-from {
  white-space: nowrap;
  padding-right: 2rem;
  font-weight: 500;
}

#network-messages .msg-from a {
  text-decoration-color: #2a2a2a;
}

#network-messages .msg-content {
  color: #555;
}

#network-messages .msg-time {
  white-space: nowrap;
  padding-left: 1.5rem;
  color: #999;
  text-align: right;
}

.network-loading,
.network-empty,
.network-error {
  color: #888;
  font-style: italic;
}

.network-link {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Full network page */
.network-full {
  margin: 2rem 0;
}

.message-full {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.message-full:first-child {
  padding-top: 0;
}

.message-full .message-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.message-full .message-author {
  font-weight: 600;
  text-decoration-color: #2a2a2a;
}

.message-full .message-time {
  font-size: 0.85rem;
  color: #888;
}

.message-full .message-body {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.message-crypto {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.message-crypto summary {
  color: #888;
  cursor: pointer;
  user-select: none;
}

.message-crypto summary:hover {
  color: #555;
}

.message-crypto dl {
  margin: 0.5rem 0 0 0;
  padding: 0.75rem;
  background: #f5f4f2;
  border-radius: 4px;
}

.message-crypto dt {
  color: #666;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

.message-crypto dt:first-child {
  margin-top: 0;
}

.message-crypto dd {
  margin: 0.25rem 0 0 0;
  word-break: break-all;
}

.message-crypto code {
  font-size: 0.8rem;
  background: none;
  padding: 0;
}

.message-crypto a {
  color: #555;
}

.network-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}

.network-info h2 {
  margin-top: 0;
}

/* Mobile */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  body {
    padding: 1.5rem 1rem;
  }

  main {
    margin-top: 1.5rem;
  }

  .main-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .llms-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .llms-link a {
    font-size: 0.95rem;
    word-break: break-all;
  }

  #network-messages {
    font-size: 0.85rem;
  }

  .msg-time {
    display: none;
  }
}
