/* The Auction Hub - Global Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --text: #111;
  --charcoal: #000;
  --warm-grey: #555;
  --border: #aaa;
  --cream: #f2f2f0;
  --cream-dark: #ddd;
  --accent: #222;
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 calc((100% - 960px) / 2 + 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  font-size: 0.85rem;
  font-weight: normal;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar-links a {
  text-decoration: none;
  color: var(--warm-grey);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.navbar-links a:hover { color: var(--charcoal); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--charcoal);
  cursor: pointer;
}

/* Hero */
.hero {
  border-bottom: 2px solid var(--charcoal);
  text-align: center;
  padding: 2.5rem 2rem 2rem;
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: normal;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.hero p {
  color: var(--warm-grey);
  font-size: 0.92rem;
  max-width: 520px;
  margin: 0 auto;
}

.hero-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.hero-form input[type="email"] {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  background: #fff;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: var(--text);
}

.hero-form button,
.footer-form button {
  padding: 0.65rem 1.5rem;
  background: var(--charcoal);
  color: #fff;
  border: none;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.hero-form button:hover,
.footer-form button:hover { background: var(--accent); }

/* Container */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* Section headings */
.section-heading {
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

/* Article cards - newspaper grid */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  margin-bottom: 3rem;
  border-top: 3px solid var(--charcoal);
  border-bottom: 1px solid var(--border);
}

.article-grid .col-divider {
  background: var(--border);
}

.article-card {
  padding: 1.25rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.article-card:hover { background: var(--cream); }

/* Lead story spans full width */
.article-card.lead {
  grid-column: 1 / -1;
  padding: 1.5rem 1.25rem 1.75rem;
  border-bottom: 2px solid var(--charcoal);
}

.article-card.lead h3 {
  font-size: 1.65rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.article-card.lead p {
  font-size: 1rem;
  max-width: 640px;
}

/* Half-width stories */
.article-card.half {
  grid-column: span 1;
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.article-card p {
  font-size: 0.88rem;
  color: var(--warm-grey);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.article-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-right: 0.3rem;
}

.article-card .card-meta {
  font-size: 0.75rem;
  color: var(--warm-grey);
  margin-top: 0.4rem;
  font-style: italic;
}

/* Full article listing */
.article-listing {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.listing-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.listing-controls input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  font-family: Georgia, serif;
  font-size: 0.88rem;
  background: var(--bg);
}

.listing-controls select {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  font-family: Georgia, serif;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
}

.listing-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream-dark);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
  gap: 1rem;
}

.listing-item:hover { background: var(--cream); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; }

.listing-item-title {
  font-size: 0.95rem;
  color: var(--charcoal);
  flex: 1;
}

.listing-item-meta {
  font-size: 0.78rem;
  color: var(--warm-grey);
  white-space: nowrap;
  font-style: italic;
}

.listing-item-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-grey);
  min-width: 90px;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.pagination button {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: Georgia, serif;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
}

.pagination button.active {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}

.pagination button:hover:not(.active) { background: var(--cream); }

/* Coming soon */
.coming-soon {
  margin-bottom: 3rem;
}

.coming-soon-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--warm-grey);
  font-size: 0.95rem;
  font-style: italic;
}

/* Footer */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.footer h3 {
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.footer p {
  color: var(--warm-grey);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.footer-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto 1.5rem;
}

.footer-form input[type="email"] {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  background: #fff;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: var(--text);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--warm-grey);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Article page */
.article-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.article-header .back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--warm-grey);
  text-decoration: none;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.article-header .back-link:hover { color: var(--charcoal); }

.article-header h1 {
  font-size: 1.85rem;
  font-weight: normal;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--warm-grey);
}

.article-body h2 {
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--charcoal);
  margin: 2rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-body h2:first-child {
  border-top: none;
  padding-top: 0;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body ul, .article-body ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.4rem;
  font-size: 0.97rem;
}

.article-body blockquote {
  border-left: 2px solid var(--border);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  color: var(--warm-grey);
  font-style: italic;
  background: var(--cream);
}

/* Next article */
.next-article {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.next-article span {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
  display: block;
  margin-bottom: 0.4rem;
}

.next-article a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 1.1rem;
}

.next-article a:hover { text-decoration: underline; }

/* About page */
.about-content {
  padding: 3rem 0;
}

.about-content h1 {
  font-size: 1.85rem;
  font-weight: normal;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-card.lead { grid-column: 1; }
  .article-card.half { grid-column: 1; }
  .col-divider { display: none; }
  .article-card.lead h3 { font-size: 1.3rem; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 1.25rem; }
  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .navbar-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero { padding: 2rem 1.25rem 1.5rem; }
  .hero h1 { font-size: 1.4rem; }
  .hero-form, .footer-form { flex-direction: column; }
  .container, .wide-container { padding: 0 1.25rem; }
  .article-header h1 { font-size: 1.45rem; }
}
