:root {
  /* Color Palette */
  --bg-color: #f9f8f6; /* Soft beige background */
  --card-bg: #ffffff; /* Crisp white cards */
  --text-main: #2d2b2a; /* Dark charcoal text */
  --text-muted: #8c8882; /* Muted taupe text */
  --accent: #d4c8b8; /* Warm beige accent for borders/hover */
  --accent-dark: #b3a696;

  /* Layout */
  --border-radius: 12px;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 900px;
  width: 100%;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

header p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

input {
  width: 100%;
  max-width: 400px;
  padding: 0.8rem 1.2rem;
  font-size: 1.1rem;
  border: 2px solid #e8e5df;
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

input:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

input::placeholder {
  color: #c4c0b8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.02),
    0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid #f0eee9;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 15px rgba(0, 0, 0, 0.04),
    0 3px 6px rgba(0, 0, 0, 0.02);
  border-color: var(--accent);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.card-url {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-color);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
