@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --bg: #f4f0e6;
  --bg-strong: #efe6d5;
  --ink: #1e1b16;
  --muted: #5b5347;
  --accent: #0b6e4f;
  --accent-2: #f76f51;
  --surface: #ffffff;
  --shadow: rgba(28, 24, 17, 0.12);
  --ring: rgba(28, 24, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff6e7 0%, #f4f0e6 45%, #ede5d7 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

.bg-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}

.bg-orb--a {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(247, 111, 81, 0.8), rgba(247, 111, 81, 0));
  top: -140px;
  right: -120px;
}

.bg-orb--b {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(11, 110, 79, 0.8), rgba(11, 110, 79, 0));
  bottom: 40px;
  left: -80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 8vw 10px;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.back {
  position: absolute;
  left: 8vw;
  top: 28px;
  background-color: rgba(11, 110, 79, 0.08);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(11, 110, 79, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease,
    background-size 0.2s ease;
}

.home {
  position: absolute;
  right: 8vw;
  top: 28px;
  background-color: rgba(11, 110, 79, 0.08);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(11, 110, 79, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease,
    background-size 0.2s ease;
}

.back:hover,
.home:hover {
  transform: translateY(-2px);
  background-size: 100% 100%;
  color: #fff;
  box-shadow: 0 14px 30px var(--shadow);
}

.title {
  text-align: center;
}

.title h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-family: "Instrument Serif", "Times New Roman", serif;
}

.title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  padding: 24px 8vw 80px;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.line-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 26px var(--shadow);
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.line-card:hover {
  transform: translateY(-2px);
  border-color: var(--ring);
}

.line-card__chip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.line-card__info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.line-card__info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.empty {
  grid-column: 1 / -1;
  background: var(--surface);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 24px var(--shadow);
  text-align: center;
}

.chip--blue { background: #1d4ed8; }
.chip--pink { background: #ec4899; }
.chip--orange { background: #f97316; }
.chip--green { background: #22c55e; }
.chip--red { background: #ef4444; }
.chip--cyan { background: #06b6d4; }
.chip--purple { background: #8b5cf6; }
.chip--lime { background: #84cc16; }
.chip--amber { background: #f59e0b; }
.chip--lavender { background: #a78bfa; }
.chip--teal { background: #14b8a6; }
.chip--graphite { background: #1f2937; }

@media (max-width: 980px) {
  .list {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 6vw 6px;
    justify-items: stretch;
  }

  .back {
    position: static;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
  }

  .home {
    position: static;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
  }

  .title {
    grid-column: 1 / -1;
    margin-top: 6px;
  }
}
