body {
  margin: 0;
  background-color: #eab676;
  font-family: system-ui, sans-serif;
}

a {
  color: #873e23;
}

.landing, .login {
  max-width: 20rem;
  margin: 20vh auto 0;
  padding: 0 1rem;
  text-align: center;
}

.login form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login input {
  font-size: 1rem; /* 16px+ stops iPhones from zooming in on focus */
  padding: 0.6rem;
}

.alert {
  color: #a00;
}

/* Layout */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
}

.topbar .brand {
  font-weight: bold;
  margin-right: auto;
}

.topbar form {
  display: inline;
}

.page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.page.narrow {
  max-width: 28rem;
}

.page h1 {
  font-size: 1.5rem;
}

.page h2 {
  font-size: 1.2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card {
  background: #fdf6ee;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.muted {
  color: #6b5444;
}

.flash {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  background: #fdf6ee;
  border-radius: 8px;
}

/* Forms */

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stack label {
  margin-top: 0.4rem;
  font-weight: 600;
}

.stack .check {
  font-weight: normal;
}

input, select, textarea, button {
  font-size: 1rem; /* 16px+ stops iPhones from zooming in on focus */
  font-family: inherit;
}

input[type=text], input[type=email], input[type=password], input[type=datetime-local], select, textarea {
  padding: 0.55rem;
  border: 1px solid #c9a27e;
  border-radius: 6px;
  background: white;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 6px;
  background: #873e23;
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.button-secondary {
  background: transparent;
  color: #873e23;
  border: 1px solid #873e23;
}

.button-stop {
  background: #a02020;
  width: 100%;
  font-size: 1.15rem;
}

.timer .stack .button {
  font-size: 1.15rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: #873e23;
  text-decoration: underline;
  cursor: pointer;
}

.danger {
  color: #a02020;
  margin-top: 1.5rem;
}

/* Entries */

.day {
  font-size: 1rem;
  margin: 1.25rem 0 0.4rem;
}

.entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.5rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.4rem;
  background: #fdf6ee;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.entry-suggested {
  border: 2px dashed #873e23;
}

.entry-archived {
  opacity: 0.6;
}

.entry-time {
  font-weight: 600;
}

.entry-hours {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.entry-what, .entry-note, .entry-tags {
  grid-column: 1 / -1;
}

.entry-note {
  color: #6b5444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.05rem 0.45rem;
  margin-right: 0.3rem;
  border-radius: 4px;
  background: #ead9c6;
}

.tag-warning {
  background: #f7d36b;
}

.suggestion .row {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.week-nav {
  justify-content: flex-start;
  gap: 1rem;
}

/* Progress meters */

.meter h3 {
  margin: 0;
  font-size: 1rem;
}

.meter-figure {
  margin: 0.3rem 0;
}

.meter-figure strong {
  font-size: 1.6rem;
}

.meter-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: #ecd3c6; /* lighter step of the fill's hue */
}

.meter-fill {
  height: 100%;
  border-radius: 6px;
  background: #873e23;
}

.meter-pace {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #3b2a20;
}

.months {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 50px;
  margin-top: 0.8rem;
}

.months-goal {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed #3b2a20;
}

.month-bar {
  flex: 1;
  min-height: 1px;
  border-radius: 4px 4px 0 0;
  background: #873e23;
}

.month-labels {
  display: flex;
  gap: 2px;
  font-size: 0.75rem;
  color: #6b5444;
}

.month-labels span {
  flex: 1;
  text-align: center;
}

/* Property links */

.properties {
  display: flex;
  flex-wrap: wrap;
}

.property {
  flex: 1 1 12rem;
  text-align: center;
  padding: 15px;
}

img.property-image {
  height: 200px;
  max-width: 100%;
  object-fit: cover;
}
