:root {
  color-scheme: dark;
  --ink: #f5f0e8;
  --muted: #b9c3c8;
  --panel: rgba(17, 26, 32, 0.88);
  --panel-strong: rgba(21, 31, 38, 0.96);
  --line: rgba(255, 255, 255, 0.13);
  --gold: #e8b86c;
  --teal: #6dc8c2;
  --rose: #d6899a;
  --leaf: #8ebe7a;
  --shadow: rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0d1114;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.site-nav a {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  position: relative;
  min-height: clamp(360px, 56vh, 620px);
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: end;
  box-shadow: 0 24px 70px var(--shadow);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(8, 13, 17, 0.86), rgba(8, 13, 17, 0.42) 48%, rgba(8, 13, 17, 0.18)),
    linear-gradient(0deg, rgba(8, 13, 17, 0.72), transparent 58%);
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(28px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro {
  width: min(560px, 100%);
  color: #e5edf0;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  line-height: 1.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 16px;
  margin-top: 16px;
}

.panel,
.hours-board {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
}

.panel {
  padding: 22px;
}

.panel-heading,
.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
}

label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.place-grid {
  display: grid;
  gap: 12px;
}

.hint,
.location-line {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  padding: 10px 12px;
}

input:focus {
  outline: 2px solid rgba(109, 200, 194, 0.45);
  border-color: var(--teal);
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.primary-button,
.ghost-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, var(--gold), #f1d394);
  color: #16120c;
  font-weight: 900;
}

.ghost-button {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 800;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(109, 200, 194, 0.14);
  color: var(--teal);
  border: 1px solid rgba(109, 200, 194, 0.32);
  font-size: 1.25rem;
}

.status {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.sun-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.sun-grid div,
.now-card,
.hour-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.sun-grid div {
  padding: 16px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

dd {
  margin: 8px 0 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.planet-badge {
  min-width: 82px;
  min-height: 44px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(232, 184, 108, 0.16);
  border: 1px solid rgba(232, 184, 108, 0.34);
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

.planet-glyph {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", serif;
  font-size: 1.35rem;
}

.now-card {
  margin-top: 14px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(232, 184, 108, 0.13), rgba(109, 200, 194, 0.1));
}

.now-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

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

.hours-board {
  margin-top: 16px;
  padding: 22px;
  background: var(--panel-strong);
}

.legend {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.day-dot,
.night-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.day-dot {
  background: var(--gold);
}

.night-dot {
  background: var(--teal);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hour-card {
  min-height: 126px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  border-left: 4px solid var(--teal);
}

.hour-card.day {
  border-left-color: var(--gold);
}

.hour-card.current {
  outline: 2px solid var(--rose);
  background: rgba(214, 137, 154, 0.12);
}

.hour-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.hour-number {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hour-planet {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.planet-symbol {
  color: var(--planet-color);
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", serif;
  font-size: 1.45rem;
  line-height: 1;
}

.hour-time {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .workspace,
  .hours-grid {
    grid-template-columns: 1fr;
  }

  .hours-grid {
    gap: 8px;
  }

  .hour-card {
    min-height: 112px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero {
    min-height: 410px;
  }

  .hero-content,
  .panel,
  .hours-board {
    padding: 16px;
  }

  .quick-row,
  .sun-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading,
  .board-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .icon-button {
    align-self: flex-end;
    margin-top: -58px;
  }
}
