:root {
  --bg: #f1f4f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #172033;
  --muted: #647084;
  --line: #d9dee7;
  --brand: #e30613;
  --brand-dark: #b70610;
  --focus: #2563eb;
  --shadow: 0 14px 34px rgba(23, 32, 51, 0.08);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 58px;
  height: auto;
}

.brand p,
.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 28px;
}

.header-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

main {
  padding: 26px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 22px;
}

.hero h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 34px;
  line-height: 42px;
}

.search-panel {
  display: grid;
  gap: 7px;
}

.search-panel label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-panel input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.search-panel input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent);
}

.content-band {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.notes-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.note-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 14px;
}

.note-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 23px;
}

.note-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.note-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.note-card a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.note-card a:hover {
  background: var(--brand-dark);
}

.empty-state {
  margin: 0;
  padding: 24px 4px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .section-title,
  .note-card {
    display: block;
  }

  .header-link,
  .search-panel,
  .note-card a {
    margin-top: 14px;
  }

  main {
    padding: 14px;
  }

  .hero h2 {
    font-size: 27px;
    line-height: 34px;
  }
}
