:root {
  --gold: #C9933A;
  --gold-light: #F0C96B;
  --cream: #FAF6EF;
  --warm-brown: #3B2A1A;
  --soft-red: #B05040;
  --sage: #6B8A6A;
  --sky: #4A7CA5;
  --text: #2C1F0F;
  --muted: #7A6650;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #150E06; }

body {
  font-family: 'Lato', sans-serif;
  background: #150E06;
  color: var(--text);
  overflow-x: hidden;
}

nav {
  background: var(--warm-brown);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.logo span { color: #fff; font-style: italic; }
.back-link {
  color: #e0d4c0;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold-light); }

.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem 4rem;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2.2rem;
}
.page-icon { font-size: 1.7rem; line-height: 1; }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  margin: 0;
  flex: 1;
  color: #fff;
}
.page-count {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

/* ── QUOTE CARDS + COMMENTS (shared with main site) ── */
.sq-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

.sq-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,147,58,0.25);
  border-radius: 16px;
  padding: 1.6rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.sq-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.28); transform: translateY(-3px); }

.sq-card.sq-pinned {
  grid-column: 1 / -1;
  padding: 2.2rem 2.8rem 1.6rem;
}
.sq-card.sq-pinned .sq-text {
  font-size: 1.6rem;
  line-height: 1.6;
  text-align: center;
  padding-right: 0;
  margin-bottom: 1rem;
}
.sq-card.sq-pinned .sq-scroll { margin: 0.3rem 0 1.3rem; }

.sq-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #f5eadb;
  line-height: 1.6;
  font-size: 1rem;
  padding-right: 2rem;
  margin: 0 0 0.6rem;
}

.sq-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(201,147,58,0.55);
  font-size: 0.7rem;
  margin: 0.2rem 0 1rem;
}
.sq-scroll .sq-line {
  flex: 0 0 36px;
  height: 1px;
  background: rgba(201,147,58,0.35);
}

.sq-copy {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(201,147,58,0.15);
  color: var(--gold-light);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.sq-copy:hover { background: rgba(201,147,58,0.3); transform: translateY(-1px); }

.sq-comment-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  color: rgba(237,228,214,0.55);
  font-size: 0.82rem;
  padding: 0.5rem 0.1rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.7rem;
  transition: color 0.2s;
}
.sq-comment-bar:hover { color: var(--gold-light); }
.sq-comment-count { font-weight: 700; }

.sq-comment-box {
  display: none;
  margin-top: 0.7rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sq-comment-box.sq-open { display: block; animation: fadeUp 0.25s ease both; }

.sq-comment-list {
  max-height: 170px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.sq-comment-item {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: #e8ddc9;
  line-height: 1.45;
}
.sq-comment-ts {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: rgba(237,228,214,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sq-no-comments {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(237,228,214,0.35);
}

.sq-comment-input-row { display: flex; gap: 0.5rem; }
.sq-comment-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: #f5eadb;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.sq-comment-input:focus { border-color: var(--gold); }
.sq-comment-input::placeholder { color: rgba(255,255,255,0.3); }

.sq-comment-submit {
  background: var(--gold);
  color: var(--warm-brown);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, opacity 0.2s;
}
.sq-comment-submit:hover { transform: translateY(-1px); }
.sq-comment-submit:disabled { opacity: 0.5; cursor: default; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .sq-card.sq-pinned { padding: 1.6rem 1.5rem 1.2rem; }
  .sq-card.sq-pinned .sq-text { font-size: 1.2rem; padding-right: 2rem; }
  .page-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .sq-comment-input-row { flex-wrap: wrap; }
  .sq-comment-submit { flex: 1; }
  .sq-comment-input { flex: 1 1 100%; }
}
