* {
  box-sizing: border-box;
}

body {
  background-color: #f5f5f5;
  color: #2b2b2b;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

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

header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

h1 {
  font-family: 'Courier Prime', monospace;
  font-size: 2.2rem;
  text-transform: lowercase;
  margin: 0;
  letter-spacing: -1px;
}

.tagline {
  font-size: 0.95rem;
  color: #666;
  margin: 8px 0 0 0;
  font-style: italic;
}

/* Daily Tiff Section */
.daily-tiff {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 30px;
}

.daily-tiff.hidden {
  display: none;
}

.tiff-title {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: #666;
  text-transform: lowercase;
}

.tiff-posts {
  display: flex;
  gap: 15px;
  align-items: stretch;
}

.tiff-post {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tiff-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
  word-wrap: break-word;
}

.tiff-divider {
  padding: 0 10px;
  color: #999;
  display: flex;
  align-items: center;
}

.tiff-vote {
  font-size: 0.8rem;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #fafafa;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.tiff-vote:hover {
  background: #eee;
  border-color: #999;
}

/* Form Section */
.form-section {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 30px;
}

#form {
  display: flex;
  flex-direction: column;
}

textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #ddd;
  font-family: 'Courier Prime', monospace;
  font-size: 0.95rem;
  resize: vertical;
  border-radius: 2px;
  margin-bottom: 12px;
}

textarea:focus {
  outline: none;
  border-color: #000;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.character-count {
  font-size: 0.8rem;
  color: #999;
}

#form button {
  padding: 8px 16px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
  text-transform: lowercase;
  border-radius: 2px;
  transition: all 0.2s;
}

#form button:hover {
  background: #000;
  color: #fff;
}

.confirmation {
  font-size: 0.9rem;
  color: #666;
  margin-top: 12px;
}

.confirmation.hidden {
  display: none;
}

/* Feed Controls */
.feed-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.random-btn,
.sort-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  text-transform: lowercase;
  border-radius: 2px;
  transition: all 0.2s;
}

.random-btn:hover,
.sort-btn:hover {
  border-color: #000;
  background: #f0f0f0;
}

.sort-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Feed */
#feed {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.post {
  background: #fff;
  border: 1px solid #ddd;
  padding: 18px;
  border-radius: 2px;
}

.post-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
  word-wrap: break-word;
}

.post-meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 12px;
}

.post-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  color: #000;
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: lowercase;
  border-radius: 2px;
  transition: all 0.2s;
  font-family: 'Courier Prime', monospace;
}

.action-btn:hover {
  background: #eee;
  border-color: #999;
}

.action-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Notes Section */
.post-notes {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 12px;
}

.note {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555;
  margin-bottom: 8px;
  padding: 8px;
  background: #fafafa;
  border-radius: 2px;
  border-left: 2px solid #ddd;
}

.note-time {
  font-size: 0.75rem;
  color: #999;
  display: block;
  margin-top: 2px;
}

.note-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.note-input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ddd;
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  border-radius: 2px;
}

.note-input:focus {
  outline: none;
  border-color: #000;
}

.note-submit {
  padding: 6px 10px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 0.8rem;
  border-radius: 2px;
  font-family: 'Courier Prime', monospace;
  text-transform: lowercase;
}

.note-submit:hover {
  background: #eee;
  border-color: #999;
}

.hidden {
  display: none !important;
}
  resize: none;
  box-sizing: border-box;
}

button {
  background: #2b2b2b;
  color: white;
  border: none;
  padding: 12px 25px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background: #000;
}

.confirmation {
  margin-top: 15px;
  font-style: italic;
  color: #666;
  min-height: 20px;
}

.feed {
  margin-top: 60px;
  max-width: 600px;
  width: 100%;
}

.post {
  border-bottom: 1px solid #000;
  padding: 20px 0;
  font-family: 'Courier Prime', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

.post:last-child {
  border-bottom: none;
}

.post-text {
  margin-bottom: 10px;
}

.post-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.seconded-btn {
  background: #666;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
}

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

.seconded-btn.seconded {
  background: #2b2b2b;
  cursor: default;
  opacity: 0.7;
}

.controls {
  max-width: 600px;
  width: 100%;
  margin: 40px auto;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.sort-btn {
  background: #e5e5e5;
  color: #2b2b2b;
  border: 2px solid #000;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
}

.sort-btn:hover {
  background: #d0d0d0;
}

.sort-btn.active {
  background: #2b2b2b;
  color: white;
}

.random-section {
  max-width: 600px;
  width: 100%;
  margin: 40px auto;
  text-align: center;
}

#random-btn {
  background: #2b2b2b;
  color: white;
  border: none;
  padding: 12px 25px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
}

#random-btn:hover {
  background: #000;
}

footer {
  margin-top: 100px;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
}
