:root {
  --bg: #f7f0e6;
  --bg-accent: #f1d4b8;
  --card: #fff8f0;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --line: #c8b7a6;
  --accent: #d16c4d;
  --accent-dark: #9b4a32;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Trebuchet MS", "Verdana", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 20% 10%, #fff4e1 0%, transparent 60%),
    radial-gradient(900px 700px at 80% 20%, var(--bg-accent) 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
}
h1,
h2 {
  font-family: "Palatino Linotype", "Book Antiqua", "Palatino", "Georgia", serif;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.5px;
}
main.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.hero {
  margin-bottom: 2rem;
}
.hero p {
  color: var(--muted);
  max-width: 560px;
}
.card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(42, 30, 16, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}
.alert {
  background: #ffe7d9;
  color: #7a3c28;
  border: 1px solid #f2b59b;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
label.full {
  grid-column: 1 / -1;
}
.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}
.checkbox input {
  width: 1rem;
  height: 1rem;
}
input {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
  background: #fffdf9;
}
select {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
  background: #fffdf9;
}
input:focus,
select:focus {
  outline: 2px solid rgba(209, 108, 77, 0.4);
  border-color: var(--accent);
}
button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(209, 108, 77, 0.35);
}
.notes ul {
  margin: 0.5rem 0 0 1.2rem;
  color: var(--muted);
}
.chart-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: center;
}
.chart-meta {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}
.chart-meta strong {
  color: var(--ink);
}
.saved {
  color: var(--accent-dark);
  font-weight: 600;
}
.muted {
  color: var(--accent-dark);
  font-size: 0.9rem;
}
.wheel {
  display: flex;
  justify-content: center;
}
svg {
  width: 320px;
  height: 320px;
}
.ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}
.ring-inner {
  stroke-dasharray: 4 6;
}
.divider {
  stroke: var(--line);
  stroke-width: 1;
}
.house-divider {
  stroke: rgba(155, 74, 50, 0.4);
  stroke-width: 1.25;
}
.aspect-line {
  stroke: rgba(209, 108, 77, 0.35);
  stroke-width: 1;
}
.aspect-line.aspect-trine {
  stroke: rgba(42, 125, 88, 0.35);
}
.aspect-line.aspect-square {
  stroke: rgba(166, 48, 48, 0.35);
}
.aspect-line.aspect-opposition {
  stroke: rgba(81, 102, 155, 0.35);
}
.aspect-line.aspect-conjunction {
  stroke: rgba(209, 108, 77, 0.5);
  stroke-width: 1.4;
}
.planet-dot {
  fill: var(--accent);
}
.planet-label {
  font-family: "Trebuchet MS", "Verdana", sans-serif;
  font-size: 0.8rem;
  fill: var(--ink);
  text-anchor: start;
}
.angle-dot {
  fill: #2a7d58;
}
.angle-label {
  font-family: "Trebuchet MS", "Verdana", sans-serif;
  font-size: 0.75rem;
  fill: #2a7d58;
  text-anchor: start;
}
.sign-label {
  font-family: "Palatino Linotype", "Book Antiqua", "Palatino", serif;
  font-size: 0.75rem;
  fill: var(--accent-dark);
  letter-spacing: 0.5px;
  text-anchor: middle;
  dominant-baseline: middle;
}
.house-label {
  font-family: "Trebuchet MS", "Verdana", sans-serif;
  font-size: 0.7rem;
  fill: var(--muted);
  text-anchor: middle;
  dominant-baseline: middle;
}
.table {
  display: grid;
  gap: 0.75rem;
}
.row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.cell.name {
  font-weight: 600;
}
.link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}
.actions {
  margin: 1rem 0 2rem;
}
@media (max-width: 640px) {
  main.page {
    padding: 2rem 1rem 3rem;
  }
  svg {
    width: 280px;
    height: 280px;
  }
}
.hint {
  font-size: 0.85rem;
  color: var(--muted);
}
.timezone-field .hint {
  margin-top: 0.25rem;
}
.autocomplete {
  position: relative;
}
.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(42, 30, 16, 0.12);
  z-index: 10;
  display: none;
  max-height: 220px;
  overflow-y: auto;
}
.suggestions.active {
  display: block;
}
.suggestion-item {
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.95rem;
}
.suggestion-item:hover,
.suggestion-item[aria-selected="true"] {
  background: rgba(209, 108, 77, 0.12);
}
