:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #edf7f3;
  --text: #182126;
  --muted: #61717d;
  --primary: #0e7c66;
  --primary-dark: #0a5f4d;
  --accent: #f2b705;
  --border: #d7e0e5;
  --danger: #b42318;
  --shadow: 0 22px 60px rgba(17, 32, 39, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(14, 124, 102, 0.08), transparent 28rem),
    linear-gradient(180deg, #f7faf8 0%, var(--bg) 100%);
  font-family: "Segoe UI", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #29a189);
  letter-spacing: 0.04em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.hero,
.tenant-hero,
.card,
.empty-state,
.error-card,
.search-box,
.article-card,
.category-card,
.notice {
  border: 1px solid rgba(215, 224, 229, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero,
.tenant-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  padding: 30px;
  margin: 18px 0 34px;
}

.hero-copy h1,
.tenant-hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy p,
.tenant-hero-copy p,
.card p,
.article-card p,
.notice,
.empty-state,
.error-card {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow,
.badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stack {
  display: grid;
  gap: 18px;
}

.card,
.article-card,
.category-card,
.search-box,
.empty-state,
.error-card,
.notice {
  padding: 24px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-list,
.category-list,
.article-meta {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.category-list li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
  color: var(--muted);
}

.check-list li::before,
.category-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button.primary,
button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.button.secondary {
  color: var(--primary);
  background: var(--surface-soft);
}

.search-form,
.ask-form {
  display: grid;
  gap: 12px;
}

.search-row,
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(14, 124, 102, 0.14);
  border-color: var(--primary);
}

.results-header,
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 16px;
}

.article-card h3,
.category-card h3,
.card h2,
.section-header h2 {
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.article-card .article-link {
  color: var(--primary);
  font-weight: 800;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-content {
  white-space: pre-line;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 0 18px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .tenant-hero,
  .grid-3,
  .grid-2,
  .field-row,
  .search-row {
    grid-template-columns: 1fr;
  }
}
