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

:root {
  color-scheme: light;
  --surface: #111827;
  --accent: #7dd3fc;
  --accent-strong: #0ea5e9;
  --muted: #94a3b8;
  --panel: rgba(15, 23, 42, 0.9);
  --glass: rgba(15, 23, 42, 0.7);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(125, 211, 252, 0.2), transparent 40%),
    radial-gradient(circle at bottom, rgba(14, 165, 233, 0.3), transparent 35%), #030712;
  color: #f8fafc;
}

.site-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.site-nav a {
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: #dbeafe;
  background: rgba(30, 64, 175, 0.2);
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(125, 211, 252, 0.25);
  transform: translateY(-1px);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 2vw, 2.5rem) 4rem;
}

.hero {
  text-align: center;
  padding-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.tag-pill {
  font-size: 0.85rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-card {
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.85);
}

.resource-card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.resource-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.progress-track {
  width: 100%;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  height: 12px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.progress-bar-filled {
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.detail-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.sunrise-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.sunrise-table td {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.sunrise-table tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.5);
}

.blockquote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid rgba(125, 211, 252, 0.5);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
}

.card {
  background: var(--glass);
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 25px rgba(2, 6, 23, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-summary {
  margin-bottom: 1rem;
  color: var(--muted);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.25);
  color: #e0f2fe;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(125, 211, 252, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: rgba(125, 211, 252, 0.4);
  transform: translateY(-1px);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.inline-label {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 0.65rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  font: inherit;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #041c2e;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.35);
}

.output-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(125, 211, 252, 0.3);
  min-height: 3rem;
  display: flex;
  align-items: center;
}

.embed-code {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.8);
  font-family: "Fira Code", monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.history {
  margin-top: 2rem;
}

.history article {
  border-left: 3px solid rgba(125, 211, 252, 0.5);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

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

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.download-list a {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #f8fafc;
  text-decoration: none;
  font-weight: 500;
}

.download-list a span {
  opacity: 0.7;
  font-size: 0.85rem;
}

.timeline {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.timeline span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.3);
  font-size: 0.75rem;
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.planner-cell {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.9rem;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.9);
}

.planner-cell h4 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.dst-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.dst-table th,
.dst-table td {
  padding: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.dst-table th {
  text-align: left;
  font-weight: 500;
}

.astronomy-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.astronomy-list li {
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
}

.timeline-builder-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-builder-list li {
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-builder-list li span {
  font-size: 0.9rem;
  color: #f8fafc;
}

.quote-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-list li {
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.8);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--muted);
  margin: 0 0.25rem;
}

.breadcrumb-current {
  color: var(--text);
}

.footer {
  text-align: center;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
}

@media (max-width: 600px) {
  .section-title {
    flex-direction: column;
    gap: 0.5rem;
  }

  button {
    width: 100%;
  }
}
