:root {
  --ink: #2a241f;
  --muted: #6b5f54;
  --sand: #f5efe6;
  --paper: #fffaf3;
  --clay: #c97a53;
  --moss: #6f7b57;
  --sun: #e9c46a;
  --line: rgba(42, 36, 31, 0.12);
  --shadow: 0 18px 40px rgba(52, 42, 34, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f8f1e4, #efe2d0 45%, #e6d2bb 100%);
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 0.8rem;
  line-height: 1.5;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  position: relative;
}

.hero {
  position: relative;
  padding: 1.25rem 2rem 1rem;
  background: linear-gradient(120deg, rgba(201, 122, 83, 0.15), rgba(111, 123, 87, 0.2));
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: float-in 0.8s ease-out;
}

.hero__content {
  position: relative;
  z-index: 2;
//  max-width: 600px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--moss);
}

.hero__lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__ornament {
  position: absolute;
  inset: -40px auto auto -30px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(233, 196, 106, 0.7), rgba(233, 196, 106, 0));
  border-radius: 50%;
  filter: blur(2px);
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr 1.1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 12px 24px rgba(42, 36, 31, 0.08);
  animation: float-in 0.8s ease-out;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

input,
select {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fdf7ee;
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 2px solid rgba(201, 122, 83, 0.4);
  border-color: rgba(201, 122, 83, 0.5);
}

.button {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: none;
  background: var(--moss);
  color: #fff9ef;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(65, 74, 50, 0.25);
}

.tag-shelf {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line);
}

.tag-shelf__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.tag-shelf__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  background: rgba(201, 122, 83, 0.15);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
}

.hobo-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.hobo-item {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(201, 122, 83, 0.08);
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.hobo-item:hover {
  border-color: rgba(111, 123, 87, 0.4);
  background: rgba(111, 123, 87, 0.12);
}

.hobo-item--active {
  border-color: var(--clay);
  background: rgba(201, 122, 83, 0.2);
}

.hobo-detail h2 {
  margin-bottom: 0.6rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.tag {
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: rgba(111, 123, 87, 0.18);
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
}

.tag--muted {
  background: rgba(42, 36, 31, 0.08);
}

.similar-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.similar-item {
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(233, 196, 106, 0.2);
  border: 1px solid rgba(233, 196, 106, 0.4);
}

.similar-item__title {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.muted {
  color: var(--muted);
}

@keyframes float-in {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .panel--controls {
    order: 1;
  }

  .panel--list {
    order: 2;
  }

  .panel--detail {
    order: 3;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 1rem 1.25rem;
  }

  .hobo-list {
    max-height: calc(100vh - 350px);
  }
}
