* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Georgia, serif;
  background: #f4f1ea;
  color: #1a1a1a;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
}

.header a { color: #1a1a1a; text-decoration: none; margin-left: 1.25rem; }
.header a:hover { text-decoration: underline; }
.logo { font-weight: bold; margin-left: 0; }

.page { padding: 2rem; flex: 1; }
.page.centered {
  display: grid;
  place-items: center;
}

#text { font-size: 1.5rem; max-width: 36rem; text-align: center; margin: 0; }
#text a { color: inherit; text-decoration: none; }
#text a:hover { text-decoration: underline; }

.quote-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

#author {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

#author a { color: inherit; }

.quote-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #8a8278;
  background: #ebe6de;
  border: 1px solid #d9d2c6;
  border-radius: 2px;
}

.quote-tag:hover {
  background: #e0d9ce;
  color: #5c564e;
}

h1 { font-size: 1.4rem; margin: 0 0 1.5rem; }
ul { list-style: none; padding: 0; margin: 0; max-width: 40rem; }
li { margin: 0 0 0.75rem; }
a { color: #1a1a1a; }

.quote-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #ddd; max-width: 40rem; }
.quote-item p { margin: 0 0 0.4rem; }
.quote-item .meta { color: #666; font-size: 0.95rem; }

.pager { margin-top: 2rem; display: flex; gap: 1rem; align-items: center; }
.pager a { text-decoration: none; }
.muted { color: #888; }
.stub { color: #666; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  width: 100%;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #e8e2d8;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.tag:hover {
  background: #d4cdc2;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-top: 1px solid #ddd;
  color: #888;
  font-size: 0.9rem;
}

.footer a { color: #666; text-decoration: none; margin-right: 1rem; }
.footer a:hover { text-decoration: underline; }
.footer .copy { margin-left: auto; }

.quote-block { text-align: center; }

.copy-btn {
  margin-top: 1.5rem;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  color: #1a1a1a;
  background: #e8e2d8;
  border: 1px solid #d4cdc2;
  border-radius: 2px;
}

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

.contact-text {
  max-width: 36rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.contact-link a {
  font-size: 1.15rem;
}
