:root {
  color-scheme: light;
  --bg-1: #f5f7fb;
  --bg-2: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  --accent: #111827;
  --accent-2: #334155;
  --success-bg: #ecfeff;
  --success-text: #0f766e;
  --error-bg: #fff1f2;
  --error-text: #be123c;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(51, 170, 238, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.admin-link {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent);
  text-decoration: none;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.9);
}

.landing-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.hero-card {
  width: min(920px, 100%);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 44px;
}

.hero-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-brand__logo {
  width: min(220px, 62vw);
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-copy {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 30px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #475569;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy__text {
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.search-box {
  max-width: 760px;
  margin: 0 auto;
}

.search-box__label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

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

.search-box__input {
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  font: inherit;
  font-size: 17px;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-box__input:focus {
  border-color: rgba(51, 170, 238, 0.55);
  box-shadow: 0 0 0 4px rgba(51, 170, 238, 0.14);
}

.search-box__button {
  height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #111827 0%, #334155 100%);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
}

.search-box__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.24);
}

.search-box__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search-feedback {
  max-width: 760px;
  margin: 18px auto 0;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 600;
}

.search-feedback--info {
  background: #eff6ff;
  color: #1d4ed8;
}

.search-feedback--error {
  background: var(--error-bg);
  color: var(--error-text);
}

.results {
  max-width: 760px;
  margin: 20px auto 0;
  display: grid;
  gap: 14px;
}

.result-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.result-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-date {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.result-card h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.03em;
}

.result-slug {
  margin: 8px 0 18px;
  color: #64748b;
  font-size: 14px;
}

.result-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 720px) {
  .landing-shell {
    padding: 20px 14px;
  }

  .hero-card {
    padding: 24px;
    border-radius: 24px;
  }

  .search-box__row {
    grid-template-columns: 1fr;
  }

  .search-box__button {
    width: 100%;
  }

  .admin-link {
    top: 12px;
    right: 12px;
    padding: 9px 12px;
  }
}
