/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #FFFEF9;
  color: #1a1a1a;
  font-family: 'Courier Prime', monospace;
  line-height: 1.6;
  padding: 20px;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
header {
  margin-bottom: 60px;
}

.wordmark {
  font-family: 'Crimson Pro', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  display: inline-block;
}

a.wordmark {
  transition: opacity 0.2s ease;
}

a.wordmark:hover {
  opacity: 0.7;
}

/* Editor */
.editor {
  margin-bottom: 80px;
}

.title-input,
.body-input {
  width: 100%;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  font-family: 'Courier Prime', monospace;
  color: #1a1a1a;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color 0.2s ease;
  resize: none;
}

.title-input {
  font-size: 1.5rem;
  font-weight: 700;
}

.title-input:focus,
.body-input:focus {
  outline: none;
  border-left-color: #C1440E;
}

.title-input::placeholder,
.body-input::placeholder {
  color: #999;
}

/* Publish button */
.publish-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #C1440E;
  color: #FFFEF9;
  border: none;
  padding: 14px 28px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(193, 68, 14, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publish-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(193, 68, 14, 0.4);
}

.publish-btn:active {
  transform: scale(0.98);
}

.publish-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Post view */
.post {
  padding: 0;
}

.post-title {
  font-family: 'Crimson Pro', serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.post-date {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 40px;
  font-style: italic;
}

.post-body {
  font-family: 'Crimson Pro', serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1a1a1a;
}

.post-body p {
  margin-bottom: 1.5em;
}

.post-body p:last-child {
  margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 20px 10px;
  }

  header {
    margin-bottom: 40px;
  }

  .wordmark {
    font-size: 1.5rem;
  }

  .title-input {
    font-size: 1.25rem;
  }

  .body-input {
    font-size: 0.95rem;
  }

  .publish-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    font-size: 0.8rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-body {
    font-size: 1rem;
  }
}
