/* Bob Hamm Literary Archive — Dark, Sophisticated */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

:root {
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1a2744;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dim: #a08535;
  --copper: #b87333;
  --text-light: #e8e4dc;
  --text-muted: #9a948a;
  --text-bright: #f5f0e8;
  --border: rgba(201, 168, 76, 0.08);
  --border-accent: rgba(201, 168, 76, 0.2);
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.75;
  color: var(--text-light);
  background: var(--bg-dark);
  max-width: 100%;
  overflow-x: hidden;
}

/* Typography */
h1 {
  font-family: 'Georgia', serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

h2 {
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  margin: 3rem 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h3 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold-light);
  margin: 2rem 0 0.5rem 0;
}

.achievements h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.achievements ul {
  margin-left: 0;
  padding-left: 0;
}

.achievements li {
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.2rem;
  max-width: none;
  color: var(--text-light);
}

em {
  color: var(--text-muted);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 3rem;
}

.wide-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem;
}

/* Header */
header {
  text-align: center;
  border-bottom: 1px solid var(--border-accent);
  margin-bottom: 3rem;
  padding: 3rem 0 2rem;
}

.site-title {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
  color: var(--text-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}

/* Navigation */
nav {
  margin-top: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

/* Main Content */
main {
  margin-bottom: 4rem;
}

/* Poem Styling */
.poem-container {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  padding: 3rem;
  margin: 2.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.poem-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.poem-text {
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: none;
  text-align: left;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.poem-attribution {
  text-align: right;
  font-style: italic;
  color: var(--gold-dim);
  margin-top: 2rem;
  font-size: 0.95rem;
}

.poem-context {
  background: rgba(201, 168, 76, 0.05);
  padding: 1.5rem;
  border-left: 3px solid var(--gold-dim);
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Achievements/Highlights */
.achievements {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  margin: 2rem 0;
}

.achievements ul {
  list-style: none;
  margin-top: 1rem;
}

.achievements li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.achievements li::before {
  content: "—";
  color: var(--gold-dim);
  position: absolute;
  left: 0;
}

/* Works Lists */
.works-list, .discography {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  margin: 2rem 0;
}

.work-item, .album-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.work-item:last-child, .album-item:last-child {
  border-bottom: none;
}

.work-title, .album-title {
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.work-details, .album-details {
  color: var(--text-muted);
  font-style: italic;
}

/* Quotes */
.quote {
  background: rgba(201, 168, 76, 0.05);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-light);
}

.quote-source {
  margin-top: 0.75rem;
  font-style: normal;
  color: var(--gold-dim);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Story Text — Expandable sections */
.story-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  margin: 1rem 0 2rem 0;
  font-size: 1.02rem;
  line-height: 1.85;
  position: relative;
}

.story-text p {
  text-indent: 2em;
  margin-bottom: 0.8rem;
  max-width: none;
  color: var(--text-light);
}

.story-text p:first-child {
  text-indent: 0;
}

/* Expand/Collapse */
.story-text.collapsed {
  max-height: 400px;
  overflow: hidden;
}

.story-text.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg-dark));
  pointer-events: none;
}

.story-toggle {
  display: inline-block;
  margin: 0.75rem 0 2.5rem;
  padding: 0.5rem 2rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.story-toggle:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-accent);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  margin-top: 4rem;
}

footer a {
  color: var(--gold);
}

/* Audio Embeds */
iframe {
  border-radius: 4px;
  margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
    letter-spacing: 0.04em;
  }
  
  .subtitle {
    font-size: 0.95rem;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; margin: 2rem 0 1rem 0; }
  h3 { font-size: 1.1rem; }
  
  body { font-size: 15px; line-height: 1.65; }
  
  .container, .wide-container {
    padding: 1rem 0.75rem;
  }
  
  header {
    padding: 1.5rem 0 1rem;
    margin-bottom: 2rem;
  }
  
  header img {
    width: 120px !important;
  }
  
  nav { margin-top: 1rem; }
  
  nav ul {
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav a {
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .poem-container {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
  }
  
  .poem-title {
    font-size: 1.4rem;
  }
  
  .achievements,
  .works-list,
  .discography {
    padding: 1.25rem 1rem;
    margin: 1.5rem 0;
  }
  
  .story-text {
    padding: 1.25rem 0.75rem;
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .story-text p {
    text-indent: 1.5em;
  }
  
  .story-text.collapsed {
    max-height: 300px;
  }
  
  .quote {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
  
  p { max-width: 100%; }
  
  iframe {
    height: 200px !important;
  }
  
  main { margin-bottom: 2rem; }
  footer { margin-top: 2rem; padding-top: 1.5rem; }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.6rem;
  }
  
  h2 { font-size: 1.15rem; }
  
  body { font-size: 14px; }
  
  .container, .wide-container {
    padding: 0.75rem 0.5rem;
  }
  
  nav ul {
    gap: 0;
  }
  
  nav a {
    padding: 0.35rem 0.4rem;
    font-size: 0.65rem;
  }
  
  .poem-container,
  .achievements,
  .works-list,
  .discography,
  .story-text {
    padding: 1rem 0.75rem;
    border-radius: 2px;
  }
  
  .story-toggle {
    padding: 0.4rem 1.5rem;
    font-size: 0.8rem;
  }
  
  header img {
    width: 100px !important;
  }
  
  iframe {
    height: 180px !important;
  }
}

/* Utility */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
