:root {
  --ink: #14494F;
  --amber: #C9853C;
  --paper: #F7F4EF;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--ink);
}

.site-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(20, 73, 79, 0.15);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-icon {
  flex-shrink: 0;
}

.site-main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.tagline {
  font-size: 1.1rem;
  color: rgba(20, 73, 79, 0.75);
  margin: 0 0 2.5rem;
}

.services {
  display: grid;
  gap: 1rem;
}

.service-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(20, 73, 79, 0.12);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  border-color: rgba(20, 73, 79, 0.35);
  transform: translateY(-1px);
}

.service-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.service-card p {
  margin: 0 0 1rem;
  color: rgba(20, 73, 79, 0.85);
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.badge-soon {
  background: rgba(201, 133, 60, 0.15);
  color: var(--amber);
}

.badge-live {
  background: rgba(20, 73, 79, 0.08);
  color: var(--ink);
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: rgba(20, 73, 79, 0.6);
}

.page-header h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.disclaimer {
  background: rgba(201, 133, 60, 0.15);
  color: var(--ink);
  border: 1px solid rgba(201, 133, 60, 0.4);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.notice {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(20, 73, 79, 0.06);
}

.notice-error {
  background: rgba(180, 60, 40, 0.1);
  color: #7a2e1f;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(20, 73, 79, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

.search-form button {
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.search-form button:hover {
  opacity: 0.9;
}

.legal-text h2 {
  font-size: 1.1rem;
  margin: 1.8rem 0 0.5rem;
}

.legal-text p,
.legal-text li {
  color: rgba(20, 73, 79, 0.9);
}

.legal-text ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}

.legal-text li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: inherit;
}

.sentiment-summary {
  background: #fff;
  border: 1px solid rgba(20, 73, 79, 0.12);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.5rem;
}

.sentiment-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(20, 73, 79, 0.08);
  margin-bottom: 0.9rem;
}

.sentiment-bar-positive {
  background: #4c8c66;
}

.sentiment-bar-neutral {
  background: var(--amber);
}

.sentiment-bar-negative {
  background: #b13c28;
}

.sentiment-legend {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 0 0 0.8rem;
  padding: 0;
  font-size: 0.9rem;
}

.dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.dot-positive { background: #4c8c66; }
.dot-neutral { background: var(--amber); }
.dot-negative { background: #b13c28; }

.sentiment-text {
  margin: 0;
  line-height: 1.6;
}

.sentiment-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.sentiment-tag-positive {
  background: rgba(76, 140, 102, 0.15);
  color: #2f5e42;
}

.sentiment-tag-neutral {
  background: rgba(201, 133, 60, 0.15);
  color: var(--amber);
}

.sentiment-tag-negative {
  background: rgba(177, 60, 40, 0.15);
  color: #b13c28;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.article-item {
  background: #fff;
  border: 1px solid rgba(20, 73, 79, 0.12);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}

.article-title {
  display: block;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.article-title:hover {
  text-decoration: underline;
}

.article-description {
  margin: 0 0 0.5rem;
  color: rgba(20, 73, 79, 0.85);
  font-size: 0.95rem;
}

.article-meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(20, 73, 79, 0.6);
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .search-form {
    flex-direction: column;
  }
}
