:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --ink: #14130f;
  --muted: #6d685f;
  --line: #d7cec0;
  --soft: #fffaf0;
  --accent: #d88923;
  --accent-dark: #8f4f05;
  --shadow: 0 24px 70px rgba(20, 19, 15, 0.11);
  font-family: "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(216, 137, 35, 0.08), transparent 34%),
    var(--bg);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

.shift-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--accent-dark);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.ghost-button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink);
  padding: 10px 16px;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
  outline: none;
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: start;
}

.daily-card {
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
}

.section-label {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.92;
}

h2 {
  font-size: 25px;
  line-height: 1.05;
}

.inspiration {
  max-width: 760px;
  margin: 42px 0 0;
  color: #24211c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.23;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 58px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.source-grid p,
.shift-question p,
.history p,
.history li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.source-line {
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 700;
}

.shift-question {
  margin-top: 42px;
  padding: 28px;
  border-left: 4px solid var(--accent);
  background: rgba(216, 137, 35, 0.08);
}

.shift-question p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.28;
}

.history {
  position: sticky;
  top: 30px;
  padding-top: 8px;
}

.history ol {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.history li {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.history time {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history span {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.2;
}

.database-state {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .shift-shell {
    width: min(100% - 26px, 680px);
    padding-top: 22px;
  }

  .topbar {
    align-items: flex-start;
    margin-bottom: 36px;
  }

  .topbar-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
  }

  .hero-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .daily-card {
    border-radius: 22px;
  }

  .history {
    position: static;
  }
}
